Documentation on Heap snapshot in observatory

47 views
Skip to first unread message

Alan Frye

unread,
Nov 9, 2016, 10:47:01 AM11/9/16
to Dart VM Observatory Discuss
I am looking for some documentation that explains the items on the heap snapshot screen, to make sure I understand what I am seeing. I found a page on the Allocation Profile but not the heap snapshot. 

John Mccutchan

unread,
Nov 10, 2016, 10:28:53 AM11/10/16
to Alan Frye, Dart VM Observatory Discuss, rma...@google.com
+Ryan Macnak can help here.

John

On Wed, Nov 9, 2016 at 7:47 AM Alan Frye <alf...@gmail.com> wrote:
I am looking for some documentation that explains the items on the heap snapshot screen, to make sure I understand what I am seeing. I found a page on the Allocation Profile but not the heap snapshot. 

--
You received this message because you are subscribed to the Google Groups "Dart VM Observatory Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to observatory-dis...@dartlang.org.

Alan Frye

unread,
Nov 10, 2016, 11:40:50 AM11/10/16
to Dart VM Observatory Discuss, alf...@gmail.com, rma...@google.com
Thanks John! 

I am trying to understand the difference in incoming and outgoing references
To unsubscribe from this group and stop receiving emails from it, send an email to observatory-discuss+unsub...@dartlang.org.

Ryan Macnak

unread,
Nov 10, 2016, 12:28:53 PM11/10/16
to Alan Frye, Dart VM Observatory Discuss
The heap snapshot shows a dominator tree and a summary of references by class. For the dominator tree, you might find the documentation on the equivalent tool in DevTools helpful. For the reference summary, consider the heap of the following program

class A { var x; }
class B { var x; }
class C { }

var a = new A();
var b = new B();
var c = new C();
a.x = b;
b.x = c;

if we look in the summary at class B, it would say there is 1 instance of B, with 1 incoming reference from an A and 1 outgoing reference to a C.

To unsubscribe from this group and stop receiving emails from it, send an email to observatory-discuss+unsubscribe...@dartlang.org.
Reply all
Reply to author
Forward
0 new messages