Linux application profiling

前端 未结 6 2155
醉酒成梦
醉酒成梦 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 17:54

    Have you looked into gprof? You need to compile the code with the -pg option, which instruments the code. After that you can run the program and use gprof to see the results.

    https://en.wikipedia.org/wiki/Gprof

提交回复
热议问题