#include <VTuneAuditor.h>
|
| VTuneAuditor (const std::string &name, ISvcLocator *pSvcLocator) |
| Constructor. More...
|
|
virtual StatusCode | initialize () override |
| Gaudi hooks. More...
|
|
void | before (StandardEventType, INamedInterface *) override |
| Implement inherited methods from Auditor. More...
|
|
void | before (StandardEventType, const std::string &) override |
|
void | before (CustomEventTypeRef, INamedInterface *) override |
|
void | before (CustomEventTypeRef, const std::string &) override |
|
void | after (StandardEventType, INamedInterface *, const StatusCode &) override |
|
void | after (StandardEventType, const std::string &, const StatusCode &) override |
|
void | after (CustomEventTypeRef, INamedInterface *, const StatusCode &) override |
|
void | after (CustomEventTypeRef, const std::string &, const StatusCode &) override |
|
Definition at line 17 of file VTuneAuditor.h.
◆ VTuneAuditor()
VTuneAuditor::VTuneAuditor |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
Constructor.
Definition at line 14 of file VTuneAuditor.cxx.
16 Auditor(
name, pSvcLocator ),
20 declareProperty(
"ProfiledAlgs",
m_algs,
21 "List of profiled algorithms." );
◆ after() [1/4]
void VTuneAuditor::after |
( |
CustomEventTypeRef |
, |
|
|
const std::string & |
, |
|
|
const StatusCode & |
|
|
) |
| |
|
inlineoverride |
◆ after() [2/4]
void VTuneAuditor::after |
( |
CustomEventTypeRef |
, |
|
|
INamedInterface * |
, |
|
|
const StatusCode & |
|
|
) |
| |
|
inlineoverride |
◆ after() [3/4]
void VTuneAuditor::after |
( |
StandardEventType |
, |
|
|
const std::string & |
, |
|
|
const StatusCode & |
|
|
) |
| |
|
inlineoverride |
◆ after() [4/4]
void VTuneAuditor::after |
( |
StandardEventType |
etype, |
|
|
INamedInterface * |
component, |
|
|
const StatusCode & |
|
|
) |
| |
|
override |
Definition at line 77 of file VTuneAuditor.cxx.
82 msgStream() << MSG::ERROR
83 <<
"Could not pause the profiling from the auditor"
◆ before() [1/4]
void VTuneAuditor::before |
( |
CustomEventTypeRef |
, |
|
|
const std::string & |
|
|
) |
| |
|
inlineoverride |
◆ before() [2/4]
void VTuneAuditor::before |
( |
CustomEventTypeRef |
, |
|
|
INamedInterface * |
|
|
) |
| |
|
inlineoverride |
◆ before() [3/4]
void VTuneAuditor::before |
( |
StandardEventType |
, |
|
|
const std::string & |
|
|
) |
| |
|
inlineoverride |
◆ before() [4/4]
void VTuneAuditor::before |
( |
StandardEventType |
etype, |
|
|
INamedInterface * |
component |
|
) |
| |
|
override |
Implement inherited methods from Auditor.
Definition at line 61 of file VTuneAuditor.cxx.
66 msgStream() << MSG::ERROR
67 <<
"Could not resume the profiling from the auditor"
◆ initialize()
StatusCode VTuneAuditor::initialize |
( |
| ) |
|
|
overridevirtual |
Gaudi hooks.
Definition at line 28 of file VTuneAuditor.cxx.
32 return StatusCode::FAILURE;
36 const IProperty* vtuneProfSvcProp =
dynamic_cast<const IProperty*
>(&(*m_vtuneProfilerSvc));
37 if ( !vtuneProfSvcProp ) {
38 msgStream() << MSG::ERROR
39 <<
"Could not retrieve IProperty interface to VTuneProfilerService."
41 return StatusCode::FAILURE;
44 std::vector<std::string> props2Copy = {
"ProfiledAlgs" };
45 for(
auto& prop : props2Copy) {
46 if ( !setProperty(vtuneProfSvcProp->getProperty(prop)) ) {
47 msgStream() << MSG::ERROR
48 <<
"Cannot set " << prop <<
" property."
50 return StatusCode::FAILURE;
54 return StatusCode::SUCCESS;
◆ m_algs
std::vector<std::string> VTuneAuditor::m_algs |
|
private |
◆ m_vtuneProfilerSvc
The documentation for this class was generated from the following files: