| The Gaudi Framework v32r1 (f65d50dc)

JemallocProfile.h
Go to the documentation of this file.
1 #ifndef JEMALLOC_PROFILE_H
2 #define JEMALLOC_PROFILE_H 1
3
4 // Include files
5 // from Gaudi
6 #include "GaudiAlg/GaudiAlgorithm.h"
7
19 class JemallocProfile : public GaudiAlgorithm {
20 public:
22 using GaudiAlgorithm::GaudiAlgorithm;
23
24 StatusCode initialize() override;
25 StatusCode execute() override;
26 StatusCode finalize() override;
27
28 private:
29 Gaudi::Property<int> m_nStartFromEvent{this, "StartFromEventN", 1, "After what event we start profiling. "};
30 Gaudi::Property<int> m_nStopAtEvent{
31 this, "StopAtEventN", 0,
32 "After what event we stop profiling. If 0 than we also profile finalization stage. Default = 0."};
33 Gaudi::Property<int> m_dumpPeriod{this, "DumpPeriod", 100, "Period for dumping head to a file. Default=100"};
34
35 bool m_profiling = false; // whether we are profiling...
36 int m_eventNumber = 0; // Current event number
37 };
38 #endif // JEMALLOC_PROFILE_H
Gaudi::Property
Implementation of property with value of concrete type.
Definition: Property.h:352
GaudiAlgorithm.h
Header file for class GaudiAlgorithm.
JemallocProfile::m_nStopAtEvent
Gaudi::Property< int > m_nStopAtEvent
Definition: JemallocProfile.h:30
JemallocProfile::m_eventNumber
int m_eventNumber
Definition: JemallocProfile.h:36
JemallocProfile::m_dumpPeriod
Gaudi::Property< int > m_dumpPeriod
Definition: JemallocProfile.h:33
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
JemallocProfile::finalize
StatusCode finalize() override
Algorithm finalization.
Definition: JemallocProfile.cpp:68
GaudiAlgorithm
The useful base class for data processing algorithms.
Definition: GaudiAlgorithm.h:94
JemallocProfile::m_profiling
bool m_profiling
Definition: JemallocProfile.h:35
JemallocProfile::m_nStartFromEvent
Gaudi::Property< int > m_nStartFromEvent
Definition: JemallocProfile.h:29
JemallocProfile::execute
StatusCode execute() override
Algorithm execution.
Definition: JemallocProfile.cpp:40
JemallocProfile::initialize
StatusCode initialize() override
Algorithm initialization.
Definition: JemallocProfile.cpp:26
JemallocProfile
Algorithm to enable/disable the profiling of the head by Jemalloc.
Definition: JemallocProfile.h:19
GaudiAlgorithm::GaudiAlgorithm
GaudiAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Standard constructor.
Definition: GaudiAlgorithm.cpp:35