`gprof` time spent in particular lines of code

后端 未结 3 1691
鱼传尺愫
鱼传尺愫 2021-02-08 23:38

I\'ve been using the gprof profiler in conjunction with g++.

I have a function in my code which encapsulates several sections of behaviour whic

3条回答
  •  盖世英雄少女心
    2021-02-08 23:47

    Here's a useful resource for you: gprof line by line profiling.

    With older versions of the gcc compiler, the gprof -l argument specified line by line profiling.

    However, newer versions of gcc use the gcov tool instead of gprof to display line by line profiling information.

提交回复
热议问题