2020-05-03

ifeq ("$(LIBLEAKTRACER_SUPPORT)","1")
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../libleaktracer/libleaktracer/include
LOCAL_SRC_FILES += ../libleaktracer/libleaktracer/src/MemoryTrace.cpp \
../libleaktracer/libleaktracer/src/AllocationHandlers.cpp 
LOCAL_CFLAGS += -D__LIBLEAKTRACER_SUPPORT__ -DALLOCATION_STACK_DEPTH=15 -D__DUMP_LEAK_STACK__
endif


#ifdef __LIBLEAKTRACER_SUPPORT__
    leaktracer::MemoryTrace::GetInstance().startMonitoringAllThreads();
#endif
#ifdef __LIBLEAKTRACER_SUPPORT__
    leaktracer::MemoryTrace::GetInstance().stopAllMonitoring();
    leaktracer::MemoryTrace::GetInstance().writeLeaksToFile("/sdcard/leaktracer.log");
#ifdef __DUMP_LEAK_STACK__ 
    leaktracer::MemoryTrace::GetInstance().writeLeakStackToFile("/sdcard/leaktracer.stack");
#endif
#endif
# LeakTracer report diff_utc_mono=1571027951.014398
leak, time=74452.071857, stack=0xbe920 0xbf4e0 0x3e4fe 0x3e684 0x60dce 0x10cee2 0x10dbf8 0xc298e 0xc29e2 0xe4e48 0xea2d4 0xea92c 0x988b6 0x9df52 0x67b64, size=56, data=...............e.[INlQ.S..7.Lk/f.YUO..%..v..GY.p.|
leak, time=74451.807234, stack=0xbe920 0xbf4e0 0x1fa94a 0x1fa996 0x1fac40 0x3ab30 0x4b6c4, size=54, data=)...)......./storage/emulated/0/iReader/books/zyep
leak, time=74452.269602, stack=0xbe920 0xbf4e0 0x3834a 0x5d84c 0x36eea 0xacf54 0x9bb6c 0x9e216 0x67b64 0x4ae4e, size=16, data=..x..@..........
leak, time=74451.545085, stack=0xbe920 0xbf4e0 0x7cad4 0x6aeda 0x6bd86 0x6be40 0x66356, size=72, data=..x.....G...;.........@=...?.....Bz..Bz..C[.D.'..B
leak, time=74452.803454, stack=0xbe920 0xbf690 0xb3134 0x65c60 0x4e138, size=1160, data=

你可能感兴趣的:(2020-05-03)