#include <ProfilerService.h>
Public Member Functions | |
bool | active () const |
true if instrumentation is active More... | |
void | beginEventI (edm::StreamContext const &stream) |
void | beginPathI (edm::StreamContext const &stream, edm::PathContext const &path) |
bool | doEvent () const |
true if the current event has to be instrumented More... | |
void | dumpStat () const |
dump profiling information More... | |
void | endEventI (edm::StreamContext const &stream) |
void | endPathI (edm::StreamContext const &stream, edm::PathContext const &path, edm::HLTPathStatus const &) |
bool | forceStopInstrumentation () |
forced stop instrumentation independenly of activity status; true if stopped now More... | |
bool | pauseInstrumentation () |
void | preSourceI (edm::StreamID) |
ProfilerService (edm::ParameterSet const &pset, edm::ActivityRegistry &activity) | |
Standard Service Constructor. More... | |
bool | resumeInstrumentation () |
bool | startInstrumentation () |
start instrumentation if not active. true if started now More... | |
bool | stopInstrumentation () |
stop instrumentation if not active anymore; true if stopped now More... | |
~ProfilerService () | |
Destructor. More... | |
Private Member Functions | |
void | beginEvent () |
void | beginPath (std::string const &path) |
void | endEvent () |
void | endPath (std::string const &path) |
void | fullEvent () |
void | newEvent () |
Private Attributes | |
int | m_active |
std::string | m_activePath |
bool | m_allPaths |
int | m_counts |
bool | m_doEvent |
int | m_dumpInterval |
int | m_evtCount |
std::vector< std::string > | m_excludedPaths |
int | m_firstEvent |
int | m_lastEvent |
std::vector< std::string > | m_paths |
bool | m_paused |
Friends | |
struct | test::CheckPaths |
class | test::TestProfilerService |
A Service to start and stop calgrind profiling on demand... act also as profiler watchdog (in the same service to avoid dependency between service)
Definition at line 23 of file ProfilerService.h.
ProfilerService::ProfilerService | ( | edm::ParameterSet const & | pset, |
edm::ActivityRegistry & | activity | ||
) |
Standard Service Constructor.
Definition at line 12 of file ProfilerService.cc.
References mutracking_dqm_sourceclient-live_cfg::allPaths, beginEventI(), beginPathI(), endEventI(), endPathI(), spr::find(), fullEvent(), m_allPaths, m_paths, preSourceI(), AlCaHLTBitMon_QueryRunRegistry::string, edm::ActivityRegistry::watchPostEvent(), edm::ActivityRegistry::watchPostPathEvent(), edm::ActivityRegistry::watchPostSourceEvent(), edm::ActivityRegistry::watchPreEvent(), and edm::ActivityRegistry::watchPrePathEvent().
ProfilerService::~ProfilerService | ( | ) |
Destructor.
Definition at line 42 of file ProfilerService.cc.
References dumpStat().
|
inline |
true if instrumentation is active
Definition at line 59 of file ProfilerService.h.
References m_active.
|
private |
Definition at line 119 of file ProfilerService.cc.
References m_allPaths, newEvent(), and startInstrumentation().
Referenced by beginEventI().
|
inline |
Definition at line 65 of file ProfilerService.h.
References beginEvent().
Referenced by ProfilerService().
|
private |
Definition at line 133 of file ProfilerService.cc.
References doEvent(), spr::find(), m_activePath, m_excludedPaths, m_paths, castor_dqm_sourceclient_file_cfg::path, pauseInstrumentation(), and startInstrumentation().
Referenced by beginPathI().
|
inline |
Definition at line 68 of file ProfilerService.h.
References beginPath(), and castor_dqm_sourceclient_file_cfg::path.
Referenced by ProfilerService().
|
inline |
true if the current event has to be instrumented
Definition at line 56 of file ProfilerService.h.
References m_doEvent.
Referenced by beginPath(), and startInstrumentation().
void ProfilerService::dumpStat | ( | ) | const |
dump profiling information
Definition at line 99 of file ProfilerService.cc.
Referenced by fullEvent(), resumeInstrumentation(), startInstrumentation(), and ~ProfilerService().
|
private |
Definition at line 127 of file ProfilerService.cc.
References forceStopInstrumentation(), and stopInstrumentation().
Referenced by endEventI().
|
inline |
Definition at line 67 of file ProfilerService.h.
References endEvent().
Referenced by ProfilerService().
|
private |
Definition at line 147 of file ProfilerService.cc.
References m_activePath, castor_dqm_sourceclient_file_cfg::path, resumeInstrumentation(), and stopInstrumentation().
Referenced by endPathI().
|
inline |
Definition at line 69 of file ProfilerService.h.
References endPath(), and castor_dqm_sourceclient_file_cfg::path.
Referenced by ProfilerService().
bool ProfilerService::forceStopInstrumentation | ( | ) |
forced stop instrumentation independenly of activity status; true if stopped now
Definition at line 71 of file ProfilerService.cc.
References m_active.
Referenced by endEvent(), and fullEvent().
|
private |
Definition at line 107 of file ProfilerService.cc.
References dumpStat(), forceStopInstrumentation(), m_active, m_doEvent, newEvent(), startInstrumentation(), and stopInstrumentation().
Referenced by preSourceI(), and ProfilerService().
|
private |
Definition at line 102 of file ProfilerService.cc.
References m_doEvent, m_evtCount, m_firstEvent, and m_lastEvent.
Referenced by beginEvent(), and fullEvent().
bool ProfilerService::pauseInstrumentation | ( | ) |
Definition at line 80 of file ProfilerService.cc.
References m_active, and m_paused.
Referenced by beginPath().
|
inline |
Definition at line 63 of file ProfilerService.h.
References fullEvent().
Referenced by ProfilerService().
bool ProfilerService::resumeInstrumentation | ( | ) |
Definition at line 88 of file ProfilerService.cc.
References dumpStat(), m_active, m_counts, m_dumpInterval, and m_paused.
Referenced by endPath().
bool ProfilerService::startInstrumentation | ( | ) |
start instrumentation if not active. true if started now
Definition at line 46 of file ProfilerService.cc.
References doEvent(), dumpStat(), m_active, m_counts, and m_dumpInterval.
Referenced by beginEvent(), beginPath(), and fullEvent().
bool ProfilerService::stopInstrumentation | ( | ) |
stop instrumentation if not active anymore; true if stopped now
Definition at line 62 of file ProfilerService.cc.
References m_active.
Referenced by endEvent(), endPath(), and fullEvent().
|
friend |
Definition at line 26 of file ProfilerService.h.
|
friend |
Definition at line 25 of file ProfilerService.h.
|
private |
Definition at line 96 of file ProfilerService.h.
Referenced by active(), forceStopInstrumentation(), fullEvent(), pauseInstrumentation(), resumeInstrumentation(), startInstrumentation(), and stopInstrumentation().
|
private |
Definition at line 98 of file ProfilerService.h.
Referenced by beginPath(), and endPath().
|
private |
Definition at line 90 of file ProfilerService.h.
Referenced by beginEvent(), and ProfilerService().
|
private |
Definition at line 94 of file ProfilerService.h.
Referenced by resumeInstrumentation(), and startInstrumentation().
|
private |
Definition at line 95 of file ProfilerService.h.
Referenced by doEvent(), fullEvent(), and newEvent().
|
private |
Definition at line 87 of file ProfilerService.h.
Referenced by resumeInstrumentation(), and startInstrumentation().
|
private |
Definition at line 93 of file ProfilerService.h.
Referenced by newEvent().
|
private |
Definition at line 89 of file ProfilerService.h.
Referenced by beginPath().
|
private |
Definition at line 85 of file ProfilerService.h.
Referenced by newEvent().
|
private |
Definition at line 86 of file ProfilerService.h.
Referenced by newEvent().
|
private |
Definition at line 88 of file ProfilerService.h.
Referenced by beginPath(), and ProfilerService().
|
private |
Definition at line 97 of file ProfilerService.h.
Referenced by pauseInstrumentation(), and resumeInstrumentation().