]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Callgrind: On zeroing costs, also set call counters to zero.
authorJosef Weidendorfer <Josef.Weidendorfer@gmx.de>
Tue, 11 Aug 2009 20:53:57 +0000 (20:53 +0000)
committerJosef Weidendorfer <Josef.Weidendorfer@gmx.de>
Tue, 11 Aug 2009 20:53:57 +0000 (20:53 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10781

callgrind/main.c

index c1ec141dfae8f40e862222495051a6ed56c56ee2..b1b5fe52a6b0a3873f32813c60dbe30a457b2ae4 100644 (file)
@@ -993,6 +993,7 @@ static void zero_thread_cost(thread_info* t)
     CLG_(copy_cost)( CLG_(sets).full, 
                    CLG_(current_call_stack).entry[i].enter_cost,
                    CLG_(current_state).cost );
+    CLG_(current_call_stack).entry[i].jcc->call_counter = 0;
   }
 
   CLG_(forall_bbccs)(CLG_(zero_bbcc));