40 static char THIS_FILE[] = __FILE__;
66 if( !prflFile.IsOpened() )
69 stro.Printf( wxT(
"%-20s|%10lu|%16.6lf|%16.0lf\n" ),
72 double( time ) * 1e-9,
87 #if defined(__GNUG__) && ( defined(_X86_))
88 register __int64 TSC
asm(
"eax" );
89 asm volatile (
"rdtsc" : : :
"eax",
"edx" );
91 #elif defined(__VISUALC__)
101 sub [ecx+timeOffs], EAX
102 sbb [ecx+timeOffs+4], EDX
106 #warning Profile timer not (yet) supported on this system
118 #if defined(__GNUG__) && ( defined(_X86_))
119 register __int64 TSC
asm(
"eax" );
120 asm volatile (
"rdtsc" : : :
"eax",
"edx" );
122 #elif defined(__VISUALC__)
131 add [ecx+timeOffs], EAX
132 adc [ecx+timeOffs+4], EDX
void EndBlck()
is called at the end of a scope
static void OpenPrflFile()
opens the profiling data file, if not yet open.
void BgnBlck()
is called at the start of a scope
a2dProfilerTimer(const wxString &idIn)
constructor
~a2dProfilerTimer()
destructor