|
|
delpi
0.0.1
DElta-complete LP solver
|
Dataclass collecting statistics about some operation or process. More...
#include <Stats.h>
Public Member Functions | |
| Stats (bool enabled, std::string class_name, std::string name_time="Time spent in Operations") | |
| Construct a Stats object. | |
| virtual std::string | ToSegmentString () const |
| Convert the current state of the object to a formatted string, only including the specific part the Stat object is concerned about. | |
| virtual std::string | ToString () const |
| Convert the current state of the object to a formatted string. | |
Protected Attributes | |
| bool | enabled_ |
| Flag to enable/disable the collection of statistics. | |
| std::string | class_name_ |
| Name of the class running the operation the Stats object is collecting statistics for. | |
| std::string | operations_name_ |
| Name of the operation the Stats object is collecting statistics for. | |
Private Attributes | |
| Timer | timer_ |
| Timer object to measure the cumulative time spent in the operation. | |
Dataclass collecting statistics about some operation or process.
At its more basic level, it collects the cumulative time spent in a given operation.
|
explicit |
Construct a Stats object.
|
nodiscardvirtual |
Convert the current state of the object to a formatted string, only including the specific part the Stat object is concerned about.
Reimplemented in delpi::IterationStats.
|
nodiscardvirtual |
Convert the current state of the object to a formatted string.
Reimplemented in delpi::IterationStats.