NeoPZ
Public Member Functions | Protected Attributes | List of all members
RUsageRunStat Class Reference

#include <stats_recorder.h>

Inheritance diagram for RUsageRunStat:
[legend]
Collaboration diagram for RUsageRunStat:
[legend]

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
 

Detailed Description

Definition at line 309 of file stats_recorder.h.

Constructor & Destructor Documentation

◆ RUsageRunStat()

RUsageRunStat::RUsageRunStat ( )
inline

Definition at line 313 of file stats_recorder.h.

Member Function Documentation

◆ clearStats()

void RUsageRunStat::clearStats ( )
inlinevirtual

Reset the statistics.

Implements RunStat.

Definition at line 442 of file stats_recorder.h.

◆ print()

void RUsageRunStat::print ( ostream &  os) const
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.

◆ setCellValues()

int RUsageRunStat::setCellValues ( CSVStringTable st,
unsigned  row 
) const
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().

◆ start()

void RUsageRunStat::start ( )
inlinevirtual

Implements RunStat.

Definition at line 319 of file stats_recorder.h.

◆ stop()

void RUsageRunStat::stop ( )
inlinevirtual

Implements RunStat.

Definition at line 326 of file stats_recorder.h.

References SET_TOTAL, and SET_TOTAL_TIMEVAL.

Member Data Documentation

◆ lap_children

struct rusage lap_self RUsageRunStat::lap_children
protected

Definition at line 452 of file stats_recorder.h.

◆ total_children

struct rusage total_self RUsageRunStat::total_children
protected

Definition at line 453 of file stats_recorder.h.


The documentation for this class was generated from the following file: