1 #include "../interface/ProfilingTools.h"
10 #include <boost/unordered_map.hpp>
20 fprintf(stderr,
"Dumped to %s\n", buff); fflush(stderr);
24 if (
void *sym = dlsym(0,
"igprof_dump_now")) {
26 fprintf(stderr,
"IgProf dump hook enabled. Do kill -USR2 %d to request a dump.\n",
int(getpid())); fflush(stderr);
28 fprintf(stderr,
"Not being profiled by IgProf. The command you should use to profile this is:\n");
29 fprintf(stderr,
" igprof -mp -z -t combine combine datacard [options]\n\n");
47 for (boost::unordered_map<const char *, PerfCounter>::const_iterator it =
perfCounters_.begin(), ed =
perfCounters_.end(); it != ed; ++it) {
48 fprintf(stderr,
"%-40s: %g\n", it->first, it->second.get());
53 namespace runtimedef {
54 boost::unordered_map<const char *, std::pair<int,int> >
defines_;
56 int get(
const char *
name) {
58 if (ret.second == 0) {
64 int get(
const std::string &
name) {
boost::unordered_map< const char *, std::pair< int, int > > defines_
boost::unordered_map< std::string, int > definesByString_
void set(const std::string &name, int value)
set the flag, with a run-time name