GPROF(1) GPROF(1) gprof - gprof [ -[abcDhilLrsTvwxyz] ] [ -[ABCeEfFJnNOpPqQRStZ][name] ] [ -I dirs ] [ -d[num] ] [ -k from/to ] [ -m min-count ] [ -R map_file ] [ -t table-length ] [ --[no-]annotated-source[=name] ] [ --[no-]exec-counts[=name] ] [ --[no-]flat-profile[=name] ] [ --[no-]graph[=name] ] [ --[no-]time=name] [ --all-lines ] [ --brief ] [ --debug[=level] ] [ --function-ordering ] [ --file-ordering map_file ] [ --directory-path=dirs ] [ --display-unused-functions ] [ --file-format=name ] [ --file-info ] [ --help ] [ --line ] [ --inline-file-names ] [ --min-count=n ] [ --no-static ] [ --print-path ] [ --separate-files ] [ --static-call-graph ] [ --sum ] [ --table-length=len ] [ --traditional ] [ --version ] [ --width=n ] [ --ignore-non-functions ] [ --demangle[=STYLE] ] [ --no-demangle ] [--external-symbol-table=name] [ image-file ] [ profile-file ... ] "gprof" C Pascal Fortran77. . ( gmon.out) -pg "cc" "pc" "f77". -pg . "Gprof" ( "a.out") gmon.out. "gprof" . "Gprof" . . . . . . . . . . "gprof". symspec . symspecs . (-p -q) . "-A[symspec]" "--annotated-source[=symspec]" -A "gprof" . symspec . "-b" "--brief" -b "gprof" . . "-B" -B "gprof" . "-C[symspec]" "--exec-counts[=symspec]" -C "gprof" . symspec . -l -C . "-i" "--file-info" -i "gprof" () . . "-I dirs" "--directory-path=dirs" -I . GPROF_PATH . . "-J[symspec]" "--no-annotated-source[=symspec]" -J "gprof" . symspec "gprof" . "-L" "--print-path" . -L "gprof" . "-p[symspec]" "--flat-profile[=symspec]" -p "gprof" . symspec . "-P[symspec]" "--no-flat-profile[=symspec]" -P "gprof" . symspec "gprof" . "-q[symspec]" "--graph[=symspec]" -q "gprof" . symspec . "-Q[symspec]" "--no-graph[=symspec]" -Q "gprof" . symspec "gprof" . "-t" "--table-length=num" -t num . 10. "-y" "--separate-files" . "gprof" . path/filename filename-ann. filename-ann filename "gprof" filename.ann ( .ann). "-Z[symspec]" "--no-exec-counts[=symspec]" -Z "gprof" . symspec . "-r" "--function-ordering" --function-ordering "gprof" . (paging) tlb (cache) . . "-R map_file" "--file-ordering map_file" --file-ordering "gprof" .o . tlb . -a . map_file . "nm". c-parse.o:00000000 T yyparse c-parse.o:00000004 C yyerrflag c-lang.o:00000000 T maybe_objc_method_name c-lang.o:00000000 T print_lang_statistics c-lang.o:00000000 T recognize_objc_keyword c-decl.o:00000000 T print_lang_identifier c-decl.o:00000000 T print_lang_type ... map_file "nm" "nm --extern-only --defined-only -v --print-file-name program-name". "-T" "--traditional" -T "gprof" BSD "". "-w width" "--width=width" width. . "-x" "--all-lines" . . . -a "tcov". "--demangle[=style]" "--no-demangle" (demangle) C++ . . "--no-demangle" . . . "-a" "--no-static" -a "gprof" (). ( // .) . . "-c" "--static-call-graph" -c . . . . 0. "-D" "--ignore-non-functions" -D "gprof" . (Solaris HPUX ). "-k from/to" -k symspec from symspec to. "-l" "--line" -l . "gcc". "gcc" "gcov" . . "gprof" . "--inline-file-names" "gprof" . -L. "-m num" "--min-count=num" . num . "-nsymspec" "--time=symspec" -n "gprof" symspec. "-Nsymspec" "--no-time=symspec" -n "gprof" symspec. "-Sfilename" "--external-symbol-table=filename" -S "gprof" /proc/kallsyms ( "a.out"). . "-z" "--display-unused-functions" -z "gprof" . -c . "-d[num]" "--debug[=num]" -d num . num . "-h" "--help" -h . "-Oname" "--file-format=name" . auto () bsd 4.4bsd magic prof ( ). "-s" "--sum" -s "gprof" gmon.sum "gprof". gmon.sum gmon.sum. "gprof" -s gmon.sum. "-v" "--version" -v "gprof" . symspecs. "-e function_name" -e function "gprof" function_name (...) . [not printed]. -e function_name -e. "-E function_name" "-E function" "-e" ( ) . -E function_name -E. "-f function_name" -f function "gprof" function_name (...). -f function_name -f. "-F function_name" -F function "-f" (...) . -F function_name -F. -F -E. "a.out" . "gmon.out" . "gmon.sum" . . . . . (signal catchers) ( ). . "exit"(2) gmon.out. monitor(3) profil(2) cc(1) prof(1) Info gprof. "An Execution Profiler for Modular Programs" S. Graham P. Kessler M. McKusick Software - Practice and Experience 13 671-685 1983. "gprof: A Call Graph Execution Profiler" S. Graham P. Kessler M. McKusick Proceedings of the SIGPLAN '82 Symposium on Compiler Construction SIGPLAN Notices 17 6 120-126 1982. (c) 1988-2026 . / (GNU Free Documentation License) 1.3 . "GNU Free Documentation License". 3 . . : . binutils-2.46 9 2026 GPROF(1)