trace - Using Tracepoints in GDB to track how often code is executed -


i want count how function or line of code executed during test run. idea set tracepoint using gdb @ line , count how tracepoint hit. can tell me if/how can achieved. functions can find tracepoints take snapshots of registers or save values of variables. think answer might related passcount value, don't know how implement want.

if more info or detail needed, please let me know,

thanks, dave

below question/answer provides nice trick count. think solve problem without ambiguity.
hth!


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -