|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef PERFMONGPERFTOOLS_PROFILERSERVICE_H
8 #define PERFMONGPERFTOOLS_PROFILERSERVICE_H
14 #include "GaudiKernel/ServiceHandle.h"
15 #include "GaudiKernel/IIncidentListener.h"
16 #include "GaudiKernel/IIncidentSvc.h"
56 virtual void handle(
const Incident& inc )
override;
81 #endif // PERFMONGPERFTOOLS_PROFILERSERVICE_H
virtual bool isCPUProfilingRunning() const override
Is the GPT profiling running at the moment?
int m_processedEvents
Number of events processed so far.
std::string m_fileName
Name of the current profile file.
bool m_controlledProfiling
Property: Is profiling controlled from the outside?
bool m_running
Is the CPU profiling running at the moment?
virtual void handle(const Incident &inc) override
Function handling incoming incidents.
virtual StatusCode finalize() override
Standard Gaudi finalization function.
virtual ~ProfilerService()
Destructor.
Implementation of the IProfilerSvc interface.
::StatusCode StatusCode
StatusCode definition for legacy code.
ProfilerService(const std::string &name, ISvcLocator *svcloc)
Standard Gaudi service constructor.
int m_initEvent
Property: Event in which non-controlled profiling should start.
virtual StatusCode startCPUProfiling(const std::string &filename) override
Start GPT profiling.
virtual StatusCode stopCPUProfiling() override
Stop the GPT profiling.
ServiceHandle< IIncidentSvc > m_incidentSvc
Handle to the incident service.
std::string m_profFileName
Property: Profile file name in non-controlled profiling.
virtual StatusCode initialize() override
Standard Gaudi initialization function.