![]() |
The Gaudi Framework
master (e68eea06)
|
a small helper class for implementation of ChronoStatSvc service, It also could be used as some local timer More...
#include <GaudiKernel/ChronoEntity.h>

Public Member Functions | |
| ChronoEntity ()=default | |
| default constructor | |
| IChronoSvc::ChronoStatus | start () |
| start the current chrono | |
| IChronoSvc::ChronoStatus | stop () |
| stop the chrono | |
| IChronoSvc::ChronoTime | delta (IChronoSvc::ChronoType type) const |
| return the last delta-time of type "type" | |
| IChronoSvc::ChronoStatus | status () const |
| return the status of chrono | |
| unsigned long | nOfMeasurements () const |
| number of chrono measurements | |
| double | uMinimalTime () const |
| minimal measurement for user time | |
| double | kMinimalTime () const |
| minimal measurement for kernel time | |
| double | eMinimalTime () const |
| minimal measurement for elapsed time | |
| double | uMaximalTime () const |
| maximal measurement for user time | |
| double | kMaximalTime () const |
| maximal measurement for kernel time | |
| double | eMaximalTime () const |
| maximal measurement for elapsed time | |
| double | uTotalTime () const |
| total user time | |
| double | kTotalTime () const |
| total Kernel time | |
| double | eTotalTime () const |
| total Elapsed time | |
| double | totalTime () const |
| total time | |
| double | kMeanTime () const |
| average Kernel Time | |
| double | uMeanTime () const |
| average User Time | |
| double | eMeanTime () const |
| average Elapsed Time | |
| double | kRMSTime () const |
| r.m.s Kernel Time | |
| double | uRMSTime () const |
| r.m.s User Time | |
| double | eRMSTime () const |
| r.m.s Elapsed Time | |
| double | kMeanErrorTime () const |
| error in mean Kernel time | |
| double | uMeanErrorTime () const |
| error in mean User time | |
| double | eMeanErrorTime () const |
| error in mean Elapsed time | |
| ChronoEntity & | operator+= (const ChronoEntity &entity) |
| Compound assignment operator. | |
| std::string | outputUserTime () const |
| print the chrono ; | |
| std::string | outputSystemTime () const |
| print the chrono ; | |
| std::string | outputElapsedTime () const |
| print the chrono ; | |
| std::string | outputUserTime (std::string_view fmt, System::TimeType unit) const |
| print the chrono according the format and units | |
| std::string | outputSystemTime (std::string_view fmt, System::TimeType unit) const |
| print the chrono according the format and units | |
| std::string | outputElapsedTime (std::string_view fmt, System::TimeType unit) const |
| print the chrono according the format and units | |
| std::string | outputTime (IChronoSvc::ChronoType typ, std::string_view fmt, System::TimeType unit) const |
| print the chrono according the format and units | |
Protected Member Functions | |
| std::string | format (const double total, const double minimal, const double mean, const double rms, const double maximal, const unsigned long number) const |
| format | |
Protected Attributes | |
| IChronoSvc::ChronoStatus | m_status = IChronoSvc::UNKNOWN |
| current status of this chrono object; | |
| System::ProcessTime | m_delta |
| delta process times | |
| System::ProcessTime | m_start |
| start stamp for current measurement of process times | |
| StatEntity | m_user |
| the actual storage of "user" time | |
| StatEntity | m_kernel |
| the actual storage of "kernel" time | |
| StatEntity | m_elapsed |
| the actual storage of "elapsed" time | |
Static Protected Attributes | |
| static const System::TimeType | TimeUnit = System::microSec |
| internal unit used for the system time conversion (microseconds) | |
Friends | |
| bool | operator< (ChronoEntity const &lhs, ChronoEntity const &rhs) |
| comparison operator | |
a small helper class for implementation of ChronoStatSvc service, It also could be used as some local timer
Definition at line 26 of file ChronoEntity.h.
|
default |
default constructor
|
inline |
return the last delta-time of type "type"
Definition at line 184 of file ChronoEntity.h.
|
inline |
maximal measurement for elapsed time
Definition at line 170 of file ChronoEntity.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
format
Definition at line 80 of file ChronoEntity.cpp.
|
inline |
maximal measurement for kernel time
Definition at line 169 of file ChronoEntity.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| ChronoEntity & ChronoEntity::operator+= | ( | const ChronoEntity & | entity | ) |
Compound assignment operator.
Definition at line 117 of file ChronoEntity.cpp.
| std::string ChronoEntity::outputElapsedTime | ( | ) | const |
print the chrono ;
Definition at line 76 of file ChronoEntity.cpp.
|
inline |
print the chrono according the format and units
| fmt | the format string |
| unit | the unit |
Definition at line 225 of file ChronoEntity.h.
| std::string ChronoEntity::outputSystemTime | ( | ) | const |
print the chrono ;
Definition at line 72 of file ChronoEntity.cpp.
|
inline |
print the chrono according the format and units
| fmt | the format string |
| unit | the unit |
Definition at line 215 of file ChronoEntity.h.
| std::string ChronoEntity::outputTime | ( | IChronoSvc::ChronoType | typ, |
| std::string_view | fmt, | ||
| System::TimeType | unit ) const |
print the chrono according the format and units
The format fields are:
| typ | the chrono type |
| fmt | the format string |
| unit | the unit |
Definition at line 134 of file ChronoEntity.cpp.
| std::string ChronoEntity::outputUserTime | ( | ) | const |
print the chrono ;
Definition at line 68 of file ChronoEntity.cpp.
|
inline |
print the chrono according the format and units
| fmt | the format string |
| unit | the unit |
Definition at line 205 of file ChronoEntity.h.
| IChronoSvc::ChronoStatus ChronoEntity::start | ( | ) |
start the current chrono
Definition at line 35 of file ChronoEntity.cpp.
|
inline |
| IChronoSvc::ChronoStatus ChronoEntity::stop | ( | ) |
stop the chrono
Definition at line 50 of file ChronoEntity.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
comparison operator
Definition at line 88 of file ChronoEntity.h.
|
protected |
delta process times
Definition at line 150 of file ChronoEntity.h.
|
protected |
the actual storage of "elapsed" time
Definition at line 158 of file ChronoEntity.h.
|
protected |
the actual storage of "kernel" time
Definition at line 156 of file ChronoEntity.h.
|
protected |
start stamp for current measurement of process times
Definition at line 152 of file ChronoEntity.h.
|
protected |
current status of this chrono object;
Definition at line 148 of file ChronoEntity.h.
|
protected |
the actual storage of "user" time
Definition at line 154 of file ChronoEntity.h.
|
staticprotected |
internal unit used for the system time conversion (microseconds)
Definition at line 160 of file ChronoEntity.h.