![]() |
The Gaudi Framework
v27r1
|
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... | |
![]() | |
Auditor (const std::string &name, ISvcLocator *svcloc) | |
Constructor. More... | |
~Auditor () override=default | |
Destructor. More... | |
StatusCode | sysInitialize () override |
Initialization method invoked by the framework. More... | |
StatusCode | sysFinalize () override |
Finalization method invoked by the framework. More... | |
void | before (StandardEventType, INamedInterface *) override |
The following methods are meant to be implemented by the child class... 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 |
void | beforeInitialize (INamedInterface *) override |
void | afterInitialize (INamedInterface *) override |
void | beforeReinitialize (INamedInterface *) override |
void | afterReinitialize (INamedInterface *) override |
void | beforeExecute (INamedInterface *) override |
void | afterExecute (INamedInterface *, const StatusCode &) override |
void | beforeFinalize (INamedInterface *) override |
void | afterFinalize (INamedInterface *) override |
void | beforeBeginRun (INamedInterface *) override |
void | afterBeginRun (INamedInterface *) override |
void | beforeEndRun (INamedInterface *) override |
void | afterEndRun (INamedInterface *) override |
const std::string & | name () const override |
bool | isEnabled () const override |
SmartIF< ISvcLocator > & | serviceLocator () const |
The standard service locator. More... | |
template<class T > | |
StatusCode | service (const std::string &name, T *&svc, bool createIf=false) const |
Access a service by name, creating it if it doesn't already exist. More... | |
template<class T = IService> | |
SmartIF< T > | service (const std::string &name, bool createIf=false) const |
StatusCode | setProperty (const Property &p) override |
Set a value of a property of an auditor. More... | |
StatusCode | setProperty (const std::string &s) override |
Implementation of IProperty::setProperty. More... | |
StatusCode | setProperty (const std::string &n, const std::string &v) override |
Implementation of IProperty::setProperty. More... | |
StatusCode | getProperty (Property *p) const override |
Get the value of a property. More... | |
const Property & | getProperty (const std::string &name) const override |
Get the property by name. More... | |
StatusCode | getProperty (const std::string &n, std::string &v) const override |
Implementation of IProperty::getProperty. More... | |
const std::vector< Property * > & | getProperties () const override |
Get all properties. More... | |
bool | hasProperty (const std::string &name) const override |
Implementation of IProperty::hasProperty. More... | |
template<class TYPE > | |
StatusCode | setProperty (const std::string &name, const TYPE &value) |
set the property form the value More... | |
StatusCode | setProperties () |
Set the auditor's properties. More... | |
template<class T > | |
Property * | declareProperty (const std::string &name, T &property, const std::string &doc="none") const |
Declare the named property. More... | |
![]() | |
virtual | ~CommonMessagingBase ()=default |
Virtual destructor. More... | |
SmartIF< IMessageSvc > & | msgSvc () const |
The standard message service. More... | |
MsgStream & | msgStream () const |
Return an uninitialized MsgStream. More... | |
MsgStream & | msgStream (const MSG::Level level) const |
Predefined configurable message stream for the efficient printouts. More... | |
MsgStream & | always () const |
shortcut for the method msgStream(MSG::ALWAYS) More... | |
MsgStream & | fatal () const |
shortcut for the method msgStream(MSG::FATAL) More... | |
MsgStream & | err () const |
shortcut for the method msgStream(MSG::ERROR) More... | |
MsgStream & | error () const |
shortcut for the method msgStream(MSG::ERROR) More... | |
MsgStream & | warning () const |
shortcut for the method msgStream(MSG::WARNING) More... | |
MsgStream & | info () const |
shortcut for the method msgStream(MSG::INFO) More... | |
MsgStream & | debug () const |
shortcut for the method msgStream(MSG::DEBUG) More... | |
MsgStream & | verbose () const |
shortcut for the method msgStream(MSG::VERBOSE) More... | |
MsgStream & | msg () const |
shortcut for the method msgStream(MSG::INFO) More... | |
MSG::Level | msgLevel () const |
get the output level from the embedded MsgStream More... | |
MSG::Level | outputLevel () const __attribute__((deprecated)) |
Backward compatibility function for getting the output level. More... | |
bool | msgLevel (MSG::Level lvl) const |
get the output level from the embedded MsgStream 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... | |
![]() | |
void | updateMsgStreamOutputLevel (int level) |
Update the output level of the cached MsgStream. 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 (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 (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 | |
![]() | |
using | base_class = extends |
Typedef to this class. More... | |
using | extend_interfaces_base = extend_interfaces< Interfaces...> |
Typedef to the base of this class. More... | |
![]() | |
typedef Gaudi::PluginService::Factory< IAuditor *, const std::string &, ISvcLocator * > | Factory |
![]() | |
using | base_class = CommonMessaging |
![]() | |
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 313 of file GoogleAuditor.cpp.
|
inlinevirtual |
|
inline |
Definition at line 221 of file GoogleAuditor.cpp.
|
inline |
Definition at line 231 of file GoogleAuditor.cpp.
|
inline |
Definition at line 239 of file GoogleAuditor.cpp.
|
inline |
Definition at line 246 of file GoogleAuditor.cpp.
|
inline |
Definition at line 266 of file GoogleAuditor.cpp.
|
inline |
Definition at line 267 of file GoogleAuditor.cpp.
|
inline |
Definition at line 265 of file GoogleAuditor.cpp.
|
inline |
Definition at line 268 of file GoogleAuditor.cpp.
|
inline |
Definition at line 263 of file GoogleAuditor.cpp.
|
inline |
Definition at line 264 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 176 of file GoogleAuditor.cpp.
|
inline |
Definition at line 184 of file GoogleAuditor.cpp.
|
inline |
Definition at line 192 of file GoogleAuditor.cpp.
|
inline |
Definition at line 199 of file GoogleAuditor.cpp.
|
inline |
Definition at line 259 of file GoogleAuditor.cpp.
|
inline |
Definition at line 260 of file GoogleAuditor.cpp.
|
inline |
Definition at line 258 of file GoogleAuditor.cpp.
|
inline |
Definition at line 261 of file GoogleAuditor.cpp.
|
inline |
Definition at line 256 of file GoogleAuditor.cpp.
|
inline |
Definition at line 257 of file GoogleAuditor.cpp.
|
inlinevirtual |
Finalize the auditor base.
Reimplemented from Auditor.
Definition at line 71 of file GoogleAuditor.cpp.
|
inlineprivate |
Definition at line 125 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 141 of file GoogleAuditor.cpp.
|
inlinevirtual |
Initialize the auditor base.
Reimplemented from Auditor.
Reimplemented in Google::HeapChecker.
Definition at line 53 of file GoogleAuditor.cpp.
|
inlineprivate |
Check if auditing is enabled for the given component.
Definition at line 117 of file GoogleAuditor.cpp.
|
inlineprivate |
Check if auditing is enabled for the current processing phase.
Definition at line 111 of file GoogleAuditor.cpp.
|
inlineprivate |
Check if the component in question is a GaudiSequencer or a Sequencer.
Definition at line 104 of file GoogleAuditor.cpp.
|
inlineprivate |
Start a full event audit.
Definition at line 80 of file GoogleAuditor.cpp.
|
inlineprivate |
stop a full event audit
Definition at line 92 of file GoogleAuditor.cpp.
|
private |
Internal flag to say if auditing is enabled or not for the current event.
Definition at line 297 of file GoogleAuditor.cpp.
|
private |
Number of events to skip before auditing.
Definition at line 291 of file GoogleAuditor.cpp.
|
private |
The frequency to audit events. -1 means all events.
Definition at line 295 of file GoogleAuditor.cpp.
|
private |
Flag to indicate if full event auditing is enabled or not.
Definition at line 301 of file GoogleAuditor.cpp.
|
private |
Internal flag to indicate if we are current in a full event audit.
Definition at line 307 of file GoogleAuditor.cpp.
|
private |
Any component in this list will be audited. If empty, all will be done.
Definition at line 289 of file GoogleAuditor.cpp.
|
mutableprotected |
Messaging object.
Definition at line 283 of file GoogleAuditor.cpp.
|
private |
Number of events processed.
Definition at line 299 of file GoogleAuditor.cpp.
|
private |
Number of events to include in a full event audit.
Definition at line 303 of file GoogleAuditor.cpp.
|
private |
Internal count of the number of events currently processed during an audit.
Definition at line 305 of file GoogleAuditor.cpp.
|
private |
Boolean indicating if sequencers should be skipped or not.
Definition at line 293 of file GoogleAuditor.cpp.
|
private |
Name of the component we are currently auditing.
Definition at line 309 of file GoogleAuditor.cpp.
|
private |
Veto list. Any component in this list will not be audited.
Definition at line 288 of file GoogleAuditor.cpp.
|
private |
When to audit the algorithms.
Definition at line 287 of file GoogleAuditor.cpp.