Comments on How to install and use profiling tool Gprof on Linux

If you are a programmer, who writes code in C, Pascal, or Fortran77 programming language and uses Linux as the development platform, you'll be glad to know that there exists a powerful tool through which you can check the performance of your code - the tool in question is Gprof. In this tutorial, we'll be discussing the details of how you can download, install, and use this tool.

3 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Taimoor Hassan

I have repeated same procedure with my code using gprof but each time in text file is zero inspite of calling function many time

By: John

Great article! I dipped my toe because a gprof analysis was part of a class assignment . I had to develop the assignment code remotely (not inside the University Linux environment). The platform is a Raspberry P1 4, with a Ubuntu 20.04 Linux OS i(n order to assure 64-bit operation.)

The only hitch was unmasking gprof to the OS. That required removing and reinstalling binutils. Then it was step by step as this article describes. Everything went like clockwork.

Thanks for a good job!

By: Akbar

Great article. Very easy to grasp.

Thanks!