about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-08-14 18:59:34 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-08-14 18:59:34 -0700
commita6306a5de3e502ff384acbccb80fc74a4412979c (patch)
tree02ce188f565fc945a8c3538c9fa58abff3d2c59a
parent578327f1827dce727e726320a97b4b7e39a9afb2 (diff)
downloadmu-a6306a5de3e502ff384acbccb80fc74a4412979c.tar.gz
1997
-rw-r--r--020run.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/020run.cc b/020run.cc
index 8469e4da..3478f5d2 100644
--- a/020run.cc
+++ b/020run.cc
@@ -150,6 +150,7 @@ if (!Run_tests) {
 //?   Trace_stream->collect_layer.insert("app"); //? 1
   transform_all();
   recipe_ordinal r = Recipe_ordinal[string("main")];
+  atexit(dump_profile);
   if (r) run(r);
 //?   dump_memory(); //? 1
   teardown();
@@ -161,8 +162,6 @@ void dump_profile() {
     cerr << p->first << ": " << p->second << '\n';
   }
 }
-:(before "End One-time Setup")
-atexit(dump_profile);
 
 :(code)
 void cleanup_main() {