Gprof manual
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 Compiling: How to compile your program for profiling. gprof is a type of tool called a profiler. Profiling allows you to learn where your program spent its time and which functions called which other functions while it was executing. This information can show you which pieces of your program are slower than you expected and might be candidates for rewriting to make your program execute faster. "Gprof" calculates the amount of time spent in each routine. Next, these times are propagated along the edges of the call graph. Cycles are discovered, and calls into a cycle are made to share the time of the cycle.
gprof - Displays profiling information. nlmconv - Converts object code into an NLM. nm - Lists symbols from object files. objcopy - Copies and translates object files. objdump - Displays information from object files. ranlib - Generates an index to the contents of an archive. readelf - Displays information from any ELF format object file. Parser for GNU gprof output. AQtimeTable (name, fields) AQtimeParser (stream) PstatsParser (\*filename) Parse Python profiling statistics saved with te pstats module. Theme ([bgcolor, mincolor, maxcolor, ]) DotWriter (fp) Writer for the DOT language. Main: Main program. gprof gives timing information you can use along with the information you get from gcov. A GNU Manual (b) The FSF's Back-Cover Text is: You have freedom to copy and modify this GNU Manual, like GNU software. Copies published by the Free Software Foundation raise funds for GNU development. COLOPHON top This page is part of.
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 document is distributed under the terms of the GNU Free Documentation License. gprof reads the given object file (the default is www.doorway.ru) and establishes the relation between its symbol table and the call graph profile from www.doorway.ru If more than one profile file is specified, the gprof output shows the sum of the profile information in the given profile files. gprof Quick-Start Guide. Before you can profile your program, you must first recompile it specifically for profiling. To do so, add the -pg argument to the compiler's command line. This creates an executable called kruse from the source file www.doorway.ru with debugging and profiling turned on. Another way to do this is to add -pg to the CFLAGS line.
0コメント