Skip to content

Instantly share code, notes, and snippets.

@niner
Created October 24, 2018 19:46
Show Gist options
  • Save niner/b03b60b8af77d562131977fa3cb2c5e1 to your computer and use it in GitHub Desktop.
Save niner/b03b60b8af77d562131977fa3cb2c5e1 to your computer and use it in GitHub Desktop.
diff --git a/src/vm/moar/HLL/Backend.nqp b/src/vm/moar/HLL/Backend.nqp
index 60204d592..b00c8f287 100644
--- a/src/vm/moar/HLL/Backend.nqp
+++ b/src/vm/moar/HLL/Backend.nqp
@@ -51,9 +51,9 @@ class HLL::Backend::MoarVM {
method run_profiled($what, $kind, $filename?) {
$kind := 'instrumented' unless $kind;
- my @END := nqp::gethllsym('perl6', '@END_PHASERS');
- @END.push(-> { self.dump_profile_data($prof_end_sub(), $kind, $filename) })
- if nqp::defined(@END);
+ #my @END := nqp::gethllsym('perl6', '@END_PHASERS');
+ #@END.push(-> { note("dumping in END"); self.dump_profile_data($prof_end_sub(), $kind, $filename) })
+ # if nqp::defined(@END);
self.ensure_prof_routines();
@@ -67,10 +67,10 @@ class HLL::Backend::MoarVM {
}
my $res := $what();
- unless nqp::defined(@END) {
+ #unless nqp::defined(@END) {
my $data := $prof_end_sub();
self.dump_profile_data($data, $kind, $filename);
- }
+ #}
$res;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment