Changeset 7326 for trunk/include


Ignore:
Timestamp:
Nov 13, 2001, 12:06:03 AM (24 years ago)
Author:
phaller
Message:

.

Location:
trunk/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/odinwrap.h

    r7076 r7326  
    6666extern void              WIN32API dbg_IncThreadCallDepth(void); // kernel32
    6767extern void              WIN32API dbg_DecThreadCallDepth(void); // kernel32
     68extern void              WIN32API dbg_ThreadPushCall(char *pszCaller);
     69extern void              WIN32API dbg_ThreadPopCall();
     70extern char*             WIN32API dbg_GetLastCallerName();
     71
     72
    6873
    6974// ---------------------------------------------------------------------------
     
    101106       ulElapsed = liEnd.LowPart - liStart.LowPart; \
    102107                                  \
    103      PerfView_RegisterCall(a, ulElapsed); \
     108     PerfView_RegisterCall(dbg_GetLastCallerName(), a, ulElapsed); \
    104109                                  \
    105110     dprintf(("%s: %s %u ticks\n",\
     
    123128#define FNPROLOGUE(a)   \
    124129  sel = GetFS(); \
    125   dbg_IncThreadCallDepth(); \
     130  dbg_ThreadPushCall(a); \
    126131  ODIN_HEAPCHECK();     \
    127132  PROFILE_START(a)
     
    130135  PROFILE_STOP(a)       \
    131136  ODIN_HEAPCHECK();     \
    132   dbg_DecThreadCallDepth(); \
     137  dbg_ThreadPopCall(); \
    133138  if (sel != GetFS()) { \
    134139    SetFS(sel); \
  • trunk/include/perfview.h

    r7025 r7326  
    1 /* $Id: perfview.h,v 1.2 2001-10-12 00:49:51 phaller Exp $ */
     1/* $Id: perfview.h,v 1.3 2001-11-12 23:05:06 phaller Exp $ */
    22
    33/*
     
    2424
    2525// register a call to a function
    26 void _Optlink PerfView_RegisterCall(char* pszFunctionName,
     26void _Optlink PerfView_RegisterCall(char* pszCallerName,
     27                                    char* pszFunctionName,
    2728                                    unsigned long int nTicks);
    2829
  • trunk/include/win/thread.h

    r6830 r7326  
    151151#ifdef DEBUG
    152152              // used for call stack tracking
    153               ULONG          dbgCallDepth;   // is de-/incremended by ODINWRAP macros
     153              ULONG          dbgCallDepth;     // is de-/incremented by ODINWRAP macros
     154              PVOID*         arrstrCallStack;  // keep track of thread's call stack
    154155#endif
    155156          } odin;
Note: See TracChangeset for help on using the changeset viewer.