From: Josef Weidendorfer Date: Tue, 11 Aug 2009 20:53:57 +0000 (+0000) Subject: Callgrind: On zeroing costs, also set call counters to zero. X-Git-Tag: svn/VALGRIND_3_5_0~69 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ea40ea135afcc5cf9eac4d5f8f0d53d377a244de;p=thirdparty%2Fvalgrind.git Callgrind: On zeroing costs, also set call counters to zero. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10781 --- diff --git a/callgrind/main.c b/callgrind/main.c index c1ec141dfa..b1b5fe52a6 100644 --- a/callgrind/main.c +++ b/callgrind/main.c @@ -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));