Dalvik的堆大小和堆基地 [英] Dalvik heap size and heap base

查看:142
本文介绍了Dalvik的堆大小和堆基地的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道我怎么能确定堆基址和堆大小,

I wonder how can I determine the heap base address and heap size,

我希望能够转储我的应用程序堆,

I would like to be able to dump my application heap,

有没有办法做到这一点?

Is there any way to do it ?

另外,当我试图读取进程内存映射通过/ proc / PID /地图,我没有看到
在[堆]部分,为什么?

Plus when I am trying to read the process memory map via /proc/pid/maps, I don't see the [heap] section, why ?

请问DVM分配使用mmap匿名的地区?

Does the DVM allocate anonymous regions using mmap ?

如果是的,我怎么可以跟踪他们?

If yes how can I track them ?

推荐答案

在linux的API,你可以使用showmap倾倒堆大小的信息,以及部分的 / ashmem / Dalvik的堆的。
和Android DDMS为我们提供了两种工具进行分析Java堆和本机堆。 Java堆的是Android HPROF,和本机堆是本地堆分析。

In linux API, you can use showmap to dump the heap size information, and the section is /ashmem/dalvik-heap . And the Android DDMS gives us two tools for analysis the Java heap and Native heap. Java Heap is Android Hprof, and the native heap is the native heap analysis.

这篇关于Dalvik的堆大小和堆基地的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆