The Gaudi Framework  v29r0 (ff2e7097)
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 
20  // Increase event number
21  m_eventNumber += 1;
22 
23  if ( m_eventNumber == m_nStartFromEvent ) {
24  warning() << "Starting Intel profile at event " << m_eventNumber << endmsg;
25  __itt_resume();
26  }
27 
28  if ( m_eventNumber == m_nStopAtEvent ) {
29  warning() << "Stopping Intel profile at event " << m_eventNumber << endmsg;
30  __itt_pause();
31  }
32 
33  return StatusCode::SUCCESS;
34 }
Algorithm to enable/disable the profiling by Intel at given events.
Definition: IntelProfile.h:14
StatusCode execute() override final
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:28
#define DECLARE_ALGORITHM_FACTORY(x)
Definition: Algorithm.h:629
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:209