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
void watchPreEvent(PreEvent::slot_type const &iSlot)
std::vector< std::string > m_excludedPaths
bool resumeInstrumentation()
void watchPrePathEvent(PrePathEvent::slot_type const &iSlot)
void endPathI(edm::StreamContext const &stream, edm::PathContext const &path, edm::HLTPathStatus const &)
std::vector< std::string > m_paths
void beginPath(std::string const &path)
void endPath(std::string const &path)
void watchPostEvent(PostEvent::slot_type const &iSlot)
void watchPostPathEvent(PostPathEvent::slot_type const &iSlot)
~ProfilerService()
Destructor.
void watchPostSourceEvent(PostSourceEvent::slot_type const &iSlot)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
bool stopInstrumentation()
stop instrumentation if not active anymore; true if stopped now
void preSourceI(edm::StreamID)
bool forceStopInstrumentation()
forced stop instrumentation independenly of activity status; true if stopped now
bool pauseInstrumentation()
bool startInstrumentation()
start instrumentation if not active. true if started now
void endEventI(edm::StreamContext const &stream)
void dumpStat() const
dump profiling information
void beginPathI(edm::StreamContext const &stream, edm::PathContext const &path)
ProfilerService(edm::ParameterSet const &pset, edm::ActivityRegistry &activity)
Standard Service Constructor.
bool doEvent() const
true if the current event has to be instrumented
void beginEventI(edm::StreamContext const &stream)