#include <string>
Go to the source code of this file.
Classes | |
class | PerfCounter |
Namespaces | |
namespace | runtimedef |
Functions | |
int | runtimedef::get (const char *name) |
int | runtimedef::get (const std::string &name) |
void | runtimedef::set (const std::string &name, int value) |
set the flag, with a run-time name | |
bool | setupIgProfDumpHook () |
bool setupIgProfDumpHook | ( | ) |
Definition at line 23 of file ProfilingTools.cc.
References igProfDumpNow(), and igProfRequestDump_.
{ if (void *sym = dlsym(0, "igprof_dump_now")) { igProfRequestDump_ = __extension__ (void(*)(const char *)) sym; fprintf(stderr, "IgProf dump hook enabled. Do kill -USR2 %d to request a dump.\n", int(getpid())); fflush(stderr); } else { fprintf(stderr, "Not being profiled by IgProf. The command you should use to profile this is:\n"); fprintf(stderr, " igprof -mp -z -t combine combine datacard [options]\n\n"); fflush(stderr); return false; } signal(SIGUSR2,igProfDumpNow); return true; }