rusEFI
An attempt to build an Engine Control Unit
|
This data structure is used to analyze CPU performance.
Histogram is a data structure which simplifies CPU performance monitoring and trobleshooting by tracking the min, max and a couple of median values for a series of measurments.
Definition in file histogram.c.
Functions | |
void | initHistogramsModule (void) |
int | histogramGetIndex (int64_t value) |
This internal method is only public so that we can test it. More... | |
void | initHistogram (histogram_s *h, const char *name) |
Reset histogram_s to orignal state. More... | |
void | hsAdd (histogram_s *h, int64_t value) |
int | hsReport (histogram_s *h, int *report) |
Prepare histogram report. More... | |
Variables | |
static float | confidence_bounds [] = { 0.5 - H_CONFIDENCE * 0.5, 0.5, 0.5 + H_CONFIDENCE * 0.5 } |
static int64_t bounds [BOUND_LENGTH] | CCM_OPTIONAL |
static int | small_bounds_index [SBI_SIZE] |
static int | initialized = FALSE |
int histogramGetIndex | ( | int64_t | value | ) |
This internal method is only public so that we can test it.
Definition at line 65 of file histogram.c.
Referenced by hsAdd().
void hsAdd | ( | histogram_s * | h, |
int64_t | value | ||
) |
@breif Add a new value into histogram_s
Definition at line 101 of file histogram.c.
int hsReport | ( | histogram_s * | h, |
int * | report | ||
) |
Prepare histogram report.
Definition at line 115 of file histogram.c.
Referenced by printHistogram().
void initHistogram | ( | histogram_s * | h, |
const char * | name | ||
) |
Reset histogram_s to orignal state.
Definition at line 88 of file histogram.c.
Referenced by initWaveChart().
void initHistogramsModule | ( | void | ) |
@breif Internal histogram data structure
Definition at line 43 of file histogram.c.
Referenced by adc_callback_fast_internal().
|
static |
magic curve lookup table
Definition at line 32 of file histogram.c.
|
static |
Definition at line 27 of file histogram.c.
Referenced by hsReport().
|
static |
Definition at line 38 of file histogram.c.
Referenced by histogramGetIndex(), and initHistogramsModule().
|
static |
just an optimization - faster lookup for small values
Definition at line 36 of file histogram.c.
Referenced by histogramGetIndex(), and initHistogramsModule().