The Gaudi Framework
master (37c0b60a)
IntelProfile.cpp
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
// Include files
12
#include <iostream>
13
14
// local
15
#include "
IntelProfile.h
"
16
17
//-----------------------------------------------------------------------------
18
// Implementation file for class : IntelProfile
19
//-----------------------------------------------------------------------------
20
21
// Declaration of the Algorithm Factory
22
DECLARE_COMPONENT
(
IntelProfile
)
23
24
//=============================================================================
25
// Main execution
26
//=============================================================================
27
StatusCode
IntelProfile
::
execute
() {
28
29
// Increase event number
30
m_eventNumber += 1;
31
32
if
( m_eventNumber == m_nStartFromEvent ) {
33
warning() <<
"Starting Intel profile at event "
<< m_eventNumber <<
endmsg
;
34
__itt_resume();
35
}
36
37
if
( m_eventNumber == m_nStopAtEvent ) {
38
warning() <<
"Stopping Intel profile at event "
<< m_eventNumber <<
endmsg
;
39
__itt_pause();
40
}
41
42
return
StatusCode::SUCCESS
;
43
}
IntelProfile.h
StatusCode
Definition:
StatusCode.h:65
GaudiPython.Pythonizations.execute
execute
Definition:
Pythonizations.py:578
IntelProfile
Algorithm to enable/disable the profiling by Intel at given events.
Definition:
IntelProfile.h:21
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition:
MsgStream.h:202
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition:
StatusCode.h:100
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition:
PluginServiceV1.h:46
GaudiProfiling
src
component
intel
IntelProfile.cpp
Generated on Thu Dec 19 2024 15:35:05 for The Gaudi Framework by
1.8.18