查看压测曲线图,其实内存的情况整体看还好。
但是不能看total,要看实际的走势, 1 5 9 代表测试第几轮,可以发现在前几轮测试中一直在增长, 突然下去是因为进程被kill了
根据压测步骤挨个筛选泄漏的地方
结果:
操作步骤: 打开 camera, 切换到前置虚化模式, 静止, 查看内存一直在增长且无回落
lilei@rj-lilei0 MINGW64 /
$ adb shell dumpsys meminfo com.sec.android.app.camera | grep "Graphics\|Java\|Native\|TOTAL\|EGL mtrack"
Native Heap 49010 48988 0 38 87248 84507 2740
EGL mtrack 11332 11332 0 0
TOTAL 187808 170151 12748 62 99741 90856 8884
Java Heap: 8544
Native Heap: 48988
Graphics: 31771
TOTAL: 187808 TOTAL SWAP PSS: 62
lilei@rj-lilei0 MINGW64 /
$ adb shell dumpsys meminfo com.sec.android.app.camera | grep "Graphics\|Java\|Native\|TOTAL\|EGL mtrack"
Native Heap 52458 52436 0 38 90464 87711 2752
EGL mtrack 11696 11696 0 0
TOTAL 192300 174635 12748 62 103555 94658 8896
Java Heap: 9204
Native Heap: 52436
Graphics: 32135
TOTAL: 192300 TOTAL SWAP PSS: 62
lilei@rj-lilei0 MINGW64 /
$ adb shell dumpsys meminfo com.sec.android.app.camera | grep "Graphics\|Java\|Native\|TOTAL\|EGL mtrack"
Native Heap 54434 54412 0 38 92400 89375 3024
EGL mtrack 11471 11471 0 0
TOTAL 194271 176602 12748 62 105834 96665 9168
Java Heap: 9424
Native Heap: 54412
Graphics: 31910
TOTAL: 194271 TOTAL SWAP PSS: 62
lilei&#