KwaiAppTeam / KOOM

KOOM is an OOM killer on mobile platform by Kwai.
Other
3.15k stars 420 forks source link

hprof文件剪裁问题 #276

Open zhengzhong1 opened 4 months ago

zhengzhong1 commented 4 months ago

image

文档中描述使用如下api进行快照剪裁,看调用逻辑这个只是触发了dump的逻辑。没看到实际的效果,test.hprof 还是很大。如上面图片。

这个是什么原因?

ForkStripHeapDumper.getInstance().dump(this.getExternalCacheDir().getAbsolutePath() + File.separator + "test.hprof")