The Gaudi Framework
master (37c0b60a)
ITimelineSvc.cpp
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2024 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
#include <
GaudiKernel/EventContext.h
>
12
#include <
GaudiKernel/ITimelineSvc.h
>
13
14
ITimelineSvc::TimelineRecorder::TimelineRecorder
(
TimelineEvent
& record,
std::string
alg
,
const
EventContext
&
ctx
)
15
: m_record{ &record } {
16
m_record->
thread
= pthread_self();
17
m_record->slot =
ctx
.slot();
18
m_record->event =
ctx
.evt();
19
m_record->algorithm =
std::move
(
alg
);
20
m_record->start = Clock::now();
21
}
ITimelineSvc.h
std::string
STL class.
std::move
T move(T... args)
ManySmallAlgs.alg
alg
Definition:
ManySmallAlgs.py:81
TimelineEvent
Definition:
ITimelineSvc.h:23
GaudiPython.Pythonizations.ctx
ctx
Definition:
Pythonizations.py:578
ITimelineSvc::TimelineRecorder::TimelineRecorder
TimelineRecorder()=default
TimelineEvent::thread
pthread_t thread
Definition:
ITimelineSvc.h:27
EventContext.h
EventContext
Definition:
EventContext.h:34
GaudiKernel
src
Lib
ITimelineSvc.cpp
Generated on Thu Dec 19 2024 15:35:03 for The Gaudi Framework by
1.8.18