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

Method findLibraryByAddress

src/profiler.cpp:274–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274CodeCache* Profiler::findLibraryByAddress(const void* address) {
275 const int native_lib_count = _native_libs.count();
276 for (int i = 0; i < native_lib_count; i++) {
277 if (_native_libs[i]->contains(address)) {
278 return _native_libs[i];
279 }
280 }
281 return NULL;
282}
283
284const char* Profiler::findNativeMethod(const void* address) {
285 CodeCache* lib = findLibraryByAddress(address);

Callers 8

detectNestedMallocFunction · 0.80
initializeMethod · 0.80
getThreadStateMethod · 0.80
setupSignalHandlersMethod · 0.80
initializeMethod · 0.80
walkDwarfMethod · 0.80
walkVMMethod · 0.80
initMethod · 0.80

Calls 2

countMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected