Android Studio HPROF参考树元素颜色代表什么? [英] What do the Android Studio HPROF reference tree element colours represent?

查看:127
本文介绍了Android Studio HPROF参考树元素颜色代表什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以告诉我Android Studio中HPROF Viewer中的粗体,蓝色1和红色1位置到底是什么意思吗?

Can someone tell me what does bold, blue one and red one positions in HPROF Viewer in Android Studio means exactly ?

我在参考树"面板中询问了一个.

I ask about one in Reference Tree panel.

最诚挚的问候.

推荐答案

我找不到关于此的任何文档,但是通过查看一些堆转储,它们似乎是这样的:

I can't find any documentation on this, but from looking through a few heap dumps this is what they seem to be:

  • blue-最接近顶部的实例的统治者右窗格.
  • bold-GC根,例如,应该收集 not 的深度为0的实例. 此答案具有有关GC根目录是什么的更多信息,并且
  • blue - The closest dominator of the instance selected in the top-right pane.
  • bold - A GC root, eg an instance with depth 0 that should not be collected. This answer has more information on what a GC root is, and this answer lists the types of things that are roots.
  • red - I haven't actually seen these, but I would guess it indicates an instance that should be garbage collected, but hasn't been yet.

再次,这里的免责声明是这可能都是错误的,并且我实际上找不到任何官方信息,但这似乎与我在使用堆探查器时的观察结果相符.

Again, a disclaimer here is that this could all be wrong and I can't actually find any official information about this, but it does seem to match up with my observations when using the heap profiler.

这篇关于Android Studio HPROF参考树元素颜色代表什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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