The Gaudi Framework  v29r0 (ff2e7097)
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
7 
20 {
21 public:
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. "};
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
Implementation of property with value of concrete type.
Definition: Property.h:319
~JemallocProfile() override=default
Destructor.
Header file for class GaudiAlgorithm.
Gaudi::Property< int > m_nStopAtEvent
Gaudi::Property< int > m_dumpPeriod
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:28
StatusCode finalize() override
Algorithm finalization.
The useful base class for data processing algorithms.
Gaudi::Property< int > m_nStartFromEvent
StatusCode execute() override
Algorithm execution.
StatusCode initialize() override
Algorithm initialization.
Algorithm to enable/disable the profiling of the head by Jemalloc.