15#ifndef __AUDACITY_DIAGS__
16#define __AUDACITY_DIAGS__
37#define DEFAULT_LOG_COUNT (10)
50#define MAKE_TIMER( timername ) \
51 static t_diag_struct * timername = NULL;
57#define DIAG( message ) { \
58 static t_diag_struct diag = { DEFAULT_LOG_COUNT, DEFAULT_LOG_COUNT, 0,0,0,0,wxT(message)};\
59 if( --diag.countdown >=0 )\
60 diagnostics_do_diag( &diag );\
63#define TRACK_MEM( message, amount ) { \
64 static t_diag_struct diag = { DEFAULT_LOG_COUNT, DEFAULT_LOG_COUNT, 0,0,0,0,wxT(message)};\
65 if( --diag.countdown >=0 )\
66 diagnostics_do_diag_mem( &diag, amount );\
69#define TIMER_START( message, timername )\
70 MAKE_TIMER( timername ); { \
71 static t_diag_struct diag = { DEFAULT_LOG_COUNT, DEFAULT_LOG_COUNT, 0,0,0,0,wxT(message)};\
72 if( --diag.countdown >=0 )\
73 diagnostics_do_perfmon_start( &diag, &timername );\
76#define TIMER_STOP( timername ){ \
77 if( timername != NULL )\
78 diagnostics_do_perfmon_stop( &timername );\
void diagnostics_do_diag(t_diag_struct *pDiag)
void diagnostics_do_perfmon_stop(t_diag_struct **ppDiag)
void diagnostics_do_diag_mem(t_diag_struct *pDiag, long amount)
void diagnostics_do_perfmon_start(t_diag_struct *pDiag, t_diag_struct **ppRememberMe)