Tools
newcomer.lst
Associated article: Profiling for Performance
Tags: Tools
_PROFILING FOR PERFORMANCE_
by Joseph Newcomer
[LISTING ONE]
{
float sum; // sum of values
float sum2; // sum-of-squares
float var; // variance
#define NUM_RUNS 10 // choose a number
struct {float v;
int count;
} runs[NUM_RUNS]; // run table
int n_run = 0; // current run ...


