| The Gaudi Framework v32r1 (f65d50dc)

IntelProfile.cpp
Go to the documentation of this file.
1 // Include files
2 #include <iostream>
3
4 // local
5 #include "IntelProfile.h"
6
7 //-----------------------------------------------------------------------------
8 // Implementation file for class : IntelProfile
9 //-----------------------------------------------------------------------------
10
11 // Declaration of the Algorithm Factory
12 DECLARE_COMPONENT( IntelProfile )
13
14 //=============================================================================
15 // Main execution
16 //=============================================================================
17 StatusCode IntelProfile::execute() {
18
19 // Increase event number
20 m_eventNumber += 1;
21
22 if ( m_eventNumber == m_nStartFromEvent ) {
23 warning() << "Starting Intel profile at event " << m_eventNumber << endmsg;
24 __itt_resume();
25 }
26
27 if ( m_eventNumber == m_nStopAtEvent ) {
28 warning() << "Stopping Intel profile at event " << m_eventNumber << endmsg;
29 __itt_pause();
30 }
31
32 return StatusCode::SUCCESS;
33 }
IntelProfile
Algorithm to enable/disable the profiling by Intel at given events.
Definition: IntelProfile.h:14
IntelProfile.h
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition: StatusCode.h:85
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition: PluginServiceV1.h:46
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:192