| The Gaudi Framework v30r0 (c919700c)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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_ALGORITHM_FACTORY( IntelProfile )
13
14 //=============================================================================
15 // Main execution
16 //=============================================================================
17 StatusCode IntelProfile::execute()
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 }
StatusCode::SUCCESS
Definition: StatusCode.h:29
IntelProfile
Algorithm to enable/disable the profiling by Intel at given events.
Definition: IntelProfile.h:14
IntelProfile.h
Gaudi::Functional::execute
StatusCode execute() override final
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
DECLARE_ALGORITHM_FACTORY
#define DECLARE_ALGORITHM_FACTORY(x)
Definition: Algorithm.h:631
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:209