MCPcopy Create free account
hub / github.com/RicardoJiang/android-performance / hookMemory

Function hookMemory

memory-hook/src/main/cpp/MemoryHook.cpp:101–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void hookMemory() {
102 LOG("hookMemory");
103 bytehook_hook_all(nullptr, "malloc", (void *) malloc_proxy,
104 nullptr,
105 nullptr);
106 bytehook_hook_all(nullptr, "free", (void *) free_proxy,
107 nullptr,
108 nullptr);
109}
110
111extern "C" JNIEXPORT void JNICALL
112Java_com_zj_android_memory_hook_MemoryNativeLib_hookMemory(

Calls

no outgoing calls

Tested by

no test coverage detected