#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 24 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 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 41 of file ProfilerService.cc.
References dumpStat().
|
inline |
|
private |
Definition at line 117 of file ProfilerService.cc.
References m_allPaths, newEvent(), and startInstrumentation().
|
inline |
|
private |
Definition at line 131 of file ProfilerService.cc.
References doEvent(), spr::find(), m_activePath, m_excludedPaths, m_paths, callgraph::path, pauseInstrumentation(), and startInstrumentation().
|
inline |
Definition at line 80 of file ProfilerService.h.
References edm::PathContext::pathName().
Referenced by ProfilerService().
|
inline |
true if the current event has to be instrumented
Definition at line 61 of file ProfilerService.h.
Referenced by beginPath(), and startInstrumentation().
void ProfilerService::dumpStat | ( | ) | const |
dump profiling information
Definition at line 94 of file ProfilerService.cc.
Referenced by fullEvent(), resumeInstrumentation(), startInstrumentation(), and ~ProfilerService().
|
private |
Definition at line 125 of file ProfilerService.cc.
References forceStopInstrumentation(), and stopInstrumentation().
|
inline |
Definition at line 77 of file ProfilerService.h.
Referenced by ProfilerService().
|
private |
Definition at line 143 of file ProfilerService.cc.
References m_activePath, resumeInstrumentation(), and stopInstrumentation().
|
inline |
Definition at line 83 of file ProfilerService.h.
References callgraph::path, edm::PathContext::pathName(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ProfilerService().
bool ProfilerService::forceStopInstrumentation | ( | ) |
forced stop instrumentation independenly of activity status; true if stopped now
Definition at line 70 of file ProfilerService.cc.
References m_active.
Referenced by endEvent(), and fullEvent().
|
private |
Definition at line 105 of file ProfilerService.cc.
References dumpStat(), forceStopInstrumentation(), m_active, m_doEvent, newEvent(), startInstrumentation(), and stopInstrumentation().
Referenced by ProfilerService().
|
private |
Definition at line 99 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 78 of file ProfilerService.cc.
References m_active, and m_paused.
Referenced by beginPath().
|
inline |
bool ProfilerService::resumeInstrumentation | ( | ) |
Definition at line 85 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 47 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 27 of file ProfilerService.h.
|
friend |
Definition at line 26 of file ProfilerService.h.
|
private |
Definition at line 111 of file ProfilerService.h.
Referenced by forceStopInstrumentation(), fullEvent(), pauseInstrumentation(), resumeInstrumentation(), startInstrumentation(), and stopInstrumentation().
|
private |
Definition at line 113 of file ProfilerService.h.
Referenced by beginPath(), and endPath().
|
private |
Definition at line 105 of file ProfilerService.h.
Referenced by beginEvent(), and ProfilerService().
|
private |
Definition at line 109 of file ProfilerService.h.
Referenced by resumeInstrumentation(), and startInstrumentation().
|
private |
Definition at line 110 of file ProfilerService.h.
Referenced by fullEvent(), and newEvent().
|
private |
Definition at line 102 of file ProfilerService.h.
Referenced by resumeInstrumentation(), and startInstrumentation().
|
private |
Definition at line 108 of file ProfilerService.h.
Referenced by newEvent().
|
private |
Definition at line 104 of file ProfilerService.h.
Referenced by beginPath().
|
private |
Definition at line 100 of file ProfilerService.h.
Referenced by newEvent().
|
private |
Definition at line 101 of file ProfilerService.h.
Referenced by newEvent().
|
private |
Definition at line 103 of file ProfilerService.h.
Referenced by beginPath(), and ProfilerService().
|
private |
Definition at line 112 of file ProfilerService.h.
Referenced by pauseInstrumentation(), and resumeInstrumentation().