33 #include "valgrind/callgrind.h" 48 virtual void endJob()
override ;
71 m_firstEvent = parameters.
getParameter<
int>(
"firstEvent");
93 #pragma GCC diagnostic push 94 #pragma GCC diagnostic ignored "-Wunused-but-set-variable" 99 if(m_evtCount >= m_firstEvent && (m_evtCount <= m_lastEvent || m_lastEvent == -1))
104 CALLGRIND_STOP_INSTRUMENTATION;
105 cout <<
"Stop Instr" << endl;
108 CALLGRIND_START_INSTRUMENTATION;
109 CALLGRIND_DUMP_STATS;
110 cout <<
"Start Instr" << endl;
113 CALLGRIND_DUMP_STATS;
114 cout <<
"Dump stat" << endl;
121 #pragma GCC diagnostic pop T getParameter(std::string const &) const
def analyze(function, filename, filter=None)
#define DEFINE_FWK_MODULE(type)
virtual void beginJob() override
Profiler(const edm::ParameterSet &)
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
virtual void endJob() override