Profiling a Program: Where Does It Spend Its Time?
1 Introduction to Profiling
2 Compiling a Program for Profiling
3 Executing the Program
4 gprof
Command Summary
5 Interpreting gprof
's Output
6 Inaccuracy of gprof
Output
7 Answers to Common Questions
8 Incompatibilities with Unix gprof
9 Details of Profiling
Appendix A GNU Free Documentation License
This manual describes the gnu profiler, gprof
, and how you
can use it to determine which parts of a program are taking most of the
execution time. We assume that you know how to write, compile, and
execute programs. gnu
gprof
was written by Jay Fenlason.
This manual is for gprof
(GNU Binutils)
version 2.19.
This document is distributed under the terms of the GNU Free Documentation License. A copy of the license is included in the section entitled “GNU Free Documentation License”.
The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.