Debugging and profiling: Difference between revisions

Jump to navigation Jump to search
Line 15: Line 15:
==GNU Profiler (gprof) ==
==GNU Profiler (gprof) ==
=== What is Gprof ? ===
=== What is 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.


==Valgrind==
==Valgrind==
Bureaucrats, cc_docs_admin, cc_staff
337

edits

Navigation menu