Tracing/profiling instructions

前端 未结 5 1850
渐次进展
渐次进展 2020-12-28 20:46

I\'d like to statistically profile my C code at the instruction level. I need to know how many additions, multiplications, divisions, etc I\'m performing.

This is no

5条回答
  •  我在风中等你
    2020-12-28 21:07

    The valgrind tool cachegrind can be used to get execution counts of each line in the compiled assembly (the Ir value in the first column).

提交回复
热议问题