| 564 | } |
| 565 | |
| 566 | void* 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 | |
| 576 | void Profiler::switchLibraryTrap(bool enable) { |
| 577 | if (_dlopen_entry != NULL) { |
nothing calls this directly
no test coverage detected