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"
46 virtual StatusCode
finalize()
override;
56 virtual void handle(
const Incident& inc )
override;
virtual ~ProfilerService()
Destructor.
bool m_running
Is the CPU profiling running at the moment?
virtual StatusCode stopCPUProfiling() override
Stop the GPT profiling.
virtual StatusCode finalize() override
Standard Gaudi finalization function.
virtual bool isCPUProfilingRunning() const override
Is the GPT profiling running at the moment?
ServiceHandle< IIncidentSvc > m_incidentSvc
Handle to the incident service.
int m_initEvent
Property: Event in which non-controlled profiling should start.
std::string m_fileName
Name of the current profile file.
ProfilerService(const std::string &name, ISvcLocator *svcloc)
Standard Gaudi service constructor.
virtual StatusCode startCPUProfiling(const std::string &filename) override
Start GPT profiling.
virtual void handle(const Incident &inc) override
Function handling incoming incidents.
int m_processedEvents
Number of events processed so far.
bool m_controlledProfiling
Property: Is profiling controlled from the outside?
virtual StatusCode initialize() override
Standard Gaudi initialization function.
std::string m_profFileName
Property: Profile file name in non-controlled profiling.