32 bool& dummyThreadReportingFcn() {
33 static thread_local
bool s_running =
true;
37 bool dummyStopThreadReportingFcn() {
38 auto&
t = dummyThreadReportingFcn();
44 void dummyStartThreadReportingFcn() { dummyThreadReportingFcn() =
true; }
46 bool stopThreadReporting() {
48 void*
fcn = dlsym(RTLD_DEFAULT,
"alloc_monitor_stop_thread_reporting");
53 return &::dummyStopThreadReportingFcn;
58 void startThreadReporting() {
60 void*
fcn = dlsym(RTLD_DEFAULT,
"alloc_monitor_start_thread_reporting");
65 return &::dummyStartThreadReportingFcn;
88 void*
stop = dlsym(RTLD_DEFAULT,
"alloc_monitor_stop");
89 if (
stop !=
nullptr) {
101 return dlsym(RTLD_DEFAULT,
"alloc_monitor_start") !=
nullptr;
106 void*
start = dlsym(RTLD_DEFAULT,
"alloc_monitor_start");
107 if (
start ==
nullptr) {
109 <<
"The libPerfToolsAllocMonitorPreload.so was not LD_PRELOADed into the job";
121 if (
it->get() == iMonitor) {
134 m->allocCalled(iRequested, iActual, iPtr);
139 m->deallocCalled(iActual, iPtr);
bool alloc_monitor_stop_thread_reporting()
void alloc_monitor_stop()
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
void alloc_monitor_start_thread_reporting()
void fcn(int &, double *, double &, double *, int)
void alloc_monitor_start()