Created
March 19, 2020 10:39
-
-
Save niner/8ebb8c6a1052a319d50f9212759d85c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/vm/moar/HLL/Backend.nqp b/src/vm/moar/HLL/Backend.nqp | |
index 098e8a30c..479297251 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