MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / dlopen_hook

Method dlopen_hook

src/profiler.cpp:566–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564}
565
566void* Profiler::dlopen_hook(const char* filename, int flags) {
567 void* result = dlopen(filename, flags);
568 if (result != NULL) {
569 instance()->updateSymbols(false);
570 MallocTracer::installHooks();
571 NativeLockTracer::installHooks();
572 }
573 return result;
574}
575
576void Profiler::switchLibraryTrap(bool enable) {
577 if (_dlopen_entry != NULL) {

Callers

nothing calls this directly

Calls 2

dlopenFunction · 0.85
updateSymbolsMethod · 0.80

Tested by

no test coverage detected