24 #include "ppl-config.h"
27 #if PPL_PROFILE_ADD_WEIGHT
35 std::cout <<
file <<
":" <<
line <<
": Weight_Profiler ";
37 std::cout <<
"never reached.";
45 std::cout <<
" samples(" <<
stat[
VALID].samples <<
")"
49 <<
" average(" << average <<
")";
50 std::cout <<
" variance( " << variance <<
")"
51 <<
" stddev( " << sqrt(variance) <<
")";
61 <<
" average(" << average <<
")";
64 std::cout << std::endl;
71 for (
int i = 0; i < 1000; ++i) {
72 weight_profiler.end(1);
74 return weight_profiler.stat[
VALID].min;
77 struct timespec Weight_Profiler::stamp;
Weight_Profiler(const char *file, int line, Weightwatch_Traits::Delta delta, double min_threshold=0, double max_threshold=0)
struct Parma_Polyhedra_Library::Weight_Profiler::@2 stat[2]
Statistical data for samples (both DISCARDED and VALID)
double min_threshold
Times less than this value are discarded.
double max_threshold
Times greater than this value are discarded.
unsigned int samples
Number of collected samples.
The entire library is confined to this namespace.
const char * file
File of this profiling point.
static double tune_adjustment()
int line
Line of this profiling point.
static double adjustment
Time quantity used to adjust the elapsed times so as not to take into account the time spent by the m...