rusEFI
The most advanced open source ECU
|
This data structure is used to analyze CPU performance.
User can report data into a histogram and later get an aggregated represenation, i.e. a histogram, of these values.
A typicsl use-case would be reporting the times it took to execure a particular section of code - and later analyzing the histogram.
Definition in file histogram.h.
Data Structures | |
struct | histogram_s |
Functions | |
void | initHistogramsModule (void) |
int | histogramGetIndex (int64_t value) |
This internal method is only public so that we can test it. | |
void | initHistogram (histogram_s *h, const char *name) |
Reset histogram_s to orignal state. | |
void | hsAdd (histogram_s *h, int64_t value) |
int | hsReport (histogram_s *h, int *report) |
Prepare histogram report. | |
int histogramGetIndex | ( | int64_t | value | ) |
This internal method is only public so that we can test it.
Definition at line 66 of file histogram.cpp.
Referenced by hsAdd().
void hsAdd | ( | histogram_s * | h, |
int64_t | value | ||
) |
@breif Add a new value into histogram_s
Definition at line 102 of file histogram.cpp.
int hsReport | ( | histogram_s * | h, |
int * | report | ||
) |
Prepare histogram report.
Definition at line 116 of file histogram.cpp.
Referenced by printHistogram().
void initHistogram | ( | histogram_s * | h, |
const char * | name | ||
) |
Reset histogram_s to orignal state.
Definition at line 89 of file histogram.cpp.
Referenced by initWaveChart().
void initHistogramsModule | ( | void | ) |
@breif Internal histogram data structure
Definition at line 44 of file histogram.cpp.
Referenced by initHardwareNoConfig().