|
Gaudi Framework, version v23r8 |
| Home | Generated: Fri May 31 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 extends1< Service, IChronoStatSvc > | |
| typedef extends1 | base_class |
| Typedef to this class. | |
| typedef extend_interfaces1 < IChronoStatSvc > | 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_interfaces1< IChronoStatSvc > | |
| typedef IChronoStatSvc::iid::iids::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. | |
Public Member Functions inherited from extends1< Service, IChronoStatSvc > | |
| extends1 (A1 a1, A2 a2, A3 a3) | |
| Templated constructor with 3 arguments. | |
| extends1 (A1 a1, A2 a2) | |
| Templated constructor with 2 arguments. | |
| extends1 (A1 a1) | |
| Templated constructor with 1 argument. | |
| extends1 () | |
| 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 | ~extends1 () |
| 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_interfaces1< IChronoStatSvc > | |
| virtual | ~extend_interfaces1 () |
| Virtual destructor. | |
Public Member Functions inherited from IChronoStatSvc | |
| DeclareInterfaceIDMultiBase (IChronoStatSvc, 6, 0) | |
| InterfaceID. | |
Public Member Functions inherited from extend_interfaces3< IService, IChronoSvc, IStatSvc > | |
| virtual | ~extend_interfaces3 () |
| Virtual destructor. | |
Public Member Functions inherited from IService | |
| DeclareInterfaceID (IService, 3, 0) | |
| InterfaceID. | |
| virtual StatusCode | sysInitialize ()=0 |
| Initialize Service. | |
| virtual StatusCode | sysStart ()=0 |
| Start Service. | |
| virtual StatusCode | sysStop ()=0 |
| Stop Service. | |
| virtual StatusCode | sysFinalize ()=0 |
| Finalize Service. | |
| virtual StatusCode | sysReinitialize ()=0 |
| Re-initialize the Service. | |
| virtual StatusCode | sysRestart ()=0 |
| Re-start the Service. | |
| virtual StatusCode | configure ()=0 |
| Configuration (from OFFLINE to CONFIGURED). | |
| virtual StatusCode | start ()=0 |
| Start (from INITIALIZED to RUNNING). | |
| virtual StatusCode | stop ()=0 |
| Stop (from RUNNING to INITIALIZED). | |
| virtual StatusCode | terminate ()=0 |
| Initialization (from CONFIGURED to OFFLINE). | |
| virtual StatusCode | reinitialize ()=0 |
| Initialization (from INITIALIZED or RUNNING to INITIALIZED, via CONFIGURED). | |
| virtual StatusCode | restart ()=0 |
| Initialization (from RUNNING to RUNNING, via INITIALIZED). | |
| virtual Gaudi::StateMachine::State | FSMState () const =0 |
| Get the current state. | |
| virtual Gaudi::StateMachine::State | targetFSMState () const =0 |
| When we are in the middle of a transition, get the state where the transition is leading us. | |
| virtual | ~IService () |
| virtual destructor | |
Public Member Functions inherited from INamedInterface | |
| DeclareInterfaceID (INamedInterface, 1, 0) | |
| InterfaceID. | |
| virtual const std::string & | name () const =0 |
| Retrieve the name of the instance. | |
| virtual | ~INamedInterface () |
| Virtual destructor (always needed for abstract classes). | |
Public Member Functions inherited from IInterface | |
| virtual unsigned long | addRef ()=0 |
| Increment the reference count of Interface instance. | |
| virtual unsigned long | release ()=0 |
| Release Interface instance. | |
| virtual unsigned long | refCount () const =0 |
| Current reference count. | |
| virtual | ~IInterface () |
| Virtual destructor. | |
Public Member Functions inherited from IChronoSvc | |
| DeclareInterfaceID (IChronoSvc, 3, 0) | |
| InterfaceID. | |
Public Member Functions inherited from IStatSvc | |
| DeclareInterfaceID (IStatSvc, 2, 0) | |
| InterfaceID. | |
Protected Member Functions | |
| void | printStats () |
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 | |
Additional Inherited Members | |
Static Public Member Functions inherited from IInterface | |
| static const InterfaceID & | interfaceID () |
| Return an instance of InterfaceID identifying the interface. | |
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 36 of file ChronoStatSvc.h.
some useful typedefs
Definition at line 40 of file ChronoStatSvc.h.
Definition at line 41 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 91 of file ChronoStatSvc.cpp.
|
virtual |
Destructor.
Definition at line 170 of file ChronoStatSvc.cpp.
|
private |
|
private |
|
virtual |
extract the chrono entity for the given tag (name)
| t | chrono tag(name) |
Implements IChronoSvc.
Definition at line 472 of file ChronoStatSvc.cpp.
|
virtual |
Implementation of IchronoStatSvc::chronoDelta.
Implements IChronoSvc.
Definition at line 400 of file ChronoStatSvc.cpp.
|
virtual |
Implementation of IChronoStatSvc::chronoPrint.
Implements IChronoSvc.
Definition at line 409 of file ChronoStatSvc.cpp.
|
virtual |
Implementation of IChronoStatSvc::chronoStart.
Implements IChronoSvc.
Definition at line 378 of file ChronoStatSvc.cpp.
|
virtual |
Implementation of IChronoStatSvc::chronoStatus.
Implements IChronoSvc.
Definition at line 428 of file ChronoStatSvc.cpp.
|
virtual |
Implementation of IChronoStatSvc::chronoStop.
Implements IChronoSvc.
Definition at line 389 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 228 of file ChronoStatSvc.cpp.
|
virtual |
Implementation of IService::initialize()
redefine some "properties"
start its own chrono
Reimplemented from Service.
Definition at line 180 of file ChronoStatSvc.cpp.
|
private |
|
protected |
nothing to print?
CONTINUE
CONTINUE
decoration
Definition at line 573 of file ChronoStatSvc.cpp.
|
private |
dump the statistics into an ASCII file for offline processing
CONTINUE
CONTINUE
Definition at line 495 of file ChronoStatSvc.cpp.
|
virtual |
Implementation of IChronoStatSvc::stat add statistical information to the entity , tagged by its name.
Implements IStatSvc.
Definition at line 434 of file ChronoStatSvc.cpp.
|
virtual |
extract the stat entity for the given tag (name)
| t | stat tag(name) |
Implements IStatSvc.
Definition at line 486 of file ChronoStatSvc.cpp.
|
virtual |
prints (using message service) info about statistical entity, tagged by its name
Implements IStatSvc.
Definition at line 459 of file ChronoStatSvc.cpp.
|
private |
flag for destination of the the final table
Definition at line 149 of file ChronoStatSvc.h.
|
private |
chrono part
Definition at line 142 of file ChronoStatSvc.h.
|
private |
flag for formattion the final statistic table
Definition at line 151 of file ChronoStatSvc.h.
|
private |
Definition at line 145 of file ChronoStatSvc.h.
|
private |
flag for printing the final table
Definition at line 147 of file ChronoStatSvc.h.
|
private |
format for regular statistical printout rows
Definition at line 182 of file ChronoStatSvc.h.
|
private |
format for "efficiency" statistical printout rows
Definition at line 184 of file ChronoStatSvc.h.
|
private |
the header row
Definition at line 180 of file ChronoStatSvc.h.
|
private |
level of info printing
Definition at line 144 of file ChronoStatSvc.h.
|
private |
level of info printing
Definition at line 166 of file ChronoStatSvc.h.
|
private |
Definition at line 160 of file ChronoStatSvc.h.
|
private |
flag for printing Ellapsed quantities
Definition at line 157 of file ChronoStatSvc.h.
|
private |
flag for printing System quantities
Definition at line 155 of file ChronoStatSvc.h.
|
private |
flag for printing User quantities
Definition at line 153 of file ChronoStatSvc.h.
|
private |
flag for destination of the t he final table
Definition at line 171 of file ChronoStatSvc.h.
|
private |
stat part
Definition at line 163 of file ChronoStatSvc.h.
|
private |
flag for formattion the final statistic table
Definition at line 173 of file ChronoStatSvc.h.
|
private |
Definition at line 167 of file ChronoStatSvc.h.
|
private |
Name of the output file where we'll dump the stats.
Definition at line 177 of file ChronoStatSvc.h.
|
private |
flag for printing the final table
Definition at line 169 of file ChronoStatSvc.h.
|
private |
flag to use the special "efficiency" format
Definition at line 186 of file ChronoStatSvc.h.