ATLAS Offline Software
PyChrono.h
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // PyChrono.h
8 // Header file for class PerfMon::PyChrono
9 // Author: S.Binet<binet@cern.ch>
11 #ifndef PERFMONEVENT_PYCHRONO_H
12 #define PERFMONEVENT_PYCHRONO_H
13 
14 // STL includes
15 #include <string>
16 
17 // GaudiKernel includes
18 #include "GaudiKernel/ServiceHandle.h"
19 #include "GaudiKernel/IChronoStatSvc.h"
20 
21 // PerfMonEvent includes
22 
23 // Forward declaration
24 
25 namespace PerfMon {
26 
27 class PyChrono
28 {
29 
31  // Public methods:
33  public:
34 
36  PyChrono();
37 
39  ~PyChrono();
40 
42  // Non-const methods:
44 
49  void chronoStart( const std::string& t );
50 
55  void chronoStop( const std::string& t );
56 
62  double chronoDelta( const std::string& t, const std::string& f );
63 
65  // Private data:
67  private:
68  // not implemented
69  PyChrono( const PyChrono& );
71 
74 
75 };
76 
77 } // end namespace PerfMon
78 
79 #endif //> PERFMONEVENT_PYCHRONO_H
python.CaloRecoConfig.f
f
Definition: CaloRecoConfig.py:127
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
PerfMon::PyChrono::operator=
PyChrono & operator=(const PyChrono &)
PerfMon::PyChrono
Definition: PyChrono.h:28
PerfMon
a simple malloc wrapper that keeps track of the amount of memory allocated on the heap.
Definition: CallGraphAuditor.cxx:24
PerfMon::PyChrono::m_chronoSvc
ServiceHandle< IChronoStatSvc > m_chronoSvc
Pointer to the IChronoStatSvc.
Definition: PyChrono.h:73
PerfMon::PyChrono::~PyChrono
~PyChrono()
Destructor:
Definition: PyChrono.cxx:43
PerfMon::PyChrono::chronoStop
void chronoStop(const std::string &t)
stop chrono, tagged by its name
Definition: PyChrono.cxx:54
PerfMon::PyChrono::chronoDelta
double chronoDelta(const std::string &t, const std::string &f)
return chrono delta time of last start/stop pair
Definition: PyChrono.cxx:58
PerfMon::PyChrono::PyChrono
PyChrono(const PyChrono &)
PerfMon::PyChrono::chronoStart
void chronoStart(const std::string &t)
start chrono, tagged by its name
Definition: PyChrono.cxx:51
PerfMon::PyChrono::PyChrono
PyChrono()
Constructor with parameters:
Definition: PyChrono.cxx:33
ServiceHandle< IChronoStatSvc >