|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #ifndef PERFMONGPERFTOOLS_PROFILERSERVICE_H
9 #define PERFMONGPERFTOOLS_PROFILERSERVICE_H
15 #include "GaudiKernel/ServiceHandle.h"
16 #include "GaudiKernel/IIncidentListener.h"
17 #include "GaudiKernel/IIncidentSvc.h"
39 public virtual IIncidentListener {
64 virtual void handle(
const Incident& inc );
89 #endif // PERFMONGPERFTOOLS_PROFILERSERVICE_H
virtual StatusCode finalize()
Standard Gaudi finalization function.
virtual StatusCode stopCPUProfiling()
Stop the GPT profiling.
virtual StatusCode initialize()
Standard Gaudi initialization function.
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvIF)
Function declaring the interface(s) implemented by the service.
int m_processedEvents
Number of events processed so far.
std::string m_fileName
Name of the current profile file.
Simple interface for the profiler service.
bool m_controlledProfiling
Property: Is profiling controlled from the outside?
bool m_running
Is the CPU profiling running at the moment?
virtual ~ProfilerService()
Destructor.
Implementation of the IProfilerSvc interface.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual void handle(const Incident &inc)
Function handling incoming incidents.
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)
Start GPT profiling.
virtual bool isCPUProfilingRunning() const
Is the GPT profiling running at the moment?
ServiceHandle< IIncidentSvc > m_incidentSvc
Handle to the incident service.
std::string m_profFileName
Property: Profile file name in non-controlled profiling.