Skip to content

Instantly share code, notes, and snippets.

@lizmat
Created May 29, 2019 20:23
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 lizmat/99c0246aff5ee0abf0579e8905e91106 to your computer and use it in GitHub Desktop.
Save lizmat/99c0246aff5ee0abf0579e8905e91106 to your computer and use it in GitHub Desktop.
example profile
$ 6mp 'sub a() { my $a = 42 }; .say for profile( { a for ^10000 } ).my_callees'
Unnamed callee was called 1 time
at -e line 1
from thread #1.
Was jitted and had an On-Stack-Replacement.
Called at 0 microsecs and ran for 5649 microsecs.
Did 12455 allocations (of which 1 (0.01%) was done here).
Unnamed callee was called 10000 times
at -e line 1
from -e line 1.
6399 calls were inlined (63.99%).
7533 calls were jitted (75.33%).
First called at 21 microsecs and ran for 4760 microsecs (avg. 0.48)
of which 1230 microsecs here (avg. 0.12).
Did 12452 allocations (of which 2452 (19.69%) were done here).
'a' was called 10000 times
at -e line 1
from -e line 1.
7533 calls were inlined (75.33%).
8119 calls were jitted (81.19%).
First called at 30 microsecs and ran for 3530 microsecs (avg. 0.35)
of which 2610 microsecs here (avg. 0.26).
Did 10000 allocations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment