Skip to content
Permalink
Browse files

Move Profile to MoarVM::Profiler

  • Loading branch information...
lizmat committed May 23, 2019
1 parent 3910042 commit 28ce83a06ff7569434a5f1bc294efc7d59b96b4c
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/{Profile.pm6 → MoarVM/Profiler.pm6}
@@ -230,3 +230,12 @@ sub profile(&code --> Profile:D) is export {
code();
Profile.new(nqp::mvmendprofile)
}

sub foo() { for ^100000 { my $a = 42 } }
sub bar() { foo for ^3 }

use Data::Dump::Tree;

profile( { bar } );
#my $p = profile( { bar } );
#ddt $p.thread(1).all_allocations;

0 comments on commit 28ce83a

Please sign in to comment.
You can’t perform that action at this time.