| The Gaudi Framework v30r0 (c919700c)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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 {
21 public:
23 using GaudiAlgorithm::GaudiAlgorithm;
24
25 ~JemallocProfile() override = default;
26
27 StatusCode initialize() override;
28 StatusCode execute() override;
29 StatusCode finalize() override;
30
31 protected:
32 private:
33 Gaudi::Property<int> m_nStartFromEvent{this, "StartFromEventN", 1, "After what event we start profiling. "};
34 Gaudi::Property<int> m_nStopAtEvent{
35 this, "StopAtEventN", 0,
36 "After what event we stop profiling. If 0 than we also profile finalization stage. Default = 0."};
37 Gaudi::Property<int> m_dumpPeriod{this, "DumpPeriod", 100, "Period for dumping head to a file. Default=100"};
38
39 bool m_profiling = false; // whether we are profiling...
40 int m_eventNumber = 0; // Current event number
41 };
42 #endif // JEMALLOC_PROFILE_H
Gaudi::Property
Implementation of property with value of concrete type.
Definition: Property.h:319
JemallocProfile::~JemallocProfile
~JemallocProfile() override=default
Destructor.
GaudiAlgorithm.h
Header file for class GaudiAlgorithm.
JemallocProfile::m_nStopAtEvent
Gaudi::Property< int > m_nStopAtEvent
Definition: JemallocProfile.h:34
JemallocProfile::m_eventNumber
int m_eventNumber
Definition: JemallocProfile.h:40
JemallocProfile::m_dumpPeriod
Gaudi::Property< int > m_dumpPeriod
Definition: JemallocProfile.h:37
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
JemallocProfile::finalize
StatusCode finalize() override
Algorithm finalization.
Definition: JemallocProfile.cpp:72
GaudiAlgorithm
The useful base class for data processing algorithms.
Definition: GaudiAlgorithm.h:94
JemallocProfile::m_profiling
bool m_profiling
Definition: JemallocProfile.h:39
JemallocProfile::m_nStartFromEvent
Gaudi::Property< int > m_nStartFromEvent
Definition: JemallocProfile.h:33
JemallocProfile::execute
StatusCode execute() override
Algorithm execution.
Definition: JemallocProfile.cpp:43
GaudiAlgorithm::GaudiAlgorithm
GaudiAlgorithm()
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