/[dotgnu-pnet]/pnet/engine/lib_profiling.c
ViewVC logotype

Diff of /pnet/engine/lib_profiling.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by darkdust, Fri Apr 22 16:08:05 2005 UTC revision 1.2 by ktreichel, Sat Apr 23 10:38:16 2005 UTC
# Line 41  extern "C" { Line 41  extern "C" {
41   */   */
42  void _IL_Profiling_StartProfiling(ILExecThread *thread)  void _IL_Profiling_StartProfiling(ILExecThread *thread)
43  {  {
44    #ifdef ENHANCED_PROFILER
45          thread->profilingEnabled = 1;          thread->profilingEnabled = 1;
46    #endif
47  }  }
48    
49  /*  /*
# Line 49  void _IL_Profiling_StartProfiling(ILExec Line 51  void _IL_Profiling_StartProfiling(ILExec
51   */   */
52  void _IL_Profiling_StopProfiling(ILExecThread *thread)  void _IL_Profiling_StopProfiling(ILExecThread *thread)
53  {  {
54    #ifdef ENHANCED_PROFILER
55          thread->profilingEnabled = 0;          thread->profilingEnabled = 0;
56    #endif
57  }  }
58    
59  /*  /*
# Line 57  void _IL_Profiling_StopProfiling(ILExecT Line 61  void _IL_Profiling_StopProfiling(ILExecT
61   */   */
62  ILBool _IL_Profiling_IsProfilingEnabled(ILExecThread *thread)  ILBool _IL_Profiling_IsProfilingEnabled(ILExecThread *thread)
63  {  {
64    #ifdef ENHANCED_PROFILER
65          return (ILBool) thread->profilingEnabled;          return (ILBool) thread->profilingEnabled;
66    #else
67            return (ILBool) 0;
68    #endif
69  }  }
70    
71  /*  /*

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26