30 bool& threadRunning() {
31 static thread_local
bool s_running =
true;
46 threadRunning() =
true;
53 void* stop = dlsym(RTLD_DEFAULT,
"alloc_monitor_stop");
54 if (stop !=
nullptr) {
58 threadRunning() =
false;
66 return dlsym(RTLD_DEFAULT,
"alloc_monitor_start") !=
nullptr;
71 void*
start = dlsym(RTLD_DEFAULT,
"alloc_monitor_start");
72 if (
start ==
nullptr) {
74 <<
"The libPerfToolsAllocMonitorPreload.so was not LD_PRELOADed into the job";
85 if (
it->get() == iMonitor) {
98 m->allocCalled(iRequested, iActual);
103 m->deallocCalled(iActual);
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()