|
Gaudi Framework, version v24r2 |
| Home | Generated: Wed Dec 4 2013 |
The Chrono & Stat Sservice: service implements the IChronoStatSvc interface and provides the basic chronometry and some statistical counts needed by all applications. More...
#include <ChronoStatSvc.h>


Public Types | |
| typedef std::map < IChronoStatSvc::ChronoTag, ChronoEntity > | ChronoMap |
| some useful typedefs | |
| typedef std::map < IChronoStatSvc::StatTag, StatEntity > | StatMap |
Public Types inherited from extends2< Service, IChronoStatSvc, IIncidentListener > | |
| typedef extends2 | base_class |
| Typedef to this class. | |
| typedef extend_interfaces2 < IChronoStatSvc, IIncidentListener > | extend_interfaces_base |
| Typedef to the base of this class. | |
| typedef extend_interfaces_base::ext_iids | interfaces |
| MPL set of all the implemented interfaces. | |
Public Types inherited from extend_interfaces2< I1, I2 > | |
| typedef mpl::fold< typename I1::iid::iids::type, typename I2::iid::iids::type, mpl::insert< mpl::_1, mpl::_2 > >::type | ext_iids |
| MPL set of interfaces extended by this one. | |
Public Member Functions | |
| virtual StatusCode | initialize () |
| Implementation of IService::initialize() | |
| virtual StatusCode | finalize () |
| Implementation of IService::finalize() | |
| virtual ChronoEntity * | chronoStart (const IChronoStatSvc::ChronoTag &chronoTag) |
| Implementation of IChronoStatSvc::chronoStart. | |
| virtual const ChronoEntity * | chronoStop (const IChronoStatSvc::ChronoTag &chronoTag) |
| Implementation of IChronoStatSvc::chronoStop. | |
| virtual IChronoStatSvc::ChronoTime | chronoDelta (const IChronoStatSvc::ChronoTag &chronoTag, IChronoStatSvc::ChronoType theType) |
| Implementation of IchronoStatSvc::chronoDelta. | |
| virtual void | chronoPrint (const IChronoStatSvc::ChronoTag &chronoTag) |
| Implementation of IChronoStatSvc::chronoPrint. | |
| virtual ChronoStatus | chronoStatus (const IChronoStatSvc::ChronoTag &chronoTag) |
| Implementation of IChronoStatSvc::chronoStatus. | |
| virtual void | stat (const IChronoStatSvc::StatTag &statTag, const IChronoStatSvc::StatFlag &statFlag) |
| Implementation of IChronoStatSvc::stat add statistical information to the entity , tagged by its name. | |
| virtual void | statPrint (const IChronoStatSvc::ChronoTag &statTag) |
| prints (using message service) info about statistical entity, tagged by its name | |
| virtual const ChronoEntity * | chrono (const IChronoStatSvc::ChronoTag &t) const |
| extract the chrono entity for the given tag (name) | |
| virtual const StatEntity * | stat (const IChronoStatSvc::StatTag &t) const |
| extract the stat entity for the given tag (name) | |
| ChronoStatSvc (const std::string &name, ISvcLocator *svcloc) | |
| Default constructor. | |
| virtual | ~ChronoStatSvc () |
| Destructor. | |
| void | handle (const Incident &incident) |
Public Member Functions inherited from extends2< Service, IChronoStatSvc, IIncidentListener > | |
| extends2 (A1 a1, A2 a2, A3 a3) | |
| Templated constructor with 3 arguments. | |
| extends2 (A1 a1, A2 a2) | |
| Templated constructor with 2 arguments. | |
| extends2 (A1 a1) | |
| Templated constructor with 1 argument. | |
| extends2 () | |
| Default constructor. | |
| virtual void * | i_cast (const InterfaceID &tid) const |
| Implementation of IInterface::i_cast. | |
| virtual StatusCode | queryInterface (const InterfaceID &ti, void **pp) |
| Implementation of IInterface::queryInterface. | |
| virtual std::vector< std::string > | getInterfaceNames () const |
| Implementation of IInterface::getInterfaceNames. | |
| virtual | ~extends2 () |
| Virtual destructor. | |
Public Member Functions inherited from Service | |
| virtual unsigned long | release () |
| Release Interface instance. | |
| virtual const std::string & | name () const |
| Retrieve name of the service. | |
| virtual StatusCode | configure () |
| virtual StatusCode | start () |
| virtual StatusCode | stop () |
| virtual StatusCode | terminate () |
| virtual Gaudi::StateMachine::State | FSMState () const |
| virtual Gaudi::StateMachine::State | targetFSMState () const |
| virtual StatusCode | reinitialize () |
| virtual StatusCode | restart () |
| virtual StatusCode | sysInitialize () |
| Initialize Service. | |
| virtual StatusCode | sysStart () |
| Initialize Service. | |
| virtual StatusCode | sysStop () |
| Initialize Service. | |
| virtual StatusCode | sysFinalize () |
| Finalize Service. | |
| virtual StatusCode | sysReinitialize () |
| Re-initialize the Service. | |
| virtual StatusCode | sysRestart () |
| Re-initialize the Service. | |
| virtual StatusCode | setProperty (const Property &p) |
| virtual StatusCode | setProperty (const std::string &s) |
| virtual StatusCode | setProperty (const std::string &n, const std::string &v) |
| virtual StatusCode | getProperty (Property *p) const |
| virtual const Property & | getProperty (const std::string &name) const |
| virtual StatusCode | getProperty (const std::string &n, std::string &v) const |
| virtual const std::vector < Property * > & | getProperties () const |
| template<class TYPE > | |
| StatusCode | setProperty (const std::string &name, const TYPE &value) |
| set the property form the value | |
| Service (const std::string &name, ISvcLocator *svcloc) | |
| Standard Constructor. | |
| SmartIF< ISvcLocator > & | serviceLocator () const |
| Retrieve pointer to service locator. | |
| StatusCode | setProperties () |
| Method for setting declared properties to the values specified for the job. | |
| template<class T > | |
| StatusCode | service (const std::string &name, const T *&psvc, bool createIf=true) const |
| Access a service by name, creating it if it doesn't already exist. | |
| template<class T > | |
| StatusCode | service (const std::string &name, T *&psvc, bool createIf=true) const |
| template<class T > | |
| StatusCode | service (const std::string &svcType, const std::string &svcName, T *&psvc) const |
| Access a service by name and type, creating it if it doesn't already exist. | |
| template<class T > | |
| Property * | declareProperty (const std::string &name, T &property, const std::string &doc="none") const |
| Declare the named property. | |
| Property * | declareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") const |
| Declare remote named properties. | |
| SmartIF< IAuditorSvc > & | auditorSvc () const |
| The standard auditor service.May not be invoked before sysInitialize() has been invoked. | |
Public Member Functions inherited from CommonMessaging< implements3< IService, IProperty, IStateful > > | |
| CommonMessaging (const A1 &a1, const A2 &a2, const A3 &a3) | |
| Templated constructor with 3 arguments. | |
| CommonMessaging (const A1 &a1, const A2 &a2) | |
| Templated constructor with 2 arguments. | |
| CommonMessaging (const A1 &a1) | |
| Templated constructor with 1 argument. | |
| CommonMessaging () | |
| Default constructor. | |
| virtual | ~CommonMessaging () |
| Virtual destructor. | |
| SmartIF< IMessageSvc > & | msgSvc () const |
| The standard message service. | |
| MsgStream & | msgStream () const |
| Return an uninitialized MsgStream. | |
| MsgStream & | msgStream (const MSG::Level level) const |
| Predefined configurable message stream for the efficient printouts. | |
| MsgStream & | always () const |
| shortcut for the method msgStream(MSG::ALWAYS) | |
| MsgStream & | fatal () const |
| shortcut for the method msgStream(MSG::FATAL) | |
| MsgStream & | err () const |
| shortcut for the method msgStream(MSG::ERROR) | |
| MsgStream & | error () const |
| shortcut for the method msgStream(MSG::ERROR) | |
| MsgStream & | warning () const |
| shortcut for the method msgStream(MSG::WARNING) | |
| MsgStream & | info () const |
| shortcut for the method msgStream(MSG::INFO) | |
| MsgStream & | debug () const |
| shortcut for the method msgStream(MSG::DEBUG) | |
| MsgStream & | verbose () const |
| shortcut for the method msgStream(MSG::VERBOSE) | |
| MsgStream & | msg () const |
| shortcut for the method msgStream(MSG::INFO) | |
| MSG::Level | msgLevel () const |
| get the output level from the embedded MsgStream | |
| bool | msgLevel (MSG::Level lvl) const |
| get the output level from the embedded MsgStream | |
Public Member Functions inherited from extend_interfaces2< I1, I2 > | |
| virtual | ~extend_interfaces2 () |
| Virtual destructor. | |
Protected Member Functions | |
| void | printStats () |
Private Types | |
| typedef std::map< ChronoTag, std::vector < IChronoSvc::ChronoTime > > | TimeMap |
Private Member Functions | |
| ChronoStatSvc () | |
| ChronoStatSvc (const ChronoStatSvc &) | |
| ChronoStatSvc & | operator= (const ChronoStatSvc &) |
| void | saveStats () |
| dump the statistics into an ASCII file for offline processing | |
Private Attributes | |
| ChronoMap | m_chronoEntities |
| chrono part | |
| int | m_intChronoPrintLevel |
| level of info printing | |
| MSG::Level | m_chronoPrintLevel |
| bool | m_chronoTableFlag |
| flag for printing the final table | |
| bool | m_chronoCoutFlag |
| flag for destination of the the final table | |
| bool | m_chronoOrderFlag |
| flag for formattion the final statistic table | |
| bool | m_printUserTime |
| flag for printing User quantities | |
| bool | m_printSystemTime |
| flag for printing System quantities | |
| bool | m_printEllapsedTime |
| flag for printing Ellapsed quantities | |
| long | m_numberOfSkippedEventsForMemStat |
| StatMap | m_statEntities |
| stat part | |
| int | m_intStatPrintLevel |
| level of info printing | |
| MSG::Level | m_statPrintLevel |
| bool | m_statTableFlag |
| flag for printing the final table | |
| bool | m_statCoutFlag |
| flag for destination of the t he final table | |
| bool | m_statOrderFlag |
| flag for formattion the final statistic table | |
| StringProperty | m_statsOutFileName |
| Name of the output file where we'll dump the stats. | |
| std::string | m_header |
| the header row | |
| std::string | m_format1 |
| format for regular statistical printout rows | |
| std::string | m_format2 |
| format for "efficiency" statistical printout rows | |
| bool | m_useEffFormat |
| flag to use the special "efficiency" format | |
| TimeMap | m_perEvtTime |
| std::string | m_perEventFile |
| std::ofstream | m_ofd |
Additional Inherited Members | |
Protected Attributes inherited from Service | |
| IntegerProperty | m_outputLevel |
| Service output level. | |
| Gaudi::StateMachine::State | m_state |
| Service state. | |
| Gaudi::StateMachine::State | m_targetState |
| Service state. | |
The Chrono & Stat Sservice: service implements the IChronoStatSvc interface and provides the basic chronometry and some statistical counts needed by all applications.
Definition at line 38 of file ChronoStatSvc.h.
some useful typedefs
Definition at line 43 of file ChronoStatSvc.h.
Definition at line 44 of file ChronoStatSvc.h.
|
private |
Definition at line 196 of file ChronoStatSvc.h.
| ChronoStatSvc::ChronoStatSvc | ( | const std::string & | name, |
| ISvcLocator * | svcloc | ||
| ) |
Default constructor.
| name | service instance name |
| svcloc | pointer to servcie locator |
decide if the final printout should be performed
define the destination of the table to be printed
print level
if printout is to be performed, should one take care about some ordering?
if User Time information to be printed?
if System Time information to be printed?
if Ellapsed Time information to be printed?
deside if the final printout should be performed
define the destination of the table to be printed
print level
if printout is to be performed, should one take care about some ordering?
Definition at line 92 of file ChronoStatSvc.cpp.
|
virtual |
Destructor.
Definition at line 176 of file ChronoStatSvc.cpp.
|
private |
|
private |
|
virtual |
extract the chrono entity for the given tag (name)
| t | chrono tag(name) |
Definition at line 514 of file ChronoStatSvc.cpp.
|
virtual |
Implementation of IchronoStatSvc::chronoDelta.
Definition at line 442 of file ChronoStatSvc.cpp.
|
virtual |
Implementation of IChronoStatSvc::chronoPrint.
Definition at line 451 of file ChronoStatSvc.cpp.
|
virtual |
Implementation of IChronoStatSvc::chronoStart.
Definition at line 420 of file ChronoStatSvc.cpp.
|
virtual |
Implementation of IChronoStatSvc::chronoStatus.
Definition at line 470 of file ChronoStatSvc.cpp.
|
virtual |
Implementation of IChronoStatSvc::chronoStop.
Definition at line 431 of file ChronoStatSvc.cpp.
|
virtual |
Implementation of IService::finalize()
stop its own chrono
Is the final chrono table to be printed?
decoration
CONTINUE
CONTINUE
stop chrono (if it is still in RUNNING status)
print to std::cout
print to MsgStream
decoration
CONTINUE
CONTINUE
stop chrono (if it is still in RUNNING status)
print to std::cout
print to MsgStream
decoration
CONTINUE
CONTINUE
stop chrono (if it is still in RUNNING status)
print to std::cout
print to MsgStream
clear the temporary container
the final decoration
Is the final stat table to be printed?
< finalize the base class
Reimplemented from Service.
Definition at line 251 of file ChronoStatSvc.cpp.
| void ChronoStatSvc::handle | ( | const Incident & | incident | ) |
Definition at line 693 of file ChronoStatSvc.cpp.
|
virtual |
Implementation of IService::initialize()
redefine some "properties"
start its own chrono
Reimplemented from Service.
Definition at line 186 of file ChronoStatSvc.cpp.
|
private |
|
protected |
nothing to print?
CONTINUE
CONTINUE
decoration
Definition at line 615 of file ChronoStatSvc.cpp.
|
private |
dump the statistics into an ASCII file for offline processing
CONTINUE
CONTINUE
Definition at line 537 of file ChronoStatSvc.cpp.
|
virtual |
Implementation of IChronoStatSvc::stat add statistical information to the entity , tagged by its name.
Definition at line 476 of file ChronoStatSvc.cpp.
|
virtual |
extract the stat entity for the given tag (name)
| t | stat tag(name) |
Definition at line 528 of file ChronoStatSvc.cpp.
|
virtual |
prints (using message service) info about statistical entity, tagged by its name
Definition at line 501 of file ChronoStatSvc.cpp.
|
private |
flag for destination of the the final table
Definition at line 157 of file ChronoStatSvc.h.
|
private |
chrono part
Definition at line 150 of file ChronoStatSvc.h.
|
private |
flag for formattion the final statistic table
Definition at line 159 of file ChronoStatSvc.h.
|
private |
Definition at line 153 of file ChronoStatSvc.h.
|
private |
flag for printing the final table
Definition at line 155 of file ChronoStatSvc.h.
|
private |
format for regular statistical printout rows
Definition at line 190 of file ChronoStatSvc.h.
|
private |
format for "efficiency" statistical printout rows
Definition at line 192 of file ChronoStatSvc.h.
|
private |
the header row
Definition at line 188 of file ChronoStatSvc.h.
|
private |
level of info printing
Definition at line 152 of file ChronoStatSvc.h.
|
private |
level of info printing
Definition at line 174 of file ChronoStatSvc.h.
|
private |
Definition at line 168 of file ChronoStatSvc.h.
|
private |
Definition at line 199 of file ChronoStatSvc.h.
|
private |
Definition at line 198 of file ChronoStatSvc.h.
|
private |
Definition at line 197 of file ChronoStatSvc.h.
|
private |
flag for printing Ellapsed quantities
Definition at line 165 of file ChronoStatSvc.h.
|
private |
flag for printing System quantities
Definition at line 163 of file ChronoStatSvc.h.
|
private |
flag for printing User quantities
Definition at line 161 of file ChronoStatSvc.h.
|
private |
flag for destination of the t he final table
Definition at line 179 of file ChronoStatSvc.h.
|
private |
stat part
Definition at line 171 of file ChronoStatSvc.h.
|
private |
flag for formattion the final statistic table
Definition at line 181 of file ChronoStatSvc.h.
|
private |
Definition at line 175 of file ChronoStatSvc.h.
|
private |
Name of the output file where we'll dump the stats.
Definition at line 185 of file ChronoStatSvc.h.
|
private |
flag for printing the final table
Definition at line 177 of file ChronoStatSvc.h.
|
private |
flag to use the special "efficiency" format
Definition at line 194 of file ChronoStatSvc.h.