CallgrindProfile.h
Go to the documentation of this file.
1 #ifndef VALGRIND_CALLGRINDPROFILE_H
2 #define VALGRIND_CALLGRINDPROFILE_H 1
3 
4 // Include files
5 // from Gaudi
6 #include "GaudiAlg/GaudiAlgorithm.h"
7 
8 
17 public:
19  CallgrindProfile( const std::string& name, ISvcLocator* pSvcLocator );
20 
21  virtual ~CallgrindProfile( );
22 
23  virtual StatusCode initialize();
24  virtual StatusCode execute ();
25  virtual StatusCode finalize ();
26 
27 protected:
28 
29 private:
30  int m_nStartFromEvent; // Event to start profiling at
31  int m_nStopAtEvent; // Event to stop profiling at
32  int m_nDumpAtEvent; // Event at which to dump the stats (Destructor by default)
33  int m_nZeroAtEvent; //Event at which to zero the stats
34  int m_eventNumber; // Current event number
35  bool m_profiling; // Whether valgrind is profiling or not
36  bool m_dumpDone; // Whether the counters were dumped
37  std::string m_dumpName; // Name to pass to the dump macro
38 };
39 #endif // VALGRIND_CALLGRINDPROFILE_H
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
virtual StatusCode initialize()
Algorithm initialization.
virtual StatusCode execute()
Algorithm execution.
virtual ~CallgrindProfile()
Destructor.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
The useful base class for data processing algorithms.
std::string m_dumpName
CallgrindProfile(const std::string &name, ISvcLocator *pSvcLocator)
Standard constructor.
Algorithm to enable/disable the profiling by Callgrind at given events.
virtual StatusCode finalize()
Algorithm finalization.