The Gaudi Framework
v33r1 (b1225454)
TimelineSvc.h
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3
* *
4
* This software is distributed under the terms of the Apache version 2 licence, *
5
* copied verbatim in the file "LICENSE". *
6
* *
7
* In applying this licence, CERN does not waive the privileges and immunities *
8
* granted to it by virtue of its status as an Intergovernmental Organization *
9
* or submit itself to any jurisdiction. *
10
\***********************************************************************************/
11
12
#ifndef GAUDIHIVE_TIMELINESVC_H
13
#define GAUDIHIVE_TIMELINESVC_H
14
15
#include "
GaudiKernel/ITimelineSvc.h
"
16
#include "
GaudiKernel/Service.h
"
17
18
#include <string>
19
20
#include "tbb/concurrent_vector.h"
21
22
class
TimelineSvc
:
public
extends
<Service, ITimelineSvc> {
23
public
:
24
using
extends::extends;
25
26
StatusCode
initialize
()
override
;
27
StatusCode
reinitialize
()
override
;
28
StatusCode
finalize
()
override
;
29
30
TimelineRecorder
getRecorder
(
std::string
alg
,
const
EventContext
&
ctx
)
override
;
31
bool
getTimelineEvent
(
TimelineEvent
& )
const override
;
32
33
bool
isEnabled
()
const override
{
return
m_isEnabled
; }
34
35
private
:
36
void
outputTimeline
();
37
38
Gaudi::Property<std::string>
m_timelineFile
{
this
,
"TimelineFile"
,
"timeline.csv"
,
""
};
39
Gaudi::Property<bool>
m_isEnabled
{
this
,
"RecordTimeline"
,
false
,
"Enable recording of the timeline events"
};
40
Gaudi::Property<bool>
m_dumpTimeline
{
this
,
"DumpTimeline"
,
false
,
"Enable dumping of the timeline events"
};
41
Gaudi::Property<bool>
m_partial
{
this
,
"Partial"
,
false
,
""
};
42
43
tbb::concurrent_vector<TimelineEvent>
m_events
;
44
};
45
46
#endif
ManySmallAlgs.alg
alg
Definition:
ManySmallAlgs.py:79
Gaudi::Property
Implementation of property with value of concrete type.
Definition:
Property.h:370
TimelineSvc::m_partial
Gaudi::Property< bool > m_partial
Definition:
TimelineSvc.h:41
GaudiPython.Pythonizations.ctx
ctx
Definition:
Pythonizations.py:566
TimelineEvent
Definition:
ITimelineSvc.h:23
EventContext
This class represents an entry point to all the event specific data.
Definition:
EventContext.h:34
std::string
STL class.
Service.h
StatusCode
This class is used for returning status codes from appropriate routines.
Definition:
StatusCode.h:61
ITimelineSvc.h
TimelineSvc::getTimelineEvent
bool getTimelineEvent(TimelineEvent &) const override
Definition:
TimelineSvc.cpp:76
TimelineSvc::m_isEnabled
Gaudi::Property< bool > m_isEnabled
Definition:
TimelineSvc.h:39
TimelineSvc::m_events
tbb::concurrent_vector< TimelineEvent > m_events
Definition:
TimelineSvc.h:43
TimelineSvc::finalize
StatusCode finalize() override
Definition:
TimelineSvc.cpp:47
TimelineSvc::getRecorder
TimelineRecorder getRecorder(std::string alg, const EventContext &ctx) override
Definition:
TimelineSvc.cpp:60
TimelineSvc::initialize
StatusCode initialize() override
Definition:
TimelineSvc.cpp:17
TimelineSvc::isEnabled
bool isEnabled() const override
Definition:
TimelineSvc.h:33
TimelineSvc::m_timelineFile
Gaudi::Property< std::string > m_timelineFile
Definition:
TimelineSvc.h:38
extends
Base class used to extend a class implementing other interfaces.
Definition:
extends.h:20
TimelineSvc::outputTimeline
void outputTimeline()
Definition:
TimelineSvc.cpp:86
TimelineSvc::reinitialize
StatusCode reinitialize() override
Definition:
TimelineSvc.cpp:37
TimelineSvc::m_dumpTimeline
Gaudi::Property< bool > m_dumpTimeline
Definition:
TimelineSvc.h:40
TimelineSvc
Definition:
TimelineSvc.h:22
GaudiHive
src
TimelineSvc.h
Generated on Mon Mar 23 2020 15:31:01 for The Gaudi Framework by
1.8.15