The Gaudi Framework
master (37c0b60a)
|
Algorithm to enable/disable profiling with Linux perf at given events. More...
Public Member Functions | |
StatusCode | initialize () override |
StatusCode | finalize () override |
void | operator() () const override |
Private Member Functions | |
void | fifo_write (std::string_view s) const |
Private Attributes | |
std::atomic< long unsigned > | m_eventNumber = 0 |
int | m_fifo = -1 |
Gaudi::Property< std::string > | m_fifoPath { this, "FIFOPath", "GaudiPerfProfile.fifo", "Path to perf control FIFO." } |
Gaudi::Property< unsigned long > | m_nStartFromEvent |
Gaudi::Property< unsigned long > | m_nStopAtEvent |
Algorithm to enable/disable profiling with Linux perf at given events.
Needs at least perf 5.9. To control perf record, start it as
perf record -D -1 –control fifo:GaudiPerfProfile.fifo ... gaudirun.py ...
The path to the control fifo (GaudiPerfProfile.fifo) is configurable with the FIFOPath property. The fifo must be created before running perf.
Definition at line 26 of file PerfProfile.cpp.
|
inlineprivate |
|
inlineoverride |
Definition at line 40 of file PerfProfile.cpp.
|
inlineoverride |
Definition at line 29 of file PerfProfile.cpp.
|
inlineoverride |
Definition at line 45 of file PerfProfile.cpp.
|
mutableprivate |
Definition at line 67 of file PerfProfile.cpp.
|
private |
Definition at line 68 of file PerfProfile.cpp.
|
private |
Definition at line 70 of file PerfProfile.cpp.
|
private |
Definition at line 71 of file PerfProfile.cpp.
|
private |
Definition at line 73 of file PerfProfile.cpp.