home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 39 / IOPROG_39.ISO / SOFT / sdkjava40.exe / data1.cab / fg_Samples / Samples / Profiler / jviewprf / calltrac.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  2000-05-04  |  968 b   |  53 lines

  1. // calltrac.hpp
  2. //
  3. // Created 01/19/99
  4. //
  5. // (C) Copyright 1995 - 1999 Microsoft Corporation.  All rights reserved.
  6. //
  7.  
  8. #ifndef __CALLTRAC_HPP__
  9. #define __CALLTRAC_HPP__
  10.  
  11. #include <jevmon.h>
  12.  
  13. class EventMonitor;
  14. struct ThreadRecord;
  15.  
  16.  
  17. class CallTracer
  18. {
  19.     EventMonitor *m_pmon;
  20.  
  21.  
  22.     void PrintStackLeader (ThreadRecord *pThread);
  23.  
  24.     VOID SpewValue (CHAR chsig, PVOID pvalue);
  25.  
  26.     VOID SpewParams (ThreadRecord *pThread, MethodID method_id, StackID stack_id, ClassID idMethodClass, PCSTR pcszMethodName);
  27.  
  28.     VOID SpewReturnValue ();
  29.  
  30. public:
  31.  
  32.     HRESULT Initialize (EventMonitor *pmon);
  33.  
  34.     VOID Destruct ();
  35.  
  36.  
  37.     VOID OnEnterMethod (ThreadRecord *pThread, MethodID method_id, StackID stack_id);
  38.  
  39.     VOID OnMethodExit (ThreadRecord *pThread, MethodID method_id, StackID stack_id);
  40. };
  41.  
  42.  
  43. class CallTracerThreadData
  44. {
  45.     friend class CallTracer;
  46.  
  47.     ULONG nStackFrames;
  48. };
  49.  
  50.  
  51. #endif /* __CALLTRAC_HPP__ */
  52.  
  53.