Skip to content

Instantly share code, notes, and snippets.

@jnthn
Last active March 23, 2016 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnthn/f67379ff234861729f34 to your computer and use it in GitHub Desktop.
Save jnthn/f67379ff234861729f34 to your computer and use it in GitHub Desktop.
C:\consulting\rakudo>perl6-m --profile=heap -e "for ^20 { EVAL 'my class ABC { }' }"
Recording heap snapshot
Recording completed
Writing heap snapshot to heap-snapshot-1458770262.66355
C:\consulting\perl6\app-moarvm-heapanalyzer>perl6-m -Ilib bin\moar-ha heap-snapshot-1458770262.66355
Considering the snapshot...looks reasonable!
This file contains 1 heap snapshot. I've selected it for you.
Type `help` for available commands, or `exit` to exit.
> summary
Total heap size: 30,536,980 bytes
Total objects: 399,064
Total type objects: 2,286
Total STables (type tables): 2,287
Total frames: 2,609
> find stables type="ABC"
Object Id Description
========= ===========
42840 ABC
42845 ABC
45288 ABC
64994 ABC
71335 ABC
76824 ABC
78599 ABC
82535 ABC
86105 ABC
146765 ABC
404166 ABC
> path 42840
Root
--[ Thread Roots ]-->
Thread Roots
--[ Compiling serialization contexts ]-->
BOOTArray (Object)
--[ Unknown ]-->
SCRef (Object)
--[ Unknown ]-->
ABC (STable)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment