Skip to content

Instantly share code, notes, and snippets.

@niner
Created March 19, 2020 10:39
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 niner/8ebb8c6a1052a319d50f9212759d85c4 to your computer and use it in GitHub Desktop.
Save niner/8ebb8c6a1052a319d50f9212759d85c4 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 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