diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-11-06 00:11:19 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-11-06 00:11:19 -0800 |
commit | c34a067564e2005a590bfd8730c90fed51cbb2c2 (patch) | |
tree | 3b01fd67587303ca65fd10d6b3fd0956169b33e4 | |
parent | ba6621b50748f0bcff98b150905f6a8c9337e620 (diff) | |
download | mu-c34a067564e2005a590bfd8730c90fed51cbb2c2.tar.gz |
4115
-rw-r--r-- | 036refcount.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/036refcount.cc b/036refcount.cc index ab5618aa..e04261bd 100644 --- a/036refcount.cc +++ b/036refcount.cc @@ -1051,9 +1051,11 @@ if (Run_profiler) { initial_num_refcount_updates = Total_refcount_updates; } :(before "End Non-primitive Call(caller_frame)") -Num_refcount_updates[caller_frame.running_recipe][caller_frame.running_step_index] - += (Total_refcount_updates - initial_num_refcount_updates); -initial_num_refcount_updates = Total_refcount_updates; +if (Run_profiler) { + Num_refcount_updates[caller_frame.running_recipe][caller_frame.running_step_index] + += (Total_refcount_updates - initial_num_refcount_updates); + initial_num_refcount_updates = Total_refcount_updates; +} :(after "Begin Return") if (Run_profiler) { Num_refcount_updates[current_call().running_recipe][current_call().running_step_index] |