| The Gaudi Framework v27r1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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
16 class CallgrindProfile : public GaudiAlgorithm {
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
CallgrindProfile::m_profiling
bool m_profiling
Definition: CallgrindProfile.h:35
CallgrindProfile::m_nStartFromEvent
int m_nStartFromEvent
Definition: CallgrindProfile.h:30
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
CallgrindProfile::m_eventNumber
int m_eventNumber
Definition: CallgrindProfile.h:34
CallgrindProfile::m_nDumpAtEvent
int m_nDumpAtEvent
Definition: CallgrindProfile.h:32
CallgrindProfile::m_dumpDone
bool m_dumpDone
Definition: CallgrindProfile.h:36
CallgrindProfile::initialize
virtual StatusCode initialize()
Algorithm initialization.
Definition: CallgrindProfile.cpp:66
GaudiAlgorithm.h
std::string
STL class.
Algorithm::name
const std::string & name() const override
The identifying name of the algorithm object.
Definition: Algorithm.cpp:820
CallgrindProfile::execute
virtual StatusCode execute()
Algorithm execution.
Definition: CallgrindProfile.cpp:77
CallgrindProfile::~CallgrindProfile
virtual ~CallgrindProfile()
Destructor.
Definition: CallgrindProfile.cpp:61
CallgrindProfile::m_nStopAtEvent
int m_nStopAtEvent
Definition: CallgrindProfile.h:31
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
GaudiAlgorithm
The useful base class for data processing algorithms.
Definition: GaudiAlgorithm.h:93
CallgrindProfile::m_dumpName
std::string m_dumpName
Definition: CallgrindProfile.h:37
CallgrindProfile::CallgrindProfile
CallgrindProfile(const std::string &name, ISvcLocator *pSvcLocator)
Standard constructor.
Definition: CallgrindProfile.cpp:21
CallgrindProfile::m_nZeroAtEvent
int m_nZeroAtEvent
Definition: CallgrindProfile.h:33
CallgrindProfile
Algorithm to enable/disable the profiling by Callgrind at given events.
Definition: CallgrindProfile.h:16
CallgrindProfile::finalize
virtual StatusCode finalize()
Algorithm finalization.
Definition: CallgrindProfile.cpp:129