![]() |
ATLAS Offline Software
|
Valgrind auditor. More...
#include <ValgrindAuditor.h>
Public Member Functions | |
ValgrindAuditor (const std::string &name, ISvcLocator *pSvcLocator) | |
virtual | ~ValgrindAuditor () |
virtual StatusCode | initialize () override |
virtual void | handle (const Incident &incident) override |
Incident handler. More... | |
Auditor hooks | |
typedef std::pair< boost::regex, std::string > | NameEvt |
Typedef for algorithm/event pair, e.g. ("MyAlg","initialize") More... | |
ServiceHandle< IValgrindSvc > | m_valSvc |
Handle to ValgrindSvc. More... | |
std::vector< std::string > | m_algs |
List of algorithms to profile. More... | |
std::vector< std::string > | m_intervals |
List of auditor intervals to profile. More... | |
unsigned int | m_ignoreFirstNEvents |
Don't profile on the first N events. More... | |
bool | m_dumpAfterEachInterval |
Dump profile after each interval. More... | |
unsigned int | m_eventCounter |
Internal event counter for BeginEvent incident. More... | |
std::vector< boost::regex > | m_algsRegEx |
Regular expressions for algorithm name matching. More... | |
std::vector< std::pair< NameEvt, NameEvt > > | m_hooks |
Internal storage of intervals. More... | |
virtual void | before (const std::string &event, const std::string &name, const EventContext &ctx) override |
virtual void | after (const std::string &event, const std::string &name, const EventContext &ctx, const StatusCode &sc) override |
virtual void | do_beforeExecute (const std::string &name) |
Start callgrind instrumentation. More... | |
virtual void | do_afterExecute (const std::string &name) |
Stop callgrind instrumentation. More... | |
void | do_before (const std::string &name, const std::string &hook) |
void | do_after (const std::string &name, const std::string &hook) |
StatusCode | decodeIntervals () |
bool | algMatch (const std::string &name) |
Valgrind auditor.
Gaudi auditor to programmatically control valgrind. Currently only callgrind controls are implemented. Turns callgrind instrumentation on/off before/afterExecute.
Definition at line 34 of file ValgrindAuditor.h.
typedef std::pair<boost::regex,std::string> ValgrindAuditor::NameEvt |
Typedef for algorithm/event pair, e.g. ("MyAlg","initialize")
Definition at line 64 of file ValgrindAuditor.h.
ValgrindAuditor::ValgrindAuditor | ( | const std::string & | name, |
ISvcLocator * | pSvcLocator | ||
) |
Definition at line 24 of file ValgrindAuditor.cxx.
|
virtual |
Definition at line 44 of file ValgrindAuditor.cxx.
|
overridevirtual |
Definition at line 170 of file ValgrindAuditor.cxx.
|
private |
Definition at line 314 of file ValgrindAuditor.cxx.
|
overridevirtual |
Definition at line 163 of file ValgrindAuditor.cxx.
|
private |
Definition at line 279 of file ValgrindAuditor.cxx.
Definition at line 232 of file ValgrindAuditor.cxx.
|
virtual |
Definition at line 214 of file ValgrindAuditor.cxx.
|
virtual |
|
overridevirtual |
|
overridevirtual |
Definition at line 49 of file ValgrindAuditor.cxx.
|
private |
List of algorithms to profile.
Definition at line 72 of file ValgrindAuditor.h.
|
private |
Regular expressions for algorithm name matching.
Definition at line 87 of file ValgrindAuditor.h.
|
private |
Dump profile after each interval.
Definition at line 81 of file ValgrindAuditor.h.
|
private |
Internal event counter for BeginEvent incident.
Definition at line 84 of file ValgrindAuditor.h.
Internal storage of intervals.
Definition at line 90 of file ValgrindAuditor.h.
|
private |
Don't profile on the first N events.
Definition at line 78 of file ValgrindAuditor.h.
|
private |
List of auditor intervals to profile.
Definition at line 75 of file ValgrindAuditor.h.
|
private |
Handle to ValgrindSvc.
Definition at line 69 of file ValgrindAuditor.h.