| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 2011

Public Member Functions | Private Member Functions | Private Attributes

# ChronoAuditor Class Reference

Monitors the cpu time usage of each algorithm. More...

`#include <ChronoAuditor.h>`

Inheritance diagram for ChronoAuditor:
[legend]
Collaboration diagram for ChronoAuditor:
[legend]

List of all members.

## Public Member Functions
| ChronoAuditor (const std::string &name, ISvcLocator *pSvcLocator)
## Private Member Functions
virtual void | i_before (CustomEventTypeRef evt, const std::string &caller)
| Default (catch-all) "before" Auditor hook.
virtual void | i_after (CustomEventTypeRef evt, const std::string &caller, const StatusCode &sc)
| Default (catch-all) "after" Auditor hook.
std::string | i_id (CustomEventTypeRef evt, const std::string &caller)
| Compute the id string to be used for the chrono entity.
SmartIF< IChronoStatSvc > & | chronoSvc ()
## Private Attributes
SmartIF< IChronoStatSvc > | m_chronoSvc

## Detailed Description

Monitors the cpu time usage of each algorithm.

Author:
  David Quarrie
  Marco Clemencic

Definition at line 14 of file ChronoAuditor.h.

## Constructor & Destructor Documentation

ChronoAuditor::ChronoAuditor | ( | const std::string & | name,
|  | ISvcLocator * | pSvcLocator
| ) |  |

Definition at line 15 of file ChronoAuditor.cpp.

    : CommonAuditor(name, pSvcLocator) {
      m_chronoSvc = serviceLocator()->service("ChronoStatSvc");
    }

## Member Function Documentation

SmartIF<IChronoStatSvc>& ChronoAuditor::chronoSvc | ( | ) | `[inline, private]`

Definition at line 30 of file ChronoAuditor.h.

    { return m_chronoSvc; }

void ChronoAuditor::i_after | ( | CustomEventTypeRef | evt,
|  | const std::string & | caller,
|  | const StatusCode & | sc
| ) |  | `[private, virtual]`

Default (catch-all) "after" Auditor hook.

Implements CommonAuditor.

Definition at line 25 of file ChronoAuditor.cpp.

    {
      chronoSvc()->chronoStop(i_id(evt, caller));
    }

void ChronoAuditor::i_before | ( | CustomEventTypeRef | evt,
|  | const std::string & | caller
| ) |  | `[private, virtual]`

Default (catch-all) "before" Auditor hook.

Implements CommonAuditor.

Definition at line 20 of file ChronoAuditor.cpp.

    {
      chronoSvc()->chronoStart(i_id(evt, caller));
    }

std::string ChronoAuditor::i_id | ( | CustomEventTypeRef | evt,
|  | const std::string & | caller
| ) |  | `[inline, private]`

Compute the id string to be used for the chrono entity.

Definition at line 26 of file ChronoAuditor.h.

                                                                             {
        return caller + ":" + evt;
      }

## Member Data Documentation

SmartIF<IChronoStatSvc> ChronoAuditor::m_chronoSvc`[private]`

Definition at line 31 of file ChronoAuditor.h.

The documentation for this class was generated from the following files:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r4/GaudiAud/src/ChronoAuditor.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r4/GaudiAud/src/ChronoAuditor.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines