Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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
13 
14 //=============================================================================
15 // Main execution
16 //=============================================================================
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 }
Algorithm to enable/disable the profiling by Intel at given events.
Definition: IntelProfile.h:14
StatusCode execute() override final
constexpr static const auto SUCCESS
Definition: StatusCode.h:85
#define DECLARE_COMPONENT(type)
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:192