ATLAS Offline Software
Loading...
Searching...
No Matches
IProfilerSvc.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef PERFMONGPERFTOOLS_IPROFILERSVC_H
8#define PERFMONGPERFTOOLS_IPROFILERSVC_H
9
10// STL include(s):
11#include <string>
12
13// Gaudi/Athena include(s):
14#include "GaudiKernel/IService.h"
15
16namespace GPT {
17
27 class IProfilerSvc : public virtual IService {
28
29 public:
32
34
42 virtual StatusCode startCPUProfiling( const std::string& filename = "gpt.profile" ) = 0;
43
45
51 virtual StatusCode stopCPUProfiling() = 0;
52
54
61 virtual bool isCPUProfilingRunning() const = 0;
62
63 }; // class IProfilerSvc
64
65} // namespace GPT
66
67#endif // PERFMONGPERFTOOLS_IPROFILERSVC_H
Simple interface for the profiler service.
virtual StatusCode startCPUProfiling(const std::string &filename="gpt.profile")=0
Start GPT profiling.
virtual StatusCode stopCPUProfiling()=0
Stop the GPT profiling.
DeclareInterfaceID(IProfilerSvc, 0, 1)
Interface ID definition.
virtual bool isCPUProfilingRunning() const =0
Is the GPT profiling running at the moment?