From e317da73b02d2d0e4d62584c93ed31126bb545ca Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 6 Apr 2017 09:51:00 -0700 Subject: 3814 Initial baby steps at trying to understand why rendering to screen is so slow in Mu. I'd forgotten about this old "poor man's profiler" I'd added back in 2015. --- 020run.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/020run.cc b/020run.cc index e760deaa..39168588 100644 --- a/020run.cc +++ b/020run.cc @@ -65,6 +65,7 @@ void run(const recipe_ordinal r) { void run_current_routine() { while (should_continue_running(Current_routine)) { // beware: may modify Current_routine // Running One Instruction +//? Instructions_running[current_recipe_name()]++; if (current_instruction().is_label) { ++current_step_index(); continue; } trace(Initial_callstack_depth + Trace_stream->callstack_depth, "run") << to_string(current_instruction()) << end(); if (get_or_insert(Memory, 0) != 0) { -- cgit 1.4.1-2-gfad0