NeoPZ
Public Member Functions | List of all members
RunStat Class Referenceabstract

#include <stats_recorder.h>

Inheritance diagram for RunStat:
[legend]

Public Member Functions

virtual void start ()=0
 
virtual void stop ()=0
 
virtual ~RunStat ()
 
virtual void print (ostream &os) const =0
 
virtual int setCellValues (CSVStringTable &st, unsigned row) const =0
 
virtual void clearStats ()=0
 

Detailed Description

Base class to store statistics that should be diffed (eg. execution time)

Definition at line 107 of file stats_recorder.h.

Constructor & Destructor Documentation

◆ ~RunStat()

virtual RunStat::~RunStat ( )
inlinevirtual

Member Function Documentation

◆ clearStats()

virtual void RunStat::clearStats ( )
pure virtual

Reset the statistics.

Implemented in ElapsedTimeRunStat, and RUsageRunStat.

◆ print()

virtual void RunStat::print ( ostream &  os) const
pure virtual

Print the statistics

Implemented in ElapsedTimeRunStat, and RUsageRunStat.

◆ setCellValues()

virtual int RunStat::setCellValues ( CSVStringTable st,
unsigned  row 
) const
pure virtual

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.

Implemented in ElapsedTimeRunStat, and RUsageRunStat.

◆ start()

virtual void RunStat::start ( )
pure virtual

Implemented in ElapsedTimeRunStat, and RUsageRunStat.

◆ stop()

virtual void RunStat::stop ( )
pure virtual

Implemented in ElapsedTimeRunStat, and RUsageRunStat.


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