The Gaudi Framework  master (01b473db)
ITimelineSvc.cpp
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2025 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 \***********************************************************************************/
14 
15 #include <string>
16 
18  : m_record{ &record } {
19  m_record->thread = pthread_self();
20  m_record->slot = ctx.slot();
21  m_record->event = ctx.evt();
22  m_record->algorithm = std::move( alg );
23  m_record->start = TimelineEvent::Clock::now();
24 }
25 
27  if ( m_record ) m_record->end = TimelineEvent::Clock::now();
28 }
ITimelineSvc.h
ITimelineSvc::TimelineRecorder::~TimelineRecorder
~TimelineRecorder()
Definition: ITimelineSvc.cpp:26
ManySmallAlgs.alg
alg
Definition: ManySmallAlgs.py:81
TimelineEvent
Definition: TimelineEvent.h:17
GaudiPython.Pythonizations.ctx
ctx
Definition: Pythonizations.py:578
ITimelineSvc::TimelineRecorder::TimelineRecorder
TimelineRecorder()=default
TimelineEvent.h
TimelineEvent::thread
pthread_t thread
Definition: TimelineEvent.h:21
EventContext.h
EventContext
Definition: EventContext.h:34