![]() |
The Gaudi Framework
v28r0
|
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 More... | |
| IChronoSvc::ChronoStatus | start () |
| start the current chrono More... | |
| IChronoSvc::ChronoStatus | stop () |
| stop the chrono More... | |
| IChronoSvc::ChronoTime | delta (IChronoSvc::ChronoType type) const |
| return the last delta-time of type "type" More... | |
| IChronoSvc::ChronoStatus | status () const |
| return the status of chrono More... | |
| unsigned long | nOfMeasurements () const |
| number of chrono measurements More... | |
| double | uMinimalTime () const |
| minimal measurement for user time More... | |
| double | kMinimalTime () const |
| minimal measurement for kernel time More... | |
| double | eMinimalTime () const |
| minimal measurement for elapsed time More... | |
| double | uMaximalTime () const |
| maximal measurement for user time More... | |
| double | kMaximalTime () const |
| maximal measurement for kernel time More... | |
| double | eMaximalTime () const |
| maximal measurement for elapsed time More... | |
| double | uTotalTime () const |
| total user time More... | |
| double | kTotalTime () const |
| total Kernel time More... | |
| double | eTotalTime () const |
| total Elapsed time More... | |
| double | totalTime () const |
| total time More... | |
| double | kMeanTime () const |
| average Kernel Time More... | |
| double | uMeanTime () const |
| average User Time More... | |
| double | eMeanTime () const |
| average Elapsed Time More... | |
| double | kRMSTime () const |
| r.m.s Kernel Time More... | |
| double | uRMSTime () const |
| r.m.s User Time More... | |
| double | eRMSTime () const |
| r.m.s Elapsed Time More... | |
| double | kMeanErrorTime () const |
| error in mean Kernel time More... | |
| double | uMeanErrorTime () const |
| error in mean User time More... | |
| double | eMeanErrorTime () const |
| error in mean Elapsed time More... | |
| bool | operator< (const ChronoEntity &entity) const |
| comparison operator More... | |
| ChronoEntity & | operator+= (const ChronoEntity &entity) |
| Compound assignment operator. More... | |
| std::string | outputUserTime () const |
| print the chrono ; More... | |
| std::string | outputSystemTime () const |
| print the chrono ; More... | |
| std::string | outputElapsedTime () const |
| print the chrono ; More... | |
| std::string | outputUserTime (const std::string &fmt, System::TimeType unit) const |
| print the chrono according the format and units More... | |
| std::string | outputSystemTime (const std::string &fmt, System::TimeType unit) const |
| print the chrono according the format and units More... | |
| std::string | outputElapsedTime (const std::string &fmt, System::TimeType unit) const |
| print the chrono according the format and units More... | |
| std::string | outputTime (IChronoSvc::ChronoType typ, const std::string &fmt, System::TimeType unit) const |
| print the chrono according the format and units More... | |
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 More... | |
Private Attributes | |
| IChronoSvc::ChronoStatus | m_status = IChronoSvc::UNKNOWN |
| current status of this chrono object; More... | |
| System::ProcessTime | m_delta |
| delta process times More... | |
| System::ProcessTime | m_start |
| start stamp for current measurement of process times More... | |
| StatEntity | m_user |
| the actual storage of "user" time More... | |
| StatEntity | m_kernel |
| the actual storage of "kernel" time More... | |
| StatEntity | m_elapsed |
| the actual storage of "elapsed" time More... | |
Static Private Attributes | |
| static const System::TimeType | TimeUnit = System::microSec |
| internal unit used for the system time conversion (microseconds) More... | |
a small helper class for implementation of ChronoStatSvc service, It also could be used as some local timer
Definition at line 21 of file ChronoEntity.h.
|
default |
default constructor
|
inline |
return the last delta-time of type "type"
Definition at line 295 of file ChronoEntity.h.
|
inline |
maximal measurement for elapsed time
Definition at line 224 of file ChronoEntity.h.
|
inline |
error in mean Elapsed time
Definition at line 290 of file ChronoEntity.h.
|
inline |
average Elapsed Time
Definition at line 260 of file ChronoEntity.h.
|
inline |
minimal measurement for elapsed time
Definition at line 209 of file ChronoEntity.h.
|
inline |
r.m.s Elapsed Time
Definition at line 275 of file ChronoEntity.h.
|
inline |
total Elapsed time
Definition at line 239 of file ChronoEntity.h.
|
protected |
format
Definition at line 124 of file ChronoEntity.cpp.
|
inline |
maximal measurement for kernel time
Definition at line 219 of file ChronoEntity.h.
|
inline |
error in mean Kernel time
Definition at line 280 of file ChronoEntity.h.
|
inline |
average Kernel Time
Definition at line 250 of file ChronoEntity.h.
|
inline |
minimal measurement for kernel time
Definition at line 204 of file ChronoEntity.h.
|
inline |
r.m.s Kernel Time
Definition at line 265 of file ChronoEntity.h.
|
inline |
total Kernel time
Definition at line 234 of file ChronoEntity.h.
|
inline |
number of chrono measurements
Definition at line 194 of file ChronoEntity.h.
| ChronoEntity & ChronoEntity::operator+= | ( | const ChronoEntity & | entity | ) |
Compound assignment operator.
Definition at line 189 of file ChronoEntity.cpp.
| bool ChronoEntity::operator< | ( | const ChronoEntity & | entity | ) | const |
comparison operator
Definition at line 173 of file ChronoEntity.cpp.
| std::string ChronoEntity::outputElapsedTime | ( | ) | const |
print the chrono ;
Definition at line 110 of file ChronoEntity.cpp.
|
inline |
print the chrono according the format and units
| fmt | the format string |
| unit | the unit |
Definition at line 347 of file ChronoEntity.h.
| std::string ChronoEntity::outputSystemTime | ( | ) | const |
print the chrono ;
Definition at line 98 of file ChronoEntity.cpp.
|
inline |
print the chrono according the format and units
| fmt | the format string |
| unit | the unit |
Definition at line 332 of file ChronoEntity.h.
| std::string ChronoEntity::outputTime | ( | IChronoSvc::ChronoType | typ, |
| const std::string & | 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 218 of file ChronoEntity.cpp.
| std::string ChronoEntity::outputUserTime | ( | ) | const |
print the chrono ;
Definition at line 85 of file ChronoEntity.cpp.
|
inline |
print the chrono according the format and units
| fmt | the format string |
| unit | the unit |
Definition at line 317 of file ChronoEntity.h.
| IChronoSvc::ChronoStatus ChronoEntity::start | ( | ) |
start the current chrono
Definition at line 47 of file ChronoEntity.cpp.
|
inline |
return the status of chrono
Definition at line 189 of file ChronoEntity.h.
| IChronoSvc::ChronoStatus ChronoEntity::stop | ( | ) |
stop the chrono
Definition at line 63 of file ChronoEntity.cpp.
|
inline |
|
inline |
maximal measurement for user time
Definition at line 214 of file ChronoEntity.h.
|
inline |
error in mean User time
Definition at line 285 of file ChronoEntity.h.
|
inline |
average User Time
Definition at line 255 of file ChronoEntity.h.
|
inline |
minimal measurement for user time
Definition at line 198 of file ChronoEntity.h.
|
inline |
r.m.s User Time
Definition at line 270 of file ChronoEntity.h.
|
inline |
total user time
Definition at line 229 of file ChronoEntity.h.
|
private |
delta process times
Definition at line 172 of file ChronoEntity.h.
|
private |
the actual storage of "elapsed" time
Definition at line 180 of file ChronoEntity.h.
|
private |
the actual storage of "kernel" time
Definition at line 178 of file ChronoEntity.h.
|
private |
start stamp for current measurement of process times
Definition at line 174 of file ChronoEntity.h.
|
private |
current status of this chrono object;
Definition at line 170 of file ChronoEntity.h.
|
private |
the actual storage of "user" time
Definition at line 176 of file ChronoEntity.h.
|
staticprivate |
internal unit used for the system time conversion (microseconds)
Definition at line 182 of file ChronoEntity.h.