![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
16 #include "GaudiKernel/ServiceHandle.h"
17 #include "GaudiKernel/IChronoStatSvc.h"
18 #include "GaudiKernel/ChronoEntity.h"
19 #include "GaudiKernel/StatEntity.h"
34 m_chronoSvc(
"ChronoStatSvc",
"PerfMon::PyChrono" )
59 const std::string&
f )
63 v =
static_cast<double>(
m_chronoSvc->chronoDelta(
t,IChronoStatSvc::USER));
64 }
else if (
f ==
"s" ) {
65 v =
static_cast<double>(
m_chronoSvc->chronoDelta(
t,IChronoStatSvc::KERNEL));
66 }
else if (
f ==
"r" ) {
67 v =
static_cast<double>(
m_chronoSvc->chronoDelta(
t, IChronoStatSvc::ELAPSED));
a simple malloc wrapper that keeps track of the amount of memory allocated on the heap.
ServiceHandle< IChronoStatSvc > m_chronoSvc
Pointer to the IChronoStatSvc.
void chronoStop(const std::string &t)
stop chrono, tagged by its name
double chronoDelta(const std::string &t, const std::string &f)
return chrono delta time of last start/stop pair
void chronoStart(const std::string &t)
start chrono, tagged by its name
PyChrono()
Constructor with parameters: