Linux application profiling

前端 未结 6 2169
醉酒成梦
醉酒成梦 2020-12-12 17:40

I need some means of recording the performance of an application on a Linux machine. I won\'t have an IDE.

Ideally, I need an app that will attach to a process and l

6条回答
  •  被撕碎了的回忆
    2020-12-12 18:10

    If you are looking for things to do to possibly speed up the program, you need stackshots. A simple way to do this is to use the pstack utility, or lsstack if you can get it.

    You can do better than gprof. If you want to use an official profiling tool, you want something that samples the call stack on wall-clock time and presents line-level cost, such as Oprofile or RotateRight/Zoom.

提交回复
热议问题