| The Gaudi Framework v32r1 (f65d50dc)

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 "GaudiKernel/Algorithm.h"
7
15 class CallgrindProfile : public Algorithm {
16 public:
17 using Algorithm::Algorithm;
18
19 StatusCode execute() override;
20 StatusCode finalize() override;
21
22 private:
23 Gaudi::Property<int> m_nStartFromEvent{this, "StartFromEventN", 1, "After what event we start profiling."};
24 Gaudi::Property<int> m_nStopAtEvent{
25 this, "StopAtEventN", 0,
26 "After what event we stop profiling. If 0 than we also profile finalization stage. Default = 0."};
27 Gaudi::Property<int> m_nDumpAtEvent{
28 this, "DumpAtEventN", 0,
29 "After what event we stop profiling. If 0 than we also profile finalization stage. Default = 0."};
30 Gaudi::Property<int> m_nZeroAtEvent{
31 this, "ZeroAtEventN", 0,
32 "After what event we stop profiling. If 0 than we also profile finalization stage. Default = 0."};
33 Gaudi::Property<std::string> m_dumpName{this, "DumpName", "", "Label for the callgrind dump"};
34
35 int m_eventNumber = 0; // Current event number
36 bool m_profiling = false; // Whether valgrind is profiling or not
37 bool m_dumpDone = false; // Whether the counters were dumped
38 };
39 #endif // VALGRIND_CALLGRINDPROFILE_H
CallgrindProfile::m_profiling
bool m_profiling
Definition: CallgrindProfile.h:36
Algorithm.h
CallgrindProfile::m_eventNumber
int m_eventNumber
Definition: CallgrindProfile.h:35
Gaudi::Property
Implementation of property with value of concrete type.
Definition: Property.h:352
CallgrindProfile::m_dumpDone
bool m_dumpDone
Definition: CallgrindProfile.h:37
Gaudi::Algorithm::Algorithm
Algorithm(const std::string &name, ISvcLocator *svcloc, const std::string &version=PACKAGE_VERSION)
Constructor.
Definition: Algorithm.cpp:48
CallgrindProfile::m_nDumpAtEvent
Gaudi::Property< int > m_nDumpAtEvent
Definition: CallgrindProfile.h:27
CallgrindProfile::m_nStartFromEvent
Gaudi::Property< int > m_nStartFromEvent
Definition: CallgrindProfile.h:23
CallgrindProfile::m_dumpName
Gaudi::Property< std::string > m_dumpName
Definition: CallgrindProfile.h:33
CallgrindProfile::m_nZeroAtEvent
Gaudi::Property< int > m_nZeroAtEvent
Definition: CallgrindProfile.h:30
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
CallgrindProfile::execute
StatusCode execute() override
Algorithm execution.
Definition: CallgrindProfile.cpp:20
Algorithm
Alias for backward compatibility.
Definition: Algorithm.h:56
CallgrindProfile::finalize
StatusCode finalize() override
Algorithm finalization.
Definition: CallgrindProfile.cpp:61
CallgrindProfile
Algorithm to enable/disable the profiling by Callgrind at given events.
Definition: CallgrindProfile.h:15
CallgrindProfile::m_nStopAtEvent
Gaudi::Property< int > m_nStopAtEvent
Definition: CallgrindProfile.h:24