![]() |
The Gaudi Framework
v26r4
|
Base for Google Auditors. More...
#include <GoogleAuditor.cpp>
Public Member Functions | |
AuditorBase (const std::string &name, ISvcLocator *pSvcLocator) | |
Constructor. More... | |
virtual | ~AuditorBase () |
Destructor. More... | |
StatusCode | initialize () |
Initialize the auditor base. More... | |
StatusCode | finalize () |
Finalize the auditor base. More... | |
void | handle (const Incident &incident) |
Implement the handle method for the Incident service. More... | |
void | before (StandardEventType type, INamedInterface *i) |
void | before (CustomEventTypeRef type, INamedInterface *i) |
void | before (StandardEventType type, const std::string &s) |
void | before (CustomEventTypeRef type, const std::string &s) |
void | after (StandardEventType type, INamedInterface *i, const StatusCode &sc) |
void | after (CustomEventTypeRef type, INamedInterface *i, const StatusCode &sc) |
void | after (StandardEventType type, const std::string &s, const StatusCode &sc) |
void | after (CustomEventTypeRef type, const std::string &s, const StatusCode &) |
void | beforeInitialize (INamedInterface *i) |
void | beforeReinitialize (INamedInterface *i) |
void | beforeExecute (INamedInterface *i) |
void | beforeBeginRun (INamedInterface *i) |
void | beforeEndRun (INamedInterface *i) |
void | beforeFinalize (INamedInterface *i) |
void | afterInitialize (INamedInterface *i) |
void | afterReinitialize (INamedInterface *i) |
void | afterExecute (INamedInterface *i, const StatusCode &s) |
void | afterBeginRun (INamedInterface *i) |
void | afterEndRun (INamedInterface *i) |
void | afterFinalize (INamedInterface *i) |
![]() | |
void * | i_cast (const InterfaceID &tid) const override |
Implementation of IInterface::i_cast. More... | |
StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
Implementation of IInterface::queryInterface. More... | |
std::vector< std::string > | getInterfaceNames () const override |
Implementation of IInterface::getInterfaceNames. More... | |
~extends () override=default | |
Virtual destructor. More... | |
void * | i_cast (const InterfaceID &tid) const override |
Implementation of IInterface::i_cast. More... | |
StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
Implementation of IInterface::queryInterface. More... | |
std::vector< std::string > | getInterfaceNames () const override |
Implementation of IInterface::getInterfaceNames. More... | |
~extends () override=default | |
Virtual destructor. More... | |
![]() | |
~extend_interfaces () override=default | |
Virtual destructor. More... | |
~extend_interfaces () override=default | |
Virtual destructor. More... | |
Protected Member Functions | |
virtual void | google_before (const std::string &s)=0 |
Start the google tool. More... | |
virtual void | google_after (const std::string &s)=0 |
stop the google tool More... | |
virtual bool | alreadyRunning ()=0 |
check if we are already running the tool More... | |
Protected Attributes | |
MsgStream | m_log |
Messaging object. More... | |
Private Member Functions | |
void | startAudit () |
Start a full event audit. More... | |
void | stopAudit () |
stop a full event audit More... | |
bool | isSequencer (INamedInterface *i) const |
Check if the component in question is a GaudiSequencer or a Sequencer. More... | |
bool | isPhaseEnabled (const CustomEventTypeRef &type) const |
Check if auditing is enabled for the current processing phase. More... | |
bool | isComponentEnabled (const std::string &name) const |
Check if auditing is enabled for the given component. More... | |
std::string | getDumpName (const CustomEventTypeRef &type, const std::string &name) const |
Private Attributes | |
std::vector< std::string > | m_when |
When to audit the algorithms. More... | |
std::vector< std::string > | m_veto |
Veto list. Any component in this list will not be audited. More... | |
std::vector< std::string > | m_list |
Any component in this list will be audited. If empty, all will be done. More... | |
unsigned long long | m_eventsToSkip |
Number of events to skip before auditing. More... | |
bool | m_skipSequencers |
Boolean indicating if sequencers should be skipped or not. More... | |
int | m_freq |
The frequency to audit events. -1 means all events. More... | |
bool | m_audit |
Internal flag to say if auditing is enabled or not for the current event. More... | |
unsigned long long | m_nEvts |
Number of events processed. More... | |
bool | m_fullEventAudit |
Flag to indicate if full event auditing is enabled or not. More... | |
unsigned long long | m_nSampleEvents |
Number of events to include in a full event audit. More... | |
unsigned long long | m_sampleEventCount |
Internal count of the number of events currently processed during an audit. More... | |
bool | m_inFullAudit |
Internal flag to indicate if we are current in a full event audit. More... | |
std::string | m_startedBy |
Name of the component we are currently auditing. More... | |
Additional Inherited Members | |
![]() | |
typedef extends | base_class |
Typedef to this class. More... | |
typedef extend_interfaces< Interfaces...> | extend_interfaces_base |
Typedef to the base of this class. More... | |
typedef extends | base_class |
Typedef to this class. More... | |
typedef extend_interfaces< Interfaces...> | extend_interfaces_base |
Typedef to the base of this class. More... | |
![]() | |
using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type |
take union of the ext_iids of all Interfaces... More... | |
using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type |
take union of the ext_iids of all Interfaces... More... | |
Google::AuditorBase::AuditorBase | ( | const std::string & | name, |
ISvcLocator * | pSvcLocator | ||
) |
Constructor.
Definition at line 312 of file GoogleAuditor.cpp.
|
inlinevirtual |
|
inline |
Definition at line 220 of file GoogleAuditor.cpp.
|
inline |
Definition at line 230 of file GoogleAuditor.cpp.
|
inline |
Definition at line 238 of file GoogleAuditor.cpp.
|
inline |
Definition at line 245 of file GoogleAuditor.cpp.
|
inline |
Definition at line 265 of file GoogleAuditor.cpp.
|
inline |
Definition at line 266 of file GoogleAuditor.cpp.
|
inline |
Definition at line 264 of file GoogleAuditor.cpp.
|
inline |
Definition at line 267 of file GoogleAuditor.cpp.
|
inline |
Definition at line 262 of file GoogleAuditor.cpp.
|
inline |
Definition at line 263 of file GoogleAuditor.cpp.
|
protectedpure virtual |
check if we are already running the tool
Implemented in Google::CPUProfiler, Google::HeapChecker, and Google::HeapProfiler.
|
inline |
Definition at line 175 of file GoogleAuditor.cpp.
|
inline |
Definition at line 183 of file GoogleAuditor.cpp.
|
inline |
Definition at line 191 of file GoogleAuditor.cpp.
|
inline |
Definition at line 198 of file GoogleAuditor.cpp.
|
inline |
Definition at line 258 of file GoogleAuditor.cpp.
|
inline |
Definition at line 259 of file GoogleAuditor.cpp.
|
inline |
Definition at line 257 of file GoogleAuditor.cpp.
|
inline |
Definition at line 260 of file GoogleAuditor.cpp.
|
inline |
Definition at line 255 of file GoogleAuditor.cpp.
|
inline |
Definition at line 256 of file GoogleAuditor.cpp.
|
inline |
Finalize the auditor base.
Definition at line 70 of file GoogleAuditor.cpp.
|
inlineprivate |
Definition at line 124 of file GoogleAuditor.cpp.
|
protectedpure virtual |
stop the google tool
Implemented in Google::CPUProfiler, Google::HeapChecker, and Google::HeapProfiler.
|
protectedpure virtual |
Start the google tool.
Implemented in Google::CPUProfiler, Google::HeapChecker, and Google::HeapProfiler.
|
inline |
Implement the handle method for the Incident service.
This is used to inform the tool of software incidents.
incident | The incident identifier |
Definition at line 140 of file GoogleAuditor.cpp.
|
inline |
Initialize the auditor base.
Definition at line 52 of file GoogleAuditor.cpp.
|
inlineprivate |
Check if auditing is enabled for the given component.
Definition at line 116 of file GoogleAuditor.cpp.
|
inlineprivate |
Check if auditing is enabled for the current processing phase.
Definition at line 110 of file GoogleAuditor.cpp.
|
inlineprivate |
Check if the component in question is a GaudiSequencer or a Sequencer.
Definition at line 103 of file GoogleAuditor.cpp.
|
inlineprivate |
Start a full event audit.
Definition at line 79 of file GoogleAuditor.cpp.
|
inlineprivate |
stop a full event audit
Definition at line 91 of file GoogleAuditor.cpp.
|
private |
Internal flag to say if auditing is enabled or not for the current event.
Definition at line 296 of file GoogleAuditor.cpp.
|
private |
Number of events to skip before auditing.
Definition at line 290 of file GoogleAuditor.cpp.
|
private |
The frequency to audit events. -1 means all events.
Definition at line 294 of file GoogleAuditor.cpp.
|
private |
Flag to indicate if full event auditing is enabled or not.
Definition at line 300 of file GoogleAuditor.cpp.
|
private |
Internal flag to indicate if we are current in a full event audit.
Definition at line 306 of file GoogleAuditor.cpp.
|
private |
Any component in this list will be audited. If empty, all will be done.
Definition at line 288 of file GoogleAuditor.cpp.
|
mutableprotected |
Messaging object.
Definition at line 282 of file GoogleAuditor.cpp.
|
private |
Number of events processed.
Definition at line 298 of file GoogleAuditor.cpp.
|
private |
Number of events to include in a full event audit.
Definition at line 302 of file GoogleAuditor.cpp.
|
private |
Internal count of the number of events currently processed during an audit.
Definition at line 304 of file GoogleAuditor.cpp.
|
private |
Boolean indicating if sequencers should be skipped or not.
Definition at line 292 of file GoogleAuditor.cpp.
|
private |
Name of the component we are currently auditing.
Definition at line 308 of file GoogleAuditor.cpp.
|
private |
Veto list. Any component in this list will not be audited.
Definition at line 287 of file GoogleAuditor.cpp.
|
private |
When to audit the algorithms.
Definition at line 286 of file GoogleAuditor.cpp.