Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created March 23, 2016 18:08
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/35fb78323d715dda93fc to your computer and use it in GitHub Desktop.
Save jnthn/35fb78323d715dda93fc to your computer and use it in GitHub Desktop.
C:\consulting\perl6\app-moarvm-heapanalyzer>perl6-m -Ilib bin\moar-ha rak-heap
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
Wait a moment, while I finish loading the snapshot...
Total heap size: 28,727,776 bytes
Total objects: 372,884
Total type objects: 2,248
Total STables (type tables): 2,249
Total frames: 2,523
> top frames
Name Total Bytes
======================================= =============
moarop_mapper (QAST.nqp:1821) 366,704 bytes
add_core_moarop_mapping (QAST.nqp:1794) 285,616 bytes
<anon> (m-CORE.setting:21414) 44,000 bytes
<unit> (m-CORE.setting:1) 38,760 bytes
<anon> (m-CORE.setting:2371) 30,624 bytes
new_type (m-Metamodel.nqp:1241) 20,672 bytes
new_type (m-Metamodel.nqp:2538) 17,168 bytes
add_hll_moarop_mapping (QAST.nqp:1806) 16,008 bytes
<anon> (m-CORE.setting:506) 14,760 bytes
<anon> (m-BOOTSTRAP.nqp:1708) 13,760 bytes
<mainline> (NQPCORE.setting:1) 7,768 bytes
<mainline> (QAST.nqp:1) 6,600 bytes
<mainline> (m-BOOTSTRAP.nqp:1) 6,392 bytes
<anon> (m-BOOTSTRAP.nqp:1069) 6,384 bytes
<anon> (Grammar.nqp:3697) 5,784 bytes
> top objects
Name Total Bytes
===================================== ===============
NQPArray 7,184,816 bytes
BOOTInt 4,639,680 bytes
BOOTStaticFrame 4,195,168 bytes
VMString 2,804,344 bytes
BOOTCode 1,486,872 bytes
<anon> 1,331,744 bytes
Parameter 847,552 bytes
BOOTNum 827,904 bytes
BOOTStr 546,368 bytes
Perl6::Metamodel::ContainerDescriptor 367,848 bytes
BOOTArray 344,056 bytes
QAST::Op 262,656 bytes
<anon> 255,032 bytes
Method 238,792 bytes
Signature 228,096 bytes
> top objects by count
Name Count
===================================== =======
BOOTInt 144,990
NQPArray 74,270
VMString 34,440
BOOTNum 25,872
BOOTCode 20,651
BOOTStr 17,074
BOOTStaticFrame 16,916
Parameter 6,232
Perl6::Metamodel::ContainerDescriptor 5,109
BOOTHash 4,775
Signature 3,168
<anon> 2,848
QAST::Op 2,736
BOOTIntArray 1,725
Method 1,571
> exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment