Go to the source code of this file.
◆ DEFAULT_LOG_COUNT
#define DEFAULT_LOG_COUNT (10) |
◆ DIAG
Value: { \
if( --diag.countdown >=0 )\
diagnostics_do_diag( &diag );\
}
#define DEFAULT_LOG_COUNT
Definition at line 57 of file Diags.h.
◆ MAKE_TIMER
#define MAKE_TIMER |
( |
|
timername | ) |
static t_diag_struct * timername = NULL; |
◆ TIMER_START
#define TIMER_START |
( |
|
message, |
|
|
|
timername |
|
) |
| |
Value:
if( --diag.countdown >=0 )\
diagnostics_do_perfmon_start( &diag, &timername );\
}
#define MAKE_TIMER(timername)
Definition at line 69 of file Diags.h.
◆ TIMER_STOP
#define TIMER_STOP |
( |
|
timername | ) |
|
Value: { \
if( timername != NULL )\
diagnostics_do_perfmon_stop( &timername );\
}
Definition at line 76 of file Diags.h.
◆ TRACK_MEM
#define TRACK_MEM |
( |
|
message, |
|
|
|
amount |
|
) |
| |
Value: { \
if( --diag.countdown >=0 )\
diagnostics_do_diag_mem( &diag, amount );\
}
Definition at line 63 of file Diags.h.
◆ t_diag_timer
◆ diagnostics_do_diag()
◆ diagnostics_do_diag_mem()
void diagnostics_do_diag_mem |
( |
t_diag_struct * |
pDiag, |
|
|
long |
amount |
|
) |
| |
◆ diagnostics_do_perfmon_start()
◆ diagnostics_do_perfmon_stop()
Definition at line 76 of file Diags.cpp.
76 {
78 *ppDiag = NULL;
80 pDiag->
total += amount;
84 pDiag->
least = amount;
85 }
86 else if( amount > pDiag->
most )
88 else if( amount < pDiag->least )
89 pDiag->
least = amount;
90 wxLog * pLog = wxLog::SetActiveTarget(NULL);
91 wxLogDebug(
wxT(
"%s %f seconds"), pDiag->
pMessage, ((
float)amount)/1000.0f );
92 wxLog::SetActiveTarget(pLog);
93}
References t_diag_struct::countdown, t_diag_struct::initial_count, t_diag_struct::least, MasterWatch, t_diag_struct::most, t_diag_struct::most_recent, t_diag_struct::pMessage, t_diag_struct::total, and wxT().