Skip to content

Instantly share code, notes, and snippets.

@Altai-man
Last active August 2, 2019 15:10
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 Altai-man/b6e6c40b81fdef59c1f26246dadf4460 to your computer and use it in GitHub Desktop.
Save Altai-man/b6e6c40b81fdef59c1f26246dadf4460 to your computer and use it in GitHub Desktop.
> summary
Total heap size: 149,628,330 bytes
Total objects: 582,894
Total type objects: 4,103
Total STables (type tables): 4,104
Total frames: 5,235
Total references: 2,358,252
> top objects by count
Name Count
========================== =======
BOOTInt 180,813
NQPArray 101,583
VMString 82,096
BOOTCode 35,939
BOOTNum 32,447
BOOTStaticFrame 26,844
BOOTStr 25,519
Parameter 16,805
Scalar 13,652
BOOTHash 9,084
Signature 9,031
BOOTIntArray 7,574
Method 6,493
<anon MVMStaticFrameSpesh> 5,172
Str 4,798
> top objects by size
Name Total Bytes
========================== ================
Buf 86,787,954 bytes
NQPArray 9,748,336 bytes
BOOTStaticFrame 7,933,342 bytes
VMString 6,524,758 bytes
BOOTHash 6,014,496 bytes
BOOTInt 5,786,016 bytes
SCRef 4,494,768 bytes
NFAType 2,823,520 bytes
BOOTCode 2,587,608 bytes
<anon MVMSpeshLog> 2,359,776 bytes
Parameter 2,285,480 bytes
BOOTCompUnit 1,225,034 bytes
BOOTNum 1,038,304 bytes
Method 986,936 bytes
<anon MVMStaticFrameSpesh> 934,056 bytes
> top frames by count
Name Count
================================================================== =====
moarop_mapper (QAST.nqp:1764) 631
new_type (Metamodel.nqp:1305) 250
new_type (Metamodel.nqp:2865) 140
<anon> (947BDAB9F96E0E5FCCB383124F923A6BF6F8D76B (NativeCall):258) 99
load-precompilation-file (Loader.pm6:42) 73
ctxsave (Handle.pm6:9) 73
load-handle-for-path (PrecompilationRepository.pm6:67) 73
<anon> (PrecompilationRepository.pm6:146) 70
<mainline> (NQPCORE.setting:1) 52
<mainline> (BOOTSTRAP.nqp:1) 45
<anon> (BOOTSTRAP.nqp:1382) 44
<anon> (BOOTSTRAP.moarvm:1) 44
run-under-recursion-list (Async.pm6:207) 34
protect-or-queue-on-recursion (Async.pm6:146) 32
<anon> (traits.pm6:402) 31
> top frames by size
Name Total Bytes
================================================================== =============
moarop_mapper (QAST.nqp:1764) 136,296 bytes
<unit> (CORE.setting:1) 49,536 bytes
new_type (Metamodel.nqp:1305) 48,000 bytes
<anon> (BOOTSTRAP.moarvm:1) 37,664 bytes
<mainline> (NQPCORE.setting:1) 34,528 bytes
<mainline> (BOOTSTRAP.nqp:1) 32,760 bytes
new_type (Metamodel.nqp:2865) 25,760 bytes
<anon> (947BDAB9F96E0E5FCCB383124F923A6BF6F8D76B (NativeCall):258) 25,344 bytes
load-handle-for-path (PrecompilationRepository.pm6:67) 19,856 bytes
load-precompilation-file (Loader.pm6:42) 19,272 bytes
ctxsave (Handle.pm6:9) 15,184 bytes
<anon> (PrecompilationRepository.pm6:146) 14,000 bytes
protect-or-queue-on-recursion (Async.pm6:146) 11,216 bytes
run-supply-code (Supply.pm6:2025) 10,936 bytes
<anon> (BOOTSTRAP.nqp:1382) 9,504 bytes
>
> summary
Total heap size: 1,574,133,296 bytes
Total objects: 582,965
Total type objects: 4,103
Total STables (type tables): 4,104
Total frames: 5,236
Total references: 2,360,776
> summary
Total heap size: 1,574,133,296 bytes
Total objects: 582,965
Total type objects: 4,103
Total STables (type tables): 4,104
Total frames: 5,236
Total references: 2,360,776
> top objects by count
Name Count
========================== =======
BOOTInt 180,813
NQPArray 101,583
VMString 82,146
BOOTCode 35,943
BOOTNum 32,447
BOOTStaticFrame 26,844
BOOTStr 25,519
Parameter 16,805
Scalar 13,654
BOOTHash 9,084
Signature 9,031
BOOTIntArray 7,576
Method 6,493
<anon MVMStaticFrameSpesh> 5,173
Str 4,799
> top objects by size
Name Total Bytes
========================== ===================
Buf 1,511,286,642 bytes
NQPArray 9,748,336 bytes
BOOTStaticFrame 7,933,427 bytes
VMString 6,528,975 bytes
BOOTHash 6,014,496 bytes
BOOTInt 5,786,016 bytes
SCRef 4,494,768 bytes
NFAType 2,823,520 bytes
BOOTCode 2,587,896 bytes
<anon MVMSpeshLog> 2,359,776 bytes
Parameter 2,285,480 bytes
BOOTCompUnit 1,225,034 bytes
BOOTNum 1,038,304 bytes
Method 986,936 bytes
<anon MVMStaticFrameSpesh> 934,128 bytes
> top frames by count
Name Count
================================================================== =====
moarop_mapper (QAST.nqp:1764) 631
new_type (Metamodel.nqp:1305) 250
new_type (Metamodel.nqp:2865) 140
<anon> (947BDAB9F96E0E5FCCB383124F923A6BF6F8D76B (NativeCall):258) 99
load-precompilation-file (Loader.pm6:42) 73
ctxsave (Handle.pm6:9) 73
load-handle-for-path (PrecompilationRepository.pm6:67) 73
<anon> (PrecompilationRepository.pm6:146) 70
<mainline> (NQPCORE.setting:1) 52
<mainline> (BOOTSTRAP.nqp:1) 45
<anon> (BOOTSTRAP.nqp:1382) 44
<anon> (BOOTSTRAP.moarvm:1) 44
run-under-recursion-list (Async.pm6:207) 34
protect-or-queue-on-recursion (Async.pm6:146) 32
<anon> (traits.pm6:402) 31
> top frames by size
Name Total Bytes
================================================================== =============
moarop_mapper (QAST.nqp:1764) 136,296 bytes
<unit> (CORE.setting:1) 49,536 bytes
new_type (Metamodel.nqp:1305) 48,000 bytes
<anon> (BOOTSTRAP.moarvm:1) 37,664 bytes
<mainline> (NQPCORE.setting:1) 34,528 bytes
<mainline> (BOOTSTRAP.nqp:1) 32,760 bytes
new_type (Metamodel.nqp:2865) 25,760 bytes
<anon> (947BDAB9F96E0E5FCCB383124F923A6BF6F8D76B (NativeCall):258) 25,344 bytes
load-handle-for-path (PrecompilationRepository.pm6:67) 19,856 bytes
load-precompilation-file (Loader.pm6:42) 19,272 bytes
ctxsave (Handle.pm6:9) 15,184 bytes
<anon> (PrecompilationRepository.pm6:146) 14,000 bytes
protect-or-queue-on-recursion (Async.pm6:146) 11,216 bytes
run-supply-code (Supply.pm6:2025) 10,936 bytes
<anon> (BOOTSTRAP.nqp:1382) 9,504 bytes
>
> find 1000 objects type="Buf"
Object Id Description
========= ===========
70804 Buf
74879 Buf
102953 Buf
106880 Buf
106882 Buf
118621 Buf
122463 Buf
122992 Buf
125661 Buf
129426 Buf
129510 Buf
147271 Buf
> show 70804
Buf (Object)
--[ <STable> ]-->
Buf (STable) (34330)
> show 74879
Buf (Object)
--[ <STable> ]-->
Buf (STable) (34330)
> show 102953
Buf (Object)
--[ <STable> ]-->
Buf (STable) (34330)
> show 106880
Buf (Object)
--[ <STable> ]-->
Buf (STable) (34330)
> show 106882
Buf (Object)
--[ <STable> ]-->
Buf (STable) (34330)
> show 118621
Buf (Object)
--[ <STable> ]-->
Buf (STable) (34330)
> show 122463
Buf (Object)
--[ <STable> ]-->
Buf (STable) (34330)
> show 122992
Buf (Object)
--[ <STable> ]-->
Buf (STable) (34330)
> show 125661
Buf (Object)
--[ <STable> ]-->
Buf (STable) (34330)
> show 129426
Buf (Object)
--[ <STable> ]-->
Buf (STable) (34330)
> show 129510
Buf (Object)
--[ <STable> ]-->
Buf (STable) (34330)
> show 147271
Buf (Object)
--[ <STable> ]-->
Buf (STable) (34330)
> find 1000 objects type="Buf"
Object Id Description
========= ===========
70804 Buf
74879 Buf
102953 Buf
106880 Buf
106882 Buf
118621 Buf
122463 Buf
122992 Buf
125661 Buf
129426 Buf
129510 Buf
147271 Buf
> path 70804
Root (0)
--[ C Stack Roots ]-->
C Stack Roots (27)
--[ Index 2 ]-->
BOOTArray (Object) (596020)
--[ Index 2450 ]-->
BOOTStaticFrame (Object) (74106)
--[ Static code object ]-->
BOOTCode (Object) (74108)
--[ Unknown ]-->
<anon> (4CC285A8AB160824E5A42DC6EF776B610FCEB2F9 (HTTP::HPACK):333) (Frame) (74110)
--[ Outer ]-->
decode-literal-header-field (4CC285A8AB160824E5A42DC6EF776B610FCEB2F9 (HTTP::HPACK):328) (Frame) (74111)
--[ $packed ]-->
Buf (Object) (70804)
> path 74879
Root (0)
--[ C Stack Roots ]-->
C Stack Roots (27)
--[ Index 2 ]-->
BOOTArray (Object) (596020)
--[ Index 1370 ]-->
BOOTStaticFrame (Object) (74598)
--[ Static code object ]-->
BOOTCode (Object) (74223)
--[ Unknown ]-->
encode-headers (4CC285A8AB160824E5A42DC6EF776B610FCEB2F9 (HTTP::HPACK):381) (Frame) (74825)
--[ $result ]-->
Scalar (Object) (74846)
--[ Unknown ]-->
Buf (Object) (74879)
> path 102953
Root (0)
--[ Thread Roots ]-->
Thread Roots (16)
--[ Current interpreter compilation unit ]-->
BOOTCompUnit (Object) (102292)
--[ Code refs array entry ]-->
BOOTCode (Object) (102606)
--[ Unknown ]-->
payload (FrameParser.pm6 (Cro::HTTP2::FrameParser):161) (Frame) (102948)
--[ $data ]-->
Scalar (Object) (102952)
--[ Unknown ]-->
Buf (Object) (102953)
> path 106880
Root (0)
--[ Thread Roots ]-->
Thread Roots (16)
--[ Last handler result ]-->
Buf (Object) (106880)
> path 106882
Root (0)
--[ Inter-generational Roots ]-->
Inter-generational Roots (17)
--[ Index 10 ]-->
<anon> (FrameParser.pm6 (Cro::HTTP2::FrameParser):31) (Frame) (106876)
--[ $data ]-->
Scalar (Object) (106881)
--[ Unknown ]-->
Buf (Object) (106882)
> path 118621
Root (0)
--[ C Stack Roots ]-->
C Stack Roots (27)
--[ Index 2 ]-->
BOOTArray (Object) (596020)
--[ Index 1872 ]-->
BOOTStaticFrame (Object) (117276)
--[ Static code object ]-->
BOOTCode (Object) (69936)
--[ Unknown ]-->
<anon> (GeneralParser.pm6 (Cro::HTTP2::GeneralParser):25) (Frame) (117277)
--[ %streams ]-->
Hash (Object) (117280)
--[ Unknown ]-->
BOOTHash (Object) (117304)
--[ Unknown ]-->
Scalar (Object) (117305)
--[ Unknown ]-->
Stream (Object) (117306)
--[ Unknown ]-->
Scalar (Object) (117307)
--[ Unknown ]-->
Buf (Object) (118621)
> path 122463
Root (0)
--[ Thread Roots ]-->
Thread Roots (4)
--[ Current interpreter compilation unit ]-->
BOOTCompUnit (Object) (45)
--[ Code refs array entry ]-->
BOOTCode (Object) (134170)
--[ Unknown ]-->
<anon> (Promise.pm6:244) (Frame) (134172)
--[ Caller ]-->
sink (Promise.pm6:243) (Frame) (134173)
--[ Caller ]-->
<anon> (FrameParser.pm6 (Cro::HTTP2::FrameParser):62) (Frame) (122445)
--[ Caller ]-->
<anon> (FrameParser.pm6 (Cro::HTTP2::FrameParser):61) (Frame) (122451)
--[ Caller ]-->
<anon> (FrameParser.pm6 (Cro::HTTP2::FrameParser):45) (Frame) (122453)
--[ Caller ]-->
<anon> (FrameParser.pm6 (Cro::HTTP2::FrameParser):31) (Frame) (122455)
--[ $data ]-->
Scalar (Object) (122458)
--[ Unknown ]-->
Buf (Object) (122463)
> path 122992
Root (0)
--[ Thread Roots ]-->
Thread Roots (8)
--[ last invoked staticframe ]-->
BOOTStaticFrame (Object) (108099)
--[ Compilation Unit ]-->
BOOTCompUnit (Object) (95510)
--[ Code refs array entry ]-->
BOOTCode (Object) (95855)
--[ Unknown ]-->
build-protocol-list (A4ECA701FE96A8456AEB83692D6B3C55AAFC964C (IO::Socket::Async::SSL):770) (Frame) (122989)
--[ $list ]-->
Scalar (Object) (122990)
--[ Unknown ]-->
Buf (Object) (122992)
> path 125661
Root (0)
--[ Thread Roots ]-->
Thread Roots (4)
--[ Specialization log ]-->
<anon MVMSpeshLog> (Object) (596052)
--[ Invoked staticframe entry ]-->
BOOTStaticFrame (Object) (113608)
--[ Static code object ]-->
BOOTCode (Object) (95832)
--[ Unknown ]-->
<anon> (A4ECA701FE96A8456AEB83692D6B3C55AAFC964C (IO::Socket::Async::SSL):692) (Frame) (125759)
--[ Outer ]-->
flush-read-bio (A4ECA701FE96A8456AEB83692D6B3C55AAFC964C (IO::Socket::Async::SSL):690) (Frame) (125656)
--[ $buf ]-->
Scalar (Object) (125660)
--[ Unknown ]-->
Buf (Object) (125661)
> path 129426
Root (0)
--[ C Stack Roots ]-->
C Stack Roots (27)
--[ Index 2 ]-->
BOOTArray (Object) (596020)
--[ Index 1251 ]-->
BOOTStaticFrame (Object) (122388)
--[ Compilation Unit ]-->
BOOTCompUnit (Object) (67109)
--[ Code refs array entry ]-->
BOOTCode (Object) (67226)
--[ Unknown ]-->
<anon> (FrameSerializer.pm6 (Cro::HTTP2::FrameSerializer):136) (Frame) (129522)
--[ Outer ]-->
serializer (FrameSerializer.pm6 (Cro::HTTP2::FrameSerializer):130) (Frame) (129523)
--[ $buf ]-->
Buf (Object) (129426)
> path 129510
Root (0)
--[ C Stack Roots ]-->
C Stack Roots (27)
--[ Index 2 ]-->
BOOTArray (Object) (596020)
--[ Index 1944 ]-->
BOOTStaticFrame (Object) (69004)
--[ Static code object ]-->
BOOTCode (Object) (67236)
--[ Unknown ]-->
<anon> (FrameSerializer.pm6 (Cro::HTTP2::FrameSerializer):162) (Frame) (129474)
--[ Outer ]-->
<anon> (FrameSerializer.pm6 (Cro::HTTP2::FrameSerializer):161) (Frame) (129475)
--[ Outer ]-->
serializer (FrameSerializer.pm6 (Cro::HTTP2::FrameSerializer):130) (Frame) (129485)
--[ $buf ]-->
Buf (Object) (129510)
> path 147271
Root (0)
--[ Thread Roots ]-->
Thread Roots (4)
--[ Current interpreter compilation unit ]-->
BOOTCompUnit (Object) (45)
--[ Code refs array entry ]-->
BOOTCode (Object) (104967)
--[ Unknown ]-->
<anon> (Buf.pm6:676) (Frame) (34503)
--[ Caller ]-->
<anon> (Metamodel.nqp:2734) (Frame) (34276)
--[ Outer ]-->
specialize (Metamodel.nqp:2728) (Frame) (147250)
--[ Caller ]-->
specialize (Metamodel.nqp:2958) (Frame) (147252)
--[ Caller ]-->
compose (Metamodel.nqp:3350) (Frame) (147255)
--[ Caller ]-->
make_pun (Metamodel.nqp:1825) (Frame) (147256)
--[ Caller ]-->
find_method (Metamodel.nqp:1853) (Frame) (147257)
--[ Caller ]-->
build-protocol-list (A4ECA701FE96A8456AEB83692D6B3C55AAFC964C (IO::Socket::Async::SSL):770) (Frame) (147261)
--[ $list ]-->
Scalar (Object) (147269)
--[ Unknown ]-->
Buf (Object) (147271)
>
> incidents 106880
got 596443 collectables to go through
going through cols once Instant:0.01415823
going through cols twice Instant:3.54979708
going through cols three times Instant:5.0984708
done Instant:9.4441635
1678944..^1678947
Thread Roots (16)
<anon> (FrameParser.pm6 (Cro::HTTP2::FrameParser):31) (Frame) (106876)
Scalar (Object) (122704)
>
> show 106880
Buf (Object)
56 + 1511251968 bytes
--[ <STable> ]-->
Buf (STable) (34330)
> path 106880
Root (0)
--[ Thread Roots ]-->
Thread Roots (16)
--[ Last handler result ]-->
Buf (Object) (106880)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment