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 |
/* |
/* |
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 |
/* |
/* |
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 |
/* |
/* |