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 
8 
21 public:
23  JemallocProfile( const std::string& name, ISvcLocator* pSvcLocator );
24 
25  virtual ~JemallocProfile( );
26 
27  virtual StatusCode initialize();
28  virtual StatusCode execute ();
29  virtual StatusCode finalize ();
30 
31 protected:
32 
33 private:
34  int m_nStartFromEvent; // Event to start profiling at
35  int m_nStopAtEvent; // Event to stop profiling at
36  bool m_profiling; // whether we are profiling...
37  int m_dumpPeriod; // Period at which to dump the heap
38  int m_eventNumber; // Current event number
39 };
40 #endif // JEMALLOC_PROFILE_H
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:26
virtual StatusCode finalize()
Algorithm finalization.
virtual StatusCode execute()
Algorithm execution.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:30
virtual const std::string & name() const
The identifying name of the algorithm object.
Definition: Algorithm.cpp:837
The useful base class for data processing algorithms.
virtual StatusCode initialize()
Algorithm initialization.
JemallocProfile(const std::string &name, ISvcLocator *pSvcLocator)
Standard constructor.
virtual ~JemallocProfile()
Destructor.
Algorithm to enable/disable the profiling of the head by Jemalloc.