| The Gaudi Framework v32r1 (f65d50dc)

TimelineSvc.h
Go to the documentation of this file.
1
2 #ifndef GAUDIHIVE_TIMELINESVC_H
3 #define GAUDIHIVE_TIMELINESVC_H
4
5 #include "GaudiKernel/ITimelineSvc.h"
6 #include "GaudiKernel/Service.h"
7
8 #include <string>
9
10 #include "tbb/concurrent_vector.h"
11
12 class TimelineSvc : public extends<Service, ITimelineSvc> {
13 public:
14 using extends::extends;
15
16 StatusCode initialize() override;
17 StatusCode reinitialize() override;
18 StatusCode finalize() override;
19
20 TimelineRecorder getRecorder( std::string alg, const EventContext& ctx ) override;
21 bool getTimelineEvent( TimelineEvent& ) const override;
22
23 bool isEnabled() const override { return m_isEnabled; }
24
25 private:
26 void outputTimeline();
27
28 Gaudi::Property<std::string> m_timelineFile{this, "TimelineFile", "timeline.csv", ""};
29 Gaudi::Property<bool> m_isEnabled{this, "RecordTimeline", false, "Enable recording of the timeline events"};
30 Gaudi::Property<bool> m_dumpTimeline{this, "DumpTimeline", false, "Enable dumping of the timeline events"};
31 Gaudi::Property<bool> m_partial{this, "Partial", false, ""};
32
33 tbb::concurrent_vector<TimelineEvent> m_events;
34 };
35
36 #endif
ManySmallAlgs.alg
alg
Definition: ManySmallAlgs.py:69
Gaudi::Property
Implementation of property with value of concrete type.
Definition: Property.h:352
TimelineSvc::m_partial
Gaudi::Property< bool > m_partial
Definition: TimelineSvc.h:31
TimelineEvent
Definition: ITimelineSvc.h:13
EventContext
This class represents an entry point to all the event specific data.
Definition: EventContext.h:24
std::string
STL class.
Service.h
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
ITimelineSvc.h
TimelineSvc::getTimelineEvent
bool getTimelineEvent(TimelineEvent &) const override
Definition: TimelineSvc.cpp:66
TimelineSvc::m_isEnabled
Gaudi::Property< bool > m_isEnabled
Definition: TimelineSvc.h:29
TimelineSvc::m_events
tbb::concurrent_vector< TimelineEvent > m_events
Definition: TimelineSvc.h:33
TimelineSvc::finalize
StatusCode finalize() override
Definition: TimelineSvc.cpp:37
TimelineSvc::getRecorder
TimelineRecorder getRecorder(std::string alg, const EventContext &ctx) override
Definition: TimelineSvc.cpp:50
TimelineSvc::initialize
StatusCode initialize() override
Definition: TimelineSvc.cpp:7
TimelineSvc::isEnabled
bool isEnabled() const override
Definition: TimelineSvc.h:23
TimelineSvc::m_timelineFile
Gaudi::Property< std::string > m_timelineFile
Definition: TimelineSvc.h:28
extends
Base class used to extend a class implementing other interfaces.
Definition: extends.h:10
TimelineSvc::outputTimeline
void outputTimeline()
Definition: TimelineSvc.cpp:76
TimelineSvc::reinitialize
StatusCode reinitialize() override
Definition: TimelineSvc.cpp:27
TimelineSvc::m_dumpTimeline
Gaudi::Property< bool > m_dumpTimeline
Definition: TimelineSvc.h:30
TimelineSvc
Definition: TimelineSvc.h:12