![]() |
The Gaudi Framework
v27r1
|
Performance Monitoring Auditor that uses Perfmon2 library to monitor algorithms. More...


Public Member Functions | |
| virtual void | before (StandardEventType evt, INamedInterface *alg) |
| virtual void | after (StandardEventType evt, INamedInterface *alg, const StatusCode &sc) |
| virtual StatusCode | initialize () |
| virtual StatusCode | finalize () |
| int | is_nehalem () |
| PerfMonAuditor (const std::string &name, ISvcLocator *pSvc) | |
| virtual | ~PerfMonAuditor () |
Public Member Functions inherited from Auditor | |
| 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... | |
Public Member Functions inherited from CommonMessagingBase | |
| 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... | |
Private Types | |
| typedef GaudiUtils::VectorMap< const INamedInterface *, int > | Map |
Private Member Functions | |
| void | i_beforeInitialize (INamedInterface *alg) |
| void | i_afterInitialize (INamedInterface *alg) |
| void | i_beforeExecute (INamedInterface *alg) |
| void | i_afterExecute (INamedInterface *alg) |
| PerfMonAuditor () | |
| PerfMonAuditor (const PerfMonAuditor &) | |
| PerfMonAuditor & | operator= (const PerfMonAuditor &) |
| void | startpm () |
| void | pausepm () |
| void | stoppm () |
| void | finalizepm () |
| int | detect_unavail_pmu_regs (int fd, pfmlib_regmask_t *r_pmcs, pfmlib_regmask_t *r_pmds) |
| int | detect_unavail_pmcs (int fd, pfmlib_regmask_t *r_pmcs) |
| void | pfm_bv_set (uint64_t *bv, uint16_t rnum) |
| int | pfm_bv_isset (uint64_t *bv, uint16_t rnum) |
| void | pfm_bv_copy (uint64_t *d, uint64_t *j, uint16_t n) |
| void | start_smpl () |
| void | stop_smpl () |
| void | finalize_smpl () |
Static Private Member Functions | |
| static void | process_smpl_buf (pfm_dfl_smpl_hdr_t *hdr, size_t entry_size) |
| static void | sigio_handler (int, struct siginfo *, struct sigcontext *) |
Private Attributes | |
| PFMon & | m_pfm |
| Map | m_map |
| int | m_indent |
| bool | m_inEvent |
| int | is_nehalem_ret |
| pfmlib_input_param_t | inp |
| pfmlib_output_param_t | outp |
| pfarg_ctx_t | ctx |
| pfarg_pmd_t | pd [NUM_PMDS] |
| pfarg_pmc_t | pc [NUM_PMCS] |
| pfarg_load_t | load_arg |
| int | fd |
| unsigned int | i |
| int | ret |
| std::string | event_str [MAX_NUMBER_OF_PROGRAMMABLE_COUNTERS] |
| std::string | prefix |
| std::string | family |
| char | event_cstr [MAX_NUMBER_OF_PROGRAMMABLE_COUNTERS][MAX_EVENT_NAME_LENGTH] |
| char | prefix_cstr [MAX_PREFIX_NAME_LENGTH] |
| unsigned int | ph_ev_count |
| bool | inv [MAX_NUMBER_OF_PROGRAMMABLE_COUNTERS] |
| unsigned int | cmask [MAX_NUMBER_OF_PROGRAMMABLE_COUNTERS] |
| unsigned int | start_at_event |
| pfmlib_core_input_param_t | params |
| pfmlib_nhm_input_param_t | nhm_params |
| int | used_counters_number |
| bool | nehalem |
| bool | westmere |
| bool | core |
| bool | sampling |
| pfm_dfl_smpl_arg_t | buf_arg |
| pfarg_load_t | load_args |
| void * | buf_addr |
| unsigned | num_counters |
| unsigned int | max_pmd |
| pfmlib_options_t | pfmlib_options |
| int | level |
| bool | first_alg |
| std::string | first_alg_name |
| bool | event_count_reached |
Additional Inherited Members | |
Public Types inherited from Auditor | |
| typedef Gaudi::PluginService::Factory< IAuditor *, const std::string &, ISvcLocator * > | Factory |
Public Types inherited from CommonMessaging< implements< IAuditor, IProperty > > | |
| using | base_class = CommonMessaging |
Protected Member Functions inherited from CommonMessaging< implements< IAuditor, IProperty > > | |
| void | updateMsgStreamOutputLevel (int level) |
| Update the output level of the cached MsgStream. More... | |
Performance Monitoring Auditor that uses Perfmon2 library to monitor algorithms.
Definition at line 200 of file PerfMonAuditor.cpp.
|
private |
Definition at line 353 of file PerfMonAuditor.cpp.
|
inline |
Definition at line 272 of file PerfMonAuditor.cpp.
|
inlinevirtual |
Definition at line 345 of file PerfMonAuditor.cpp.
|
private |
|
private |
|
virtual |
Definition at line 1057 of file PerfMonAuditor.cpp.
|
virtual |
Definition at line 1041 of file PerfMonAuditor.cpp.
|
inlineprivate |
Definition at line 392 of file PerfMonAuditor.cpp.
|
private |
|
virtual |
|
private |
Definition at line 912 of file PerfMonAuditor.cpp.
|
private |
Definition at line 541 of file PerfMonAuditor.cpp.
|
private |
Definition at line 1125 of file PerfMonAuditor.cpp.
|
private |
Definition at line 1079 of file PerfMonAuditor.cpp.
|
private |
Definition at line 1085 of file PerfMonAuditor.cpp.
|
private |
Definition at line 1073 of file PerfMonAuditor.cpp.
|
virtual |
Reimplemented from Auditor.
Definition at line 595 of file PerfMonAuditor.cpp.
|
inline |
Definition at line 217 of file PerfMonAuditor.cpp.
|
private |
|
private |
Definition at line 521 of file PerfMonAuditor.cpp.
Definition at line 395 of file PerfMonAuditor.cpp.
Definition at line 394 of file PerfMonAuditor.cpp.
Definition at line 393 of file PerfMonAuditor.cpp.
|
staticprivate |
Definition at line 645 of file PerfMonAuditor.cpp.
|
staticprivate |
Definition at line 686 of file PerfMonAuditor.cpp.
|
private |
Definition at line 747 of file PerfMonAuditor.cpp.
|
private |
Definition at line 419 of file PerfMonAuditor.cpp.
|
private |
Definition at line 894 of file PerfMonAuditor.cpp.
|
private |
Definition at line 505 of file PerfMonAuditor.cpp.
|
private |
Definition at line 404 of file PerfMonAuditor.cpp.
|
private |
Definition at line 402 of file PerfMonAuditor.cpp.
|
private |
Definition at line 381 of file PerfMonAuditor.cpp.
|
private |
Definition at line 388 of file PerfMonAuditor.cpp.
|
private |
Definition at line 363 of file PerfMonAuditor.cpp.
|
private |
Definition at line 414 of file PerfMonAuditor.cpp.
|
private |
Definition at line 377 of file PerfMonAuditor.cpp.
|
private |
Definition at line 374 of file PerfMonAuditor.cpp.
|
private |
Definition at line 376 of file PerfMonAuditor.cpp.
|
private |
Definition at line 367 of file PerfMonAuditor.cpp.
|
private |
Definition at line 412 of file PerfMonAuditor.cpp.
|
private |
Definition at line 413 of file PerfMonAuditor.cpp.
|
private |
Definition at line 368 of file PerfMonAuditor.cpp.
|
private |
Definition at line 361 of file PerfMonAuditor.cpp.
|
private |
Definition at line 380 of file PerfMonAuditor.cpp.
|
private |
Definition at line 359 of file PerfMonAuditor.cpp.
|
private |
Definition at line 410 of file PerfMonAuditor.cpp.
|
private |
Definition at line 366 of file PerfMonAuditor.cpp.
|
private |
Definition at line 403 of file PerfMonAuditor.cpp.
|
private |
Definition at line 355 of file PerfMonAuditor.cpp.
|
private |
Definition at line 356 of file PerfMonAuditor.cpp.
|
private |
Definition at line 354 of file PerfMonAuditor.cpp.
|
private |
Definition at line 233 of file PerfMonAuditor.cpp.
|
private |
Definition at line 406 of file PerfMonAuditor.cpp.
|
private |
Definition at line 386 of file PerfMonAuditor.cpp.
|
private |
Definition at line 384 of file PerfMonAuditor.cpp.
|
private |
Definition at line 405 of file PerfMonAuditor.cpp.
|
private |
Definition at line 362 of file PerfMonAuditor.cpp.
|
private |
Definition at line 383 of file PerfMonAuditor.cpp.
|
private |
Definition at line 365 of file PerfMonAuditor.cpp.
|
private |
Definition at line 364 of file PerfMonAuditor.cpp.
|
private |
Definition at line 407 of file PerfMonAuditor.cpp.
|
private |
Definition at line 379 of file PerfMonAuditor.cpp.
|
private |
Definition at line 375 of file PerfMonAuditor.cpp.
|
private |
Definition at line 378 of file PerfMonAuditor.cpp.
|
private |
Definition at line 369 of file PerfMonAuditor.cpp.
|
private |
Definition at line 390 of file PerfMonAuditor.cpp.
|
private |
Definition at line 382 of file PerfMonAuditor.cpp.
|
private |
Definition at line 385 of file PerfMonAuditor.cpp.
|
private |
Definition at line 387 of file PerfMonAuditor.cpp.