6 #include "GaudiKernel/INamedInterface.h"
15 ISvcLocator* pSvcLocator ):
16 Auditor(
name, pSvcLocator ),
17 m_vtuneProfilerSvc(
"VTuneProfilerService",
name )
20 declareProperty(
"ProfiledAlgs",
m_algs,
21 "List of profiled algorithms." );
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;
66 msgStream() << MSG::ERROR
67 <<
"Could not resume the profiling from the auditor"
82 msgStream() << MSG::ERROR
83 <<
"Could not pause the profiling from the auditor"