Bureaucrats, cc_docs_admin, cc_staff
337
edits
Line 16: | Line 16: | ||
=== What is Gprof ? === | === What is Gprof ? === | ||
[https://sourceware.org/binutils/docs/gprof/ Gprof] is a profiling software which collects information and statistics on your code. Generally, it searches for functions and subroutines in your program and insert timing instructions for each one. Then executing such modified program creates a raw data file which can be interpreted by Gprof and turned into profiling statistics. | [https://sourceware.org/binutils/docs/gprof/ Gprof] is a profiling software which collects information and statistics on your code. Generally, it searches for functions and subroutines in your program and insert timing instructions for each one. Then executing such modified program creates a raw data file which can be interpreted by Gprof and turned into profiling statistics. | ||
[https://sourceware.org/binutils/docs/gprof/ Gprof] comes with the GNU compiler (such as GCC or GFORTRAN) and installed on most of the Compute Canada machines. | |||
=== Preparing your application === | |||
==== Switch to GNU compiler ==== | |||
==Valgrind== | ==Valgrind== |