NeoPZ
|
#include <stats_recorder.h>
Public Member Functions | |
RUsageRunStat () | |
void | start () |
void | stop () |
void | print (ostream &os) const |
int | setCellValues (CSVStringTable &st, unsigned row) const |
void | clearStats () |
Public Member Functions inherited from RunStat | |
virtual | ~RunStat () |
Protected Attributes | |
struct rusage lap_self | lap_children |
struct rusage total_self | total_children |
Definition at line 309 of file stats_recorder.h.
|
inline |
Definition at line 313 of file stats_recorder.h.
|
inlinevirtual |
|
inlinevirtual |
Print the statistics. TODO: create a table, update it, and print the table.
Implements RunStat.
Definition at line 361 of file stats_recorder.h.
References PRINT_FLD, PRINT_TIMEVAL_FLD, and rdt::values.
|
inlinevirtual |
Append metrics to the statistics table. The idea is to keep one table for each segment of code. New runs are appended to the table. Returns: the new_row number if Ok the setCell error code (< 0) if Error.
Implements RunStat.
Definition at line 401 of file stats_recorder.h.
References APPEND_LONG_FLD, APPEND_TIMEVAL_FLD, and CSVTable< Tvar >::nRows().
|
inlinevirtual |
Implements RunStat.
Definition at line 319 of file stats_recorder.h.
|
inlinevirtual |
Implements RunStat.
Definition at line 326 of file stats_recorder.h.
References SET_TOTAL, and SET_TOTAL_TIMEVAL.
|
protected |
Definition at line 452 of file stats_recorder.h.
|
protected |
Definition at line 453 of file stats_recorder.h.