70 #ifndef _LIBUTIL_PROFILE_H_
71 #define _LIBUTIL_PROFILE_H_
90 #include <sphinxbase/sphinxbase_export.h>
225 int32 host_endian (
void );
SPHINXBASE_EXPORT void ptmr_reset_all(ptmr_t *tmr)
Reset t_cpu, t_elapsed of all timer modules in array tmr[] to 0.0.
SPHINXBASE_EXPORT pctr_t * pctr_new(char *name)
operations of pctr_t
int32 count
Counter value.
SPHINXBASE_EXPORT void ptmr_start(ptmr_t *tmr)
Start timing using tmr.
SPHINXBASE_EXPORT int32 host_pclk(int32 dummy)
Return the processor clock speed (in MHz); only available on some machines (Alphas).
float64 t_tot_elapsed
Total elapsed time since creation.
Generic timer structures and functions for coarse-grained performance measurements using standard sys...
float64 start_elapsed
-— FOR INTERNAL USE ONLY -—
float64 start_cpu
-— FOR INTERNAL USE ONLY -—
Basic type definitions used in Sphinx.
const char * name
Timer print name; NULL terminates an array of timers.
SPHINXBASE_EXPORT void pctr_free(pctr_t *ctr)
Free the counter.
SPHINXBASE_EXPORT void pctr_print(FILE *fp, pctr_t *ctr)
Print a counter.
float64 t_cpu
CPU time accumulated since most recent reset op.
float64 t_tot_cpu
Total CPU time since creation.
SPHINXBASE_EXPORT void ptmr_print_all(FILE *fp, ptmr_t *tmr, float64 norm)
Print t_cpu for all timer modules in tmr[], normalized by norm (i.e., t_cpu/norm).
SPHINXBASE_EXPORT void pctr_increment(pctr_t *ctr, int32 inc)
Increment a counter.
SPHINXBASE_EXPORT void pctr_reset(pctr_t *ctr)
Reset a counter.
SPHINXBASE_EXPORT void ptmr_init(ptmr_t *tmr)
Reset tmr->{t_cpu, t_elapsed, t_tot_cpu, t_tot_elapsed} to 0.0.
SPHINXBASE_EXPORT void ptmr_stop(ptmr_t *tmr)
Stop timing and accumulate tmr->{t_cpu, t_elapsed, t_tot_cpu, t_tot_elapsed}.
float64 t_elapsed
Elapsed time accumulated since most recent reset.
SPHINXBASE_EXPORT void ptmr_reset(ptmr_t *tmr)
Reset tmr->{t_cpu, t_elapsed} to 0.0.
char * name
Counter print name; NULL terminates array of counters Used by pctr_print_all.
Generic event counter for profiling.