|
PPL
1.2
|
#include <Weight_Profiler_defs.hh>
Public Member Functions | |
| Weight_Profiler (const char *file, int line, Weightwatch_Traits::Delta delta, double min_threshold=0, double max_threshold=0) | |
| ~Weight_Profiler () | |
| void | output_stats () |
| void | end (unsigned int factor=1) |
Static Public Member Functions | |
| static void | begin () |
| static double | tune_adjustment () |
Private Types | |
| enum | { DISCARDED = 0, VALID = 1 } |
Private Attributes | |
| const char * | file |
| File of this profiling point. More... | |
| int | line |
| Line of this profiling point. More... | |
| Weightwatch_Traits::Delta | delta |
| Computational weight to be added at each iteration. More... | |
| double | min_threshold |
| Times less than this value are discarded. More... | |
| double | max_threshold |
| Times greater than this value are discarded. More... | |
| struct { | |
| unsigned int samples | |
| Number of collected samples. More... | |
| unsigned int count | |
| Number of collected iterations. More... | |
| double sum | |
| Sum of the measured times. More... | |
| double squares_sum | |
| Sum of the squares of the measured times (to compute variance). More... | |
| double min | |
| Minimum measured time. More... | |
| double max | |
| Maximum measured time. More... | |
| } | stat [2] |
| Statistical data for samples (both DISCARDED and VALID) More... | |
Static Private Attributes | |
| static struct timespec | stamp |
| Holds the time corresponding to last time begin() was called. More... | |
| static double | adjustment |
| Time quantity used to adjust the elapsed times so as not to take into account the time spent by the measurement infrastructure. More... | |
Definition at line 31 of file Weight_Profiler_defs.hh.
|
private |
|
inline |
Definition at line 36 of file Weight_Profiler_defs.hh.
References stat.
|
inline |
Definition at line 51 of file Weight_Profiler_defs.hh.
References output_stats().
|
inlinestatic |
Definition at line 57 of file Weight_Profiler_defs.hh.
References stamp.
Referenced by end().
|
inline |
Definition at line 66 of file Weight_Profiler_defs.hh.
References adjustment, begin(), count, delta, DISCARDED, max, max_threshold, min, min_threshold, stamp, stat, VALID, and Parma_Polyhedra_Library::Weightwatch_Traits::weight.
| void Parma_Polyhedra_Library::Weight_Profiler::output_stats | ( | ) |
Referenced by ~Weight_Profiler().
|
static |
|
staticprivate |
Time quantity used to adjust the elapsed times so as not to take into account the time spent by the measurement infrastructure.
Definition at line 152 of file Weight_Profiler_defs.hh.
Referenced by end().
| unsigned int Parma_Polyhedra_Library::Weight_Profiler::count |
Number of collected iterations.
Definition at line 130 of file Weight_Profiler_defs.hh.
Referenced by end().
|
private |
Computational weight to be added at each iteration.
Definition at line 111 of file Weight_Profiler_defs.hh.
Referenced by end().
|
private |
File of this profiling point.
Definition at line 105 of file Weight_Profiler_defs.hh.
|
private |
Line of this profiling point.
Definition at line 108 of file Weight_Profiler_defs.hh.
| double Parma_Polyhedra_Library::Weight_Profiler::max |
|
private |
Times greater than this value are discarded.
Definition at line 117 of file Weight_Profiler_defs.hh.
Referenced by end().
| double Parma_Polyhedra_Library::Weight_Profiler::min |
|
private |
Times less than this value are discarded.
Definition at line 114 of file Weight_Profiler_defs.hh.
Referenced by end().
| unsigned int Parma_Polyhedra_Library::Weight_Profiler::samples |
Number of collected samples.
Definition at line 122 of file Weight_Profiler_defs.hh.
| double Parma_Polyhedra_Library::Weight_Profiler::squares_sum |
Sum of the squares of the measured times (to compute variance).
Definition at line 136 of file Weight_Profiler_defs.hh.
|
staticprivate |
Holds the time corresponding to last time begin() was called.
Definition at line 146 of file Weight_Profiler_defs.hh.
| struct { ... } Parma_Polyhedra_Library::Weight_Profiler::stat[2] |
Statistical data for samples (both DISCARDED and VALID)
Referenced by end(), and Weight_Profiler().
| double Parma_Polyhedra_Library::Weight_Profiler::sum |
Sum of the measured times.
Definition at line 133 of file Weight_Profiler_defs.hh.