38 if (
void *sym = dlsym(0,
"igprof_dump_now"))
39 dump_ = __extension__ (
void(*)(
const char *)) sym;
42 <<
"IgProfModule requested but application is not"
43 <<
" currently being profiled with igprof\n";
85 if (!
dump_ || format.empty())
100 size_t patlen = strlen(pat);
102 while ((pos = result.find(pat, pos)) != std::string::npos)
105 int n = sprintf(buf,
"%d", val);
106 result.replace(pos, patlen, buf);
107 pos = pos - patlen +
n;
116 size_t patlen = strlen(pat);
118 while ((pos = result.find(pat, pos)) != std::string::npos)
121 int n = sprintf(buf,
"%llu", val);
122 result.replace(pos, patlen, buf);
123 pos = pos - patlen +
n;
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
virtual void endRun(const edm::Run &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
edm::LuminosityBlockNumber_t nlumi_
unsigned long long EventNumber_t
virtual void analyze(const edm::Event &e, const edm::EventSetup &) override
string format
Some error handling for the usage.
void(* dump_)(const char *)
unsigned int LuminosityBlockNumber_t
static std::string replace(const std::string &s, const char *pat, int val)
void makeDump(const std::string &format)
LuminosityBlockNumber_t luminosityBlock() const
edm::EventNumber_t nevent_
virtual void endJob(void) override
static std::string replaceU64(const std::string &s, const char *pat, unsigned long long val)
virtual void endLuminosityBlock(const edm::LuminosityBlock &l, const edm::EventSetup &) override
virtual void beginRun(const edm::Run &r, const edm::EventSetup &) override
virtual void respondToOpenInputFile(const edm::FileBlock &) override
IgProfModule(const edm::ParameterSet &ps)
virtual void beginLuminosityBlock(const edm::LuminosityBlock &l, const edm::EventSetup &) override
virtual void beginJob() override