diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-05-28 23:42:54 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-05-28 23:57:19 -0700 |
commit | b2f699e14f02ba503c7a70afc3e9b749ac61f3d7 (patch) | |
tree | 1c584a99e16e4159ab694aefcd3c0210cd653183 /026call.cc | |
parent | 5987486862b8c989452bc62d359168a5686b462e (diff) | |
download | mu-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.cc | 5 |
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()); |