Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 public:
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. "};
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
Implementation of property with value of concrete type.
Definition: Property.h:352
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:50
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.