|
From: Elie S. <eli...@gm...> - 2011-02-28 21:09:15
|
Hello, I am trying to use the dump-instr to debug my code and know how many times each assembly line is executing, I am using callgrind with the dump-instr=yes flag, yet in the output I get both the taken and not path seperately. Is there any way or any tool or any other flag that would make them joined? e.g. consider the following abstract code: jne .L2 add sub .L2: add sub If the jump is taken 4 times and not taken once,in counting the number of times each asm executed I get the following: 5 1 1 1 1 4 4 is there a way to get: 5 1 1 5 5 __________ Information from ESET NOD32 Antivirus, version of virus signature database 5690 (20101209) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com |
|
From: Josef W. <Jos...@gm...> - 2011-03-01 16:19:23
|
On Monday 28 February 2011, Elie Shaccour wrote: > consider the following abstract code: > jne .L2 > add > sub > > .L2: > add > sub > > If the jump is taken 4 times and not taken once,in counting the number of > times each asm executed I get the following: > 5 > 1 > 1 > 1 > 1 > 4 > 4 > > is there a way to get: > 5 > 1 > 1 > 5 > 5 In the callgrind output, the first output on each line will be the instruction address. By summing up the numbers for each instruction address you should come up with what you want. KCachegrind does the same. Or do I miss something? |