The Gaudi Framework  v30r3 (a5ef0a68)
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  StatusCode initialize() override;
26  StatusCode execute() override;
27  StatusCode finalize() override;
28 
29 private:
30  Gaudi::Property<int> m_nStartFromEvent{this, "StartFromEventN", 1, "After what event we start profiling. "};
32  this, "StopAtEventN", 0,
33  "After what event we stop profiling. If 0 than we also profile finalization stage. Default = 0."};
34  Gaudi::Property<int> m_dumpPeriod{this, "DumpPeriod", 100, "Period for dumping head to a file. Default=100"};
35 
36  bool m_profiling = false; // whether we are profiling...
37  int m_eventNumber = 0; // Current event number
38 };
39 #endif // JEMALLOC_PROFILE_H
Implementation of property with value of concrete type.
Definition: Property.h:381
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:51
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.
GaudiAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Standard constructor.