Go to the documentation of this file.
10 #include "valgrind/callgrind.h"
15 m_firstEvent(
pset.getUntrackedParameter<
int>(
"firstEvent", 0)),
16 m_lastEvent(
pset.getUntrackedParameter<
int>(
"lastEvent",
std::numeric_limits<
int>::
max())),
17 m_dumpInterval(
pset.getUntrackedParameter<
int>(
"dumpInterval", 100)),
44 #pragma GCC diagnostic push
45 #pragma GCC diagnostic ignored "-Wunused-but-set-variable"
52 CALLGRIND_START_INSTRUMENTATION;
67 CALLGRIND_STOP_INSTRUMENTATION;
75 CALLGRIND_STOP_INSTRUMENTATION;
83 CALLGRIND_STOP_INSTRUMENTATION;
91 CALLGRIND_START_INSTRUMENTATION;
100 #pragma GCC diagnostic pop
bool stopInstrumentation()
stop instrumentation if not active anymore; true if stopped now
void endEventI(edm::StreamContext const &stream)
bool startInstrumentation()
start instrumentation if not active. true if started now
void endPath(std::string const &path)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
~ProfilerService()
Destructor.
void watchPostSourceEvent(PostSourceEvent::slot_type const &iSlot)
void watchPreEvent(PreEvent::slot_type const &iSlot)
ProfilerService(edm::ParameterSet const &pset, edm::ActivityRegistry &activity)
Standard Service Constructor.
void beginEventI(edm::StreamContext const &stream)
std::vector< std::string > m_excludedPaths
bool resumeInstrumentation()
void watchPostEvent(PostEvent::slot_type const &iSlot)
void beginPath(std::string const &path)
void beginPathI(edm::StreamContext const &stream, edm::PathContext const &path)
void endPathI(edm::StreamContext const &stream, edm::PathContext const &path, edm::HLTPathStatus const &)
bool pauseInstrumentation()
void watchPostPathEvent(PostPathEvent::slot_type const &iSlot)
std::vector< std::string > m_paths
bool doEvent() const
true if the current event has to be instrumented
bool forceStopInstrumentation()
forced stop instrumentation independenly of activity status; true if stopped now
void watchPrePathEvent(PrePathEvent::slot_type const &iSlot)
void preSourceI(edm::StreamID)
void dumpStat() const
dump profiling information