Audacity  2.2.0
Diags.h File Reference

Go to the source code of this file.

Classes

struct  t_diag_struct
 

Macros

#define DEFAULT_LOG_COUNT   (10)
 
#define MAKE_TIMER(timername)   static t_diag_struct * timername = NULL;
 
#define DIAG(message)
 
#define TRACK_MEM(message, amount)
 
#define TIMER_START(message, timername)
 
#define TIMER_STOP(timername)
 

Typedefs

typedef long t_diag_timer
 

Functions

void diagnostics_do_diag (t_diag_struct *pDiag)
 
void diagnostics_do_diag_mem (t_diag_struct *pDiag, long amount)
 
void diagnostics_do_perfmon_start (t_diag_struct *pDiag, t_diag_struct **ppRememberMe)
 
void diagnostics_do_perfmon_stop (t_diag_struct **ppDiag)
 

Macro Definition Documentation

#define DEFAULT_LOG_COUNT   (10)
#define DIAG (   message)
Value:
{ \
static t_diag_struct diag = { DEFAULT_LOG_COUNT, DEFAULT_LOG_COUNT, 0,0,0,0,wxT(message)};\
if( --diag.countdown >=0 )\
}
#define DEFAULT_LOG_COUNT
Definition: Diags.h:37
void diagnostics_do_diag(t_diag_struct *pDiag)
Definition: Diags.cpp:43
Definition: Diags.h:20

Referenced by diag_sample_test().

#define MAKE_TIMER (   timername)    static t_diag_struct * timername = NULL;
#define TIMER_START (   message,
  timername 
)
Value:
MAKE_TIMER( timername ); { \
static t_diag_struct diag = { DEFAULT_LOG_COUNT, DEFAULT_LOG_COUNT, 0,0,0,0,wxT(message)};\
if( --diag.countdown >=0 )\
diagnostics_do_perfmon_start( &diag, &timername );\
}
void diagnostics_do_perfmon_start(t_diag_struct *pDiag, t_diag_struct **ppRememberMe)
Definition: Diags.cpp:65
#define DEFAULT_LOG_COUNT
Definition: Diags.h:37
#define MAKE_TIMER(timername)
Definition: Diags.h:50
Definition: Diags.h:20
#define TIMER_STOP (   timername)
Value:
{ \
if( timername != NULL )\
}
void diagnostics_do_perfmon_stop(t_diag_struct **ppDiag)
Definition: Diags.cpp:76
#define TRACK_MEM (   message,
  amount 
)
Value:
{ \
static t_diag_struct diag = { DEFAULT_LOG_COUNT, DEFAULT_LOG_COUNT, 0,0,0,0,wxT(message)};\
if( --diag.countdown >=0 )\
diagnostics_do_diag_mem( &diag, amount );\
}
#define DEFAULT_LOG_COUNT
Definition: Diags.h:37
Definition: Diags.h:20
void diagnostics_do_diag_mem(t_diag_struct *pDiag, long amount)
Definition: Diags.cpp:49

Typedef Documentation

typedef long t_diag_timer

Function Documentation

void diagnostics_do_diag ( t_diag_struct pDiag)
void diagnostics_do_perfmon_start ( t_diag_struct pDiag,
t_diag_struct **  ppRememberMe 
)