|
Gaudi Framework, version v25r0 |
| Home | Generated: Mon Feb 17 2014 |
Implements the time measurement inside a sequencer. More...
#include <SequencerTimerTool.h>


Public Member Functions | |
| SequencerTimerTool (const std::string &type, const std::string &name, const IInterface *parent) | |
| Standard constructor. | |
| virtual | ~SequencerTimerTool () |
| Destructor. | |
| virtual StatusCode | initialize () |
| initialize method, to compute the normalization factor | |
| virtual StatusCode | finalize () |
| finalize method, to print the time summary table | |
| virtual int | addTimer (const std::string &name) |
| add a timer entry with the specified name | |
| virtual void | increaseIndent () |
| Increase the indentation of the name. | |
| virtual void | decreaseIndent () |
| Decrease the indentation of the name. | |
| void | start (int index) |
| start the counter, i.e. | |
| double | stop (int index) |
| stop the counter, return the elapsed time | |
| double | lastTime (int index) |
| returns the last time | |
| const std::string & | name (int index) |
| returns the name of the counter | |
| int | indexByName (const std::string &name) |
| returns the index of the counter with that name, or -1 | |
| virtual bool | globalTiming () |
| returns the flag telling that global timing is wanted | |
| virtual void | saveHistograms () |
| prepares and saves the timing histograms | |
Public Member Functions inherited from ISequencerTimerTool | |
| DeclareInterfaceID (ISequencerTimerTool, 3, 0) | |
| InterfaceID. | |
| virtual | ~ISequencerTimerTool () |
| Destructor. | |
Public Member Functions inherited from IAlgTool | |
| DeclareInterfaceID (IAlgTool, 3, 0) | |
| InterfaceID. | |
| virtual | ~IAlgTool () |
| Virtual destructor. | |
| virtual const std::string & | type () const =0 |
| The type of an AlgTool, meaning the concrete AlgTool class. | |
| virtual const IInterface * | parent () const =0 |
| The parent of the concrete AlgTool. | |
| 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 StatusCode | sysInitialize ()=0 |
| Initialization of the Tool. | |
| virtual StatusCode | sysStart ()=0 |
| Initialization of the Tool. | |
| virtual StatusCode | sysStop ()=0 |
| Initialization of the Tool. | |
| virtual StatusCode | sysFinalize ()=0 |
| Finalization of the Tool. | |
| virtual StatusCode | sysReinitialize ()=0 |
| Initialization of the Tool. | |
| virtual StatusCode | sysRestart ()=0 |
| Initialization of the Tool. | |
| virtual unsigned long | refCount () const =0 |
| Current number of reference counts. | |
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 void * | i_cast (const InterfaceID &) const =0 |
| main cast function | |
| virtual std::vector< std::string > | getInterfaceNames () const =0 |
| Returns a vector of strings containing the names of all the implemented interfaces. | |
| virtual unsigned long | addRef ()=0 |
| Increment the reference count of Interface instance. | |
| virtual unsigned long | release ()=0 |
| Release Interface instance. | |
| virtual StatusCode | queryInterface (const InterfaceID &ti, void **pp)=0 |
| Set the void** to the pointer to the requested interface of the instance. | |
| virtual | ~IInterface () |
| Virtual destructor. | |
Private Attributes | |
| int | m_shots |
| Number of shots for CPU normalization. | |
| bool | m_normalised |
| Is the time scaled to a nominal PIII ? | |
| int | m_indent |
| Amount of indentation. | |
| std::vector< TimerForSequencer > | m_timerList |
| double | m_normFactor |
| Factor to convert to standard CPU (1 GHz PIII) | |
| double | m_speedRatio |
| bool | m_globalTiming |
| std::string::size_type | m_headerSize |
| Size of the name field. | |
Additional Inherited Members | |
Public Types inherited from GaudiHistos< GaudiTool > | |
| typedef GaudiAlg::HistoID | HistoID |
| the actual type for histogram identifier | |
| typedef GaudiAlg::Histo1DMapID | Histo1DMapID |
| the actual type for (ID)->(1D histogram) mapping | |
| typedef GaudiAlg::Histo1DMapTitle | Histo1DMapTitle |
| the actual type for title->(1D histogram) mapping | |
| typedef GaudiAlg::Histo2DMapID | Histo2DMapID |
| the actual type for (ID)->(2D histogram) mapping | |
| typedef GaudiAlg::Histo2DMapTitle | Histo2DMapTitle |
| the actual type for title->(2D histogram) mapping | |
| typedef GaudiAlg::Histo3DMapID | Histo3DMapID |
| the actual type for (ID)->(3D histogram) mapping | |
| typedef GaudiAlg::Histo3DMapTitle | Histo3DMapTitle |
| the actual type for title->(3D histogram) mapping | |
| typedef GaudiAlg::Profile1DMapID | Profile1DMapID |
| the actual type for (ID)->(1D profile histogram) mapping | |
| typedef GaudiAlg::Profile1DMapTitle | Profile1DMapTitle |
| the actual type for title->(1D profile histogram) mapping | |
| typedef GaudiAlg::Profile2DMapID | Profile2DMapID |
| the actual type for (ID)->(2D profile histogram) mapping | |
| typedef GaudiAlg::Profile2DMapTitle | Profile2DMapTitle |
| the actual type for title->(2D profile histogram) mapping | |
| typedef GaudiAlg::HistoBinEdges | HistoBinEdges |
| Edges for variable binning. | |
Public Types inherited from IInterface | |
| enum | Status { SUCCESS = 1, NO_INTERFACE, VERSMISMATCH, LAST_ERROR } |
| Return status. More... | |
| typedef Gaudi::InterfaceId < IInterface, 0, 0 > | iid |
| Interface ID. | |
| typedef mpl::set1< iid > | ext_iids |
| Extra interfaces. | |
Static Public Member Functions inherited from GaudiTool | |
| static bool | enableSummary (bool) |
| enable/disable summary | |
| static bool | summaryEnabled () |
| is summary enabled? | |
Static Public Member Functions inherited from IInterface | |
| static const InterfaceID & | interfaceID () |
| Return an instance of InterfaceID identifying the interface. | |
Protected Types inherited from GaudiCommon< AlgTool > | |
| typedef std::map< std::string, StatEntity > | Statistics |
| the actual type of general counters | |
| typedef std::map< std::string, unsigned int > | Counter |
| the actual type error/warning counter | |
| typedef std::vector< IAlgTool * > | AlgTools |
| storage for active tools | |
| typedef GaudiUtils::HashMap < std::string, SmartIF < IService > > | Services |
| storage for active services | |
Protected Member Functions inherited from GaudiHistoTool | |
| GaudiHistoTool (const std::string &type, const std::string &name, const IInterface *parent) | |
| Standard constructor (protected) | |
| virtual | ~GaudiHistoTool () |
| destructor, virtual and protected | |
Protected Attributes inherited from GaudiCommon< AlgTool > | |
| ICounterSummarySvc * | m_counterSummarySvc |
| a pointer to the CounterSummarySvc | |
| std::vector< std::string > | m_counterList |
| list of counters to declare. Set by property CounterList. This can be a regular expression. | |
| std::vector< std::string > | m_statEntityList |
Static Protected Attributes inherited from GaudiCommon< AlgTool > | |
| static const bool | IgnoreRootInTES |
| Simple definition to be used with the new useRootInTES argument get<TYPE> and put methods. | |
| static const bool | UseRootInTES |
| Simple definition to be used with the new useRootInTES argument get<TYPE> and put methods. | |
Implements the time measurement inside a sequencer.
The width of the timing table column printing the algorithm name is 30 by default. That can be changed via @verbatim
TimingAuditor().addTool(SequencerTimerTool, name = "TIMER") TimingAuditor().TIMER.NameSize = 50
@author Olivier Callot @date 2004-05-19
Definition at line 27 of file SequencerTimerTool.h.
| SequencerTimerTool::SequencerTimerTool | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent | ||
| ) |
Standard constructor.
Definition at line 26 of file SequencerTimerTool.cpp.
|
virtual |
|
virtual |
add a timer entry with the specified name
Implements ISequencerTimerTool.
Definition at line 151 of file SequencerTimerTool.cpp.
|
inlinevirtual |
Decrease the indentation of the name.
Implements ISequencerTimerTool.
Definition at line 59 of file SequencerTimerTool.h.
|
virtual |
finalize method, to print the time summary table
Reimplemented from GaudiHistoTool.
Definition at line 83 of file SequencerTimerTool.cpp.
|
inlinevirtual |
returns the flag telling that global timing is wanted
Implements ISequencerTimerTool.
Definition at line 81 of file SequencerTimerTool.h.
|
inlinevirtual |
Increase the indentation of the name.
Implements ISequencerTimerTool.
Definition at line 56 of file SequencerTimerTool.h.
|
virtual |
returns the index of the counter with that name, or -1
Implements ISequencerTimerTool.
Definition at line 110 of file SequencerTimerTool.cpp.
|
virtual |
initialize method, to compute the normalization factor
Reimplemented from GaudiHistoTool.
Definition at line 54 of file SequencerTimerTool.cpp.
|
inlinevirtual |
returns the last time
Implements ISequencerTimerTool.
Definition at line 72 of file SequencerTimerTool.h.
|
inlinevirtual |
returns the name of the counter
Implements ISequencerTimerTool.
Definition at line 75 of file SequencerTimerTool.h.
|
virtual |
prepares and saves the timing histograms
Implements ISequencerTimerTool.
Definition at line 126 of file SequencerTimerTool.cpp.
|
inlinevirtual |
start the counter, i.e.
register the current time
Implements ISequencerTimerTool.
Definition at line 66 of file SequencerTimerTool.h.
|
inlinevirtual |
stop the counter, return the elapsed time
Implements ISequencerTimerTool.
Definition at line 69 of file SequencerTimerTool.h.
|
private |
Definition at line 94 of file SequencerTimerTool.h.
|
private |
Size of the name field.
Definition at line 95 of file SequencerTimerTool.h.
|
private |
Amount of indentation.
Definition at line 90 of file SequencerTimerTool.h.
|
private |
Is the time scaled to a nominal PIII ?
Definition at line 89 of file SequencerTimerTool.h.
|
private |
Factor to convert to standard CPU (1 GHz PIII)
Definition at line 92 of file SequencerTimerTool.h.
|
private |
Number of shots for CPU normalization.
Definition at line 88 of file SequencerTimerTool.h.
|
private |
Definition at line 93 of file SequencerTimerTool.h.
|
private |
Definition at line 91 of file SequencerTimerTool.h.