about summary refs log tree commit diff stats
path: root/026call.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-05-28 23:42:54 -0700
committerKartik K. Agaram <vc@akkartik.com>2017-05-28 23:57:19 -0700
commitb2f699e14f02ba503c7a70afc3e9b749ac61f3d7 (patch)
tree1c584a99e16e4159ab694aefcd3c0210cd653183 /026call.cc
parent5987486862b8c989452bc62d359168a5686b462e (diff)
downloadmu-b2f699e14f02ba503c7a70afc3e9b749ac61f3d7.tar.gz
3888 - beginnings of a profiler
Time to make my ad hoc commented out code fragments a first-class feature.
Diffstat (limited to '026call.cc')
-rw-r--r--026call.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/026call.cc b/026call.cc
index 81012350..15e44d35 100644
--- a/026call.cc
+++ b/026call.cc
@@ -79,6 +79,11 @@ int& current_step_index() {
   assert(!Current_routine->calls.empty());
   return current_call().running_step_index;
 }
+:(replace{} "recipe_ordinal currently_running_recipe()")
+recipe_ordinal currently_running_recipe() {
+  assert(!Current_routine->calls.empty());
+  return current_call().running_recipe;
+}
 :(replace{} "const string& current_recipe_name()")
 const string& current_recipe_name() {
   assert(!Current_routine->calls.empty());