Frobby 0.9.5
|
Tracks statistics on slices. More...
Public Member Functions | |
StatTracker (const string &title) | |
The title parameter indicates what is to be printed when calling printReport(). | |
void | preliminaryRecord (const Slice &slice) |
Record information about slice, but store it only until this method is next called on this object. | |
void | commitRecord () |
Commit the most recent argument to preliminaryTrack permanently to the record. | |
void | printReport (FILE *out) const |
Print a report on statistics of the recorded slices to the file out. | |
const mpz_class & | getNodeCount () const |
double | getAvgIdealGenCount () const |
double | getAvgSubGenCount () const |
double | getAvgVarCount () const |
Private Attributes | |
string | _title |
size_t | _prelimIdealGenCount |
size_t | _prelimSubGenCount |
size_t | _prelimVarCount |
mpz_class | _nodeCount |
mpz_class | _idealGenSum |
mpz_class | _subGenSum |
mpz_class | _varSum |
map< size_t, mpz_class > | _nodesByGenCount |
_nodesByGenCount[l] records how many slices have been recorded whose ideal has approximately 2^l generators. | |
Tracks statistics on slices.
Definition at line 49 of file StatisticsStrategy.h.
The title parameter indicates what is to be printed when calling printReport().
Definition at line 74 of file StatisticsStrategy.cpp.
void StatisticsStrategy::StatTracker::commitRecord | ( | ) |
Commit the most recent argument to preliminaryTrack permanently to the record.
Definition at line 84 of file StatisticsStrategy.cpp.
double StatisticsStrategy::StatTracker::getAvgIdealGenCount | ( | ) | const |
Definition at line 130 of file StatisticsStrategy.cpp.
double StatisticsStrategy::StatTracker::getAvgSubGenCount | ( | ) | const |
Definition at line 139 of file StatisticsStrategy.cpp.
double StatisticsStrategy::StatTracker::getAvgVarCount | ( | ) | const |
Definition at line 148 of file StatisticsStrategy.cpp.
Definition at line 126 of file StatisticsStrategy.cpp.
Record information about slice, but store it only until this method is next called on this object.
Definition at line 78 of file StatisticsStrategy.cpp.
Print a report on statistics of the recorded slices to the file out.
Definition at line 97 of file StatisticsStrategy.cpp.
|
private |
Definition at line 81 of file StatisticsStrategy.h.
|
private |
Definition at line 80 of file StatisticsStrategy.h.
|
private |
_nodesByGenCount[l] records how many slices have been recorded whose ideal has approximately 2^l generators.
Definition at line 87 of file StatisticsStrategy.h.
|
private |
Definition at line 76 of file StatisticsStrategy.h.
|
private |
Definition at line 77 of file StatisticsStrategy.h.
|
private |
Definition at line 78 of file StatisticsStrategy.h.
|
private |
Definition at line 82 of file StatisticsStrategy.h.
|
private |
Definition at line 74 of file StatisticsStrategy.h.
|
private |
Definition at line 83 of file StatisticsStrategy.h.