Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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
7 
15 class CallgrindProfile : public Algorithm {
16 public:
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."};
25  this, "StopAtEventN", 0,
26  "After what event we stop profiling. If 0 than we also profile finalization stage. Default = 0."};
28  this, "DumpAtEventN", 0,
29  "After what event we stop profiling. If 0 than we also profile finalization stage. Default = 0."};
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
Implementation of property with value of concrete type.
Definition: Property.h:352
Algorithm(const std::string &name, ISvcLocator *svcloc, const std::string &version=PACKAGE_VERSION)
Constructor.
Definition: Algorithm.cpp:48
Gaudi::Property< int > m_nDumpAtEvent
Gaudi::Property< int > m_nStartFromEvent
Gaudi::Property< std::string > m_dumpName
Gaudi::Property< int > m_nZeroAtEvent
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
StatusCode execute() override
Algorithm execution.
Alias for backward compatibility.
Definition: Algorithm.h:56
StatusCode finalize() override
Algorithm finalization.
Algorithm to enable/disable the profiling by Callgrind at given events.
Gaudi::Property< int > m_nStopAtEvent