ããã¯ã³ãã³ã powerpc64-linux-gnu-gprof ã§ãUbuntu OnlineãFedora OnlineãWindows ãªã³ã©ã€ã³ ãšãã¥ã¬ãŒã¿ãŒãMAC OS ãªã³ã©ã€ã³ ãšãã¥ã¬ãŒã¿ãŒãªã©ã®è€æ°ã®ç¡æãªã³ã©ã€ã³ ã¯ãŒã¯ã¹ããŒã·ã§ã³ã® XNUMX ã€ã䜿çšããŠãOnWorks ã®ç¡æãã¹ãã£ã³ã° ãããã€ããŒã§å®è¡ã§ããŸãã
ããã°ã©ã ïŒ
NAME
gprof-ã³ãŒã«ã°ã©ããããã¡ã€ã«ããŒã¿ã衚瀺ããŸã
SYNOPSIS
gprof [-[abcDhilLrsTvwxyz]] [-[ACeEfFJnNOpPqQZ] [å]]
[ -ç§ Dirs ] [ -NS[NUM]] [-k ããã® ]
[ -NS æå°ã«ãŠã³ã ] [ -NS ããããã¡ã€ã« ] [ -NS ããŒãã«ã®é·ã ]
[-[no-]泚éä»ããœãŒã¹[=å]]
[-[no-] exec-counts [=å]]
[-[no-] flat-profile [=å]] [-[no-] graph [=å]]
[-[no-] time =å] [--all-lines] [--brief]
[--debug [=ã¬ãã«]] [--function-ordering]
[--file-ordering ããããã¡ã€ã« ] [--directory-path =Dirs ]
[--display-unused-functions] [--file-format =å ]
[--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 [=ã¹ã¿ã€ã«]] [--no-demangle]
[--external-symbol-table = name]
[ ç»åãã¡ã€ã« ] [ ãããã¡ã€ã«ãã¡ã€ã« ...]
DESCRIPTION
ãgprofãã¯ãCãPascalããŸãã¯Fortran77ããã°ã©ã ã®å®è¡ãããã¡ã€ã«ãçæããŸãã ã®å¹æ
åŒã³åºãããã«ãŒãã³ã¯ãååŒã³åºãå ã®ãããã¡ã€ã«ã«çµã¿èŸŒãŸããŠããŸãã ãããã¡ã€ã«ããŒã¿ãååŸãããŸã
ã³ãŒã«ã°ã©ããããã¡ã€ã«ãã¡ã€ã«ããïŒgmon.out ããã©ã«ãïŒããã¯ã
ã§ã³ã³ãã€ã« -pg ãccãããpcãããf77ãã®ãªãã·ã§ã³ã NS -pg ãªãã·ã§ã³ããªã³ã¯ããŠããŸã
ãããã¡ã€ãªã³ã°çšã«ã³ã³ãã€ã«ãããã©ã€ãã©ãªã«ãŒãã³ã®ããŒãžã§ã³ã ãGprofãã¯äžãããããã®ãèªã¿ãŸã
ãªããžã§ã¯ããã¡ã€ã«ïŒããã©ã«ãã¯ãa.outãïŒã§ããããã®ã·ã³ãã«ããŒãã«éã®é¢ä¿ã確ç«ããŸã
ããã³ããã®ã³ãŒã«ã°ã©ããããã¡ã€ã« gmon.outã è€æ°ã®ãããã¡ã€ã«ãã¡ã€ã«ãæå®ãããŠããå Žåã
ãgprofãåºåã«ã¯ãæå®ããããããã¡ã€ã«ãã¡ã€ã«å ã®ãããã¡ã€ã«æ å ±ã®åèšã衚瀺ãããŸãã
gcc 2.95.xãŸãã¯3.0ã䜿çšããŠãã€ããªãã³ã³ãã€ã«ããå Žåã¯ã
-fprofile-arcs ã³ãŒã«ã°ã©ããé©åã«è¡šç€ºããããã«ãã³ã³ãã€ã«ã³ãã³ãã©ã€ã³ã«ç§»åããŸã
gmon.outã«ä¿åãããŸãã
ãGprofãã¯ãåã«ãŒãã³ã§è²»ããããæéãèšç®ããŸãã 次ã«ããããã®æéã¯
ã³ãŒã«ã°ã©ãã®ãšããžã«æ²¿ã£ãŠäŒæãããŸãã ãµã€ã¯ã«ãçºèŠããã
ãµã€ã¯ã«ã¯ããµã€ã¯ã«ã®æéãå ±æããããã«äœæãããŸãã
åæããããã€ãã®åœ¢åŒã®åºåãå©çšã§ããŸãã
ãã® ãã©ãã㪠ãããã£ãŒã« ããã°ã©ã ãåé¢æ°ã«è²»ãããæéãšãã®æ°ã瀺ããŸã
ãã®é¢æ°ãåŒã³åºãããåæ°ã ã©ã®é¢æ°ãã»ãšãã©ãççŒããããåã«ç¥ãããå Žå
ãµã€ã¯ã«ãããã¯ããã«ç°¡æœã«è¿°ã¹ãããŠããŸãã
ãã® ã³ãŒã« ã°ã©ã åé¢æ°ã«ã€ããŠãã©ã®é¢æ°ããããåŒã³åºããããä»ã®ã©ã®é¢æ°ããããåŒã³åºãããã瀺ããŸã
ãããåŒã°ããäœåã ã«è²»ããããæéã®èŠç©ããããããŸã
åé¢æ°ã®ãµãã«ãŒãã³ã ããã¯ããªããããããšãããããããªãå Žæã瀺åããããšãã§ããŸã
æéããããé¢æ°åŒã³åºããæé€ããŸãã
ã㮠泚éä»ã source ãªã¹ãã¯ãããã°ã©ã ã®ãœãŒã¹ã³ãŒãã®ã³ããŒã§ããã
ããã°ã©ã ã®åè¡ãå®è¡ãããåæ°ã
OPTIONS
ãããã®ãªãã·ã§ã³ã¯ããgprofããçæããåºå圢åŒãæå®ããŸãã
ãããã®ãªãã·ã§ã³ã®å€ãã¯ãªãã·ã§ã³ãåããŸã ã·ã³ã¹ãã㯠å«ããé¢æ°ãæå®ããããŸãã¯
é€å€ã ãããã®ãªãã·ã§ã³ã¯ãç°ãªãsymspecsã䜿çšããŠã次ã®ããã«è€æ°åæå®ã§ããŸãã
ã·ã³ãã«ã®ã»ãããå«ãããé€å€ããŸãã
ãããã®ãªãã·ã§ã³ã®ãããããæå®ãããšãããã©ã«ãïŒ-p -qïŒããã©ãããããã¡ã€ã«ãå°å·ããŸã
ãã¹ãŠã®é¢æ°ã®ã°ã©ãåæãåŒã³åºããŸãã
"-NS[symspec]ã
"--annotated-source [=symspec]ã
ãã® -A ãªãã·ã§ã³ãæå®ãããšããgprofãã¯æ³šéä»ãã®ãœãŒã¹ã³ãŒããåºåããŸãã ããã ã·ã³ã¹ãã㯠æå®ãããŠããã
äžèŽããã·ã³ãã«ã«å¯ŸããŠã®ã¿åºåãåºåããŸãã
"-NS"
" - ç°¡åã«"
Status -b ãªãã·ã§ã³ãæå®ãããŠããå Žåããgprofãã¯ã
è¡šã®ãã¹ãŠã®ãã£ãŒã«ãã®æå³ã説æããŸãã ããã¯ãæå³ããŠããå Žåã«äŸ¿å©ã§ã
åºåãå°å·ããããããŸãã¯å®£äŒæå¥ãèŠãã®ã«ããããããŠããã
"-NS[symspec]ã
"--exec-counts [=symspec]ã
ãã® -C ãªãã·ã§ã³ãæå®ãããšããgprofãã¯é¢æ°ã®éèšãšåæ°ãåºåããŸã
ãããããåŒã³åºãããŸããã ããã ã·ã³ã¹ãã㯠ãæå®ãããŠããå Žåã¯ãäžèŽããã·ã³ãã«ã«å¯ŸããŠã®ã¿éèšãåºåããŸãã
ãããã¡ã€ã«ããŒã¿ãã¡ã€ã«ã«åºæ¬ãããã¯ã«ãŠã³ãã¬ã³ãŒããå«ãŸããŠããå Žåã¯ã -l ãªãã·ã§ã³ã
ãšäžç·ã« -Cãåºæ¬ãããã¯ã®å®è¡ã«ãŠã³ããéèšãããŠè¡šç€ºãããŸãã
"-ç§"
"--file-info"
ãã® -i ãªãã·ã§ã³ãæå®ãããšããgprofãã«ãããã¡ã€ã«ããŒã¿ã«é¢ããèŠçŽæ å ±ã衚瀺ãããŸãã
ãã¡ã€ã«ãäœæããŠçµäºããŸãã ãã¹ãã°ã©ã ã®æ°ãã³ãŒã«ã°ã©ããããã³åºæ¬ãããã¯æ°
ã¬ã³ãŒãã衚瀺ãããŸãã
"-ç§ dirsã
"--directory-path =dirsã
ãã® -I ãªãã·ã§ã³ã¯ããœãŒã¹ãã¡ã€ã«ãæ€çŽ¢ããæ€çŽ¢ãã£ã¬ã¯ããªã®ãªã¹ããæå®ããŸãã
ç°å¢å€æ° GPROF_ãã¹ ãã®æ å ±ãäŒããããã«ã䜿çšã§ããŸãã äžå€
äž»ã«æ³šéä»ãã®ãœãŒã¹åºåçšã§ãã
"-NS[symspec]ã
"--no-annotated-source [=symspec]ã
ãã® -J ãªãã·ã§ã³ãæå®ãããšããgprofãã¯æ³šéä»ãã®ãœãŒã¹ã³ãŒããåºåããŸããã ããã ã·ã³ã¹ãã㯠is
æå®ãããšããgprofãã¯æ³šéä»ãã®ãœãŒã¹ãåºåããŸãããäžèŽããèšå·ã¯é€å€ããŸãã
ã-Lã
"--print-path"
éåžžããœãŒã¹ãã¡ã€ã«åã¯ãã¹ã³ã³ããŒãã³ããæå¶ãããç¶æ ã§å°å·ãããŸãã NS -L
ãªãã·ã§ã³ãæå®ãããšããgprofãã¯ãœãŒã¹ãã¡ã€ã«åã®ãã«ãã¹åãåºåããŸãã
ã€ã¡ãŒãžãã¡ã€ã«å ã®ã·ã³ããªãã¯ãããã°æ å ±ãã決å®ããã
ã³ã³ãã€ã©ãŒãåŒã³åºããããã£ã¬ã¯ããªãŒã
"-NS[symspec]ã
"--flat-profile [=symspec]ã
ãã® -p ãªãã·ã§ã³ãæå®ãããšããgprofãã¯ãã©ãããããã¡ã€ã«ãå°å·ããŸãã ããã ã·ã³ã¹ãã㯠æå®ãå°å·
äžèŽããã·ã³ãã«ã®ã¿ã®ãã©ãããããã¡ã€ã«ã
"-NS[symspec]ã
"--no-flat-profile [=symspec]ã
ãã® -P ãªãã·ã§ã³ãæå®ãããšããgprofãã¯ãã©ãããããã¡ã€ã«ã®å°å·ãæå¶ããŸãã ããã ã·ã³ã¹ãã㯠is
æå®ãããšããgprofãã¯ãã©ãããããã¡ã€ã«ãåºåããŸãããäžèŽããã·ã³ãã«ã¯é€å€ããŸãã
"-NS[symspec]ã
"--graph [=symspec]ã
ãã® -q ãªãã·ã§ã³ãæå®ãããšããgprofãã¯ã³ãŒã«ã°ã©ãåæãåºåããŸãã ããã ã·ã³ã¹ãã㯠is
æå®ãããå ŽåãäžèŽããã·ã³ãã«ãšãã®åã«å¯ŸããŠã®ã¿ã³ãŒã«ã°ã©ããå°å·ããŸãã
"-NS[symspec]ã
"--no-graph [=symspec]ã
ãã® -Q ãªãã·ã§ã³ãæå®ãããšããgprofãã¯ã³ãŒã«ã°ã©ãã®å°å·ãæå¶ããŸãã ããã ã·ã³ã¹ãã㯠is
æå®ãããšããgprofãã¯ã³ãŒã«ã°ã©ããåºåããŸãããäžèŽããèšå·ã¯é€å€ããŸãã
"-NS"
"--table-length =numã
ãã® -t ãªãã·ã§ã³ã¯ NUM ãªã¹ããããåãœãŒã¹ãã¡ã€ã«ã§æãã¢ã¯ãã£ããªãœãŒã¹è¡
ãœãŒã¹æ³šéãæå¹ã«ãªã£ãŠããå Žåã ããã©ã«ãã¯10ã§ãã
ã-yã
"--separate-files"
ãã®ãªãã·ã§ã³ã¯ã泚éä»ãã®ãœãŒã¹åºåã«ã®ã¿åœ±é¿ããŸãã éåžžããgprofãã¯æ³šéä»ãã§å°å·ããŸã
ãœãŒã¹ãã¡ã€ã«ãæšæºåºåã«ã ãã®ãªãã·ã§ã³ãæå®ãããŠããå Žåã
ååã®ä»ãããã¡ã€ã« ãã¹/ãã¡ã€ã«å ãã¡ã€ã«ã«çæãããŸã ãã¡ã€ã«å-annã åºç€ãšãªãå Žå
ãã¡ã€ã«ã·ã¹ãã ã¯åãæšãŠãããŸã ãã¡ã€ã«å-ann ãªãªãžãã«ãäžæžãããããã« ãã¡ã€ã«å,
ãgprofãã¯ããã¡ã€ã«ã«æ³šéä»ãã®ãœãŒã¹ãçæããŸã ãã¡ã€ã«å.ann 代ããã«ïŒãªãªãžãã«ã®å Žå
ãã¡ã€ã«åã«ã¯æ¡åŒµåãããããã®æ¡åŒµå㯠眮ãæã ã .ann).
"-Z [symspec]ã
"--no-exec-counts [=symspec]ã
ãã® -Z ãªãã·ã§ã³ã䜿çšãããšããgprofãã¯é¢æ°ã®éèšãšåæ°ãåºåããŸããã
ãããããåŒã³åºãããŸããã ããã ã·ã³ã¹ãã㯠ãæå®ãããŠããå Žåã¯ãéèšãåºåããŸãããäžèŽããèšå·ã¯é€å€ããŸãã
"-NS"
ã-é¢æ°ã®é åºä»ãã
ãã® -é¢æ°ã®é åº ãªãã·ã§ã³ãæå®ãããšããgprofãã¯ææ¡ãããé¢æ°ã®é åºãåºåããŸã
ãããã¡ã€ãªã³ã°ããŒã¿ã«åºã¥ãããã°ã©ã ã®å Žåã ãã®ãªãã·ã§ã³ã¯ã次ã®ãããªé åºãææ¡ããŸã
ãµããŒãããã·ã¹ãã ã§ã®ããã°ã©ã ã®ããŒãžã³ã°ãtlbãããã³ãã£ãã·ã¥ã®åäœãæ¹åãã
å®è¡å¯èœãã¡ã€ã«å ã®é¢æ°ã®ä»»æã®é åºã
ãªã³ã«ã«é¢æ°ãç¹å®ã®é åºã§é 眮ãããæ¹æ³ã®æ£ç¢ºãªè©³çŽ°
ã·ã¹ãã ã«äŸåãããã®ããã¥ã¢ã«ã®ç¯å²å€ã§ãã
"-NS map_file "
"-ãã¡ã€ã«ã®é åºä»ã map_file "
ãã® -ãã¡ã€ã«ã®é åº ãªãã·ã§ã³ãæå®ãããšããgprofãã¯ææ¡ããã.oãªã³ã¯è¡ã®é åºãåºåããŸã
ãããã¡ã€ãªã³ã°ããŒã¿ã«åºã¥ãããã°ã©ã ã®å Žåã ãã®ãªãã·ã§ã³ã¯ã次ã®ãããªé åºãææ¡ããŸã
ãµããŒããããŠããªãã·ã¹ãã ã§ã®ããã°ã©ã ã®ããŒãžã³ã°ãtlbãããã³ãã£ãã·ã¥ã®åäœãæ¹åãã
å®è¡å¯èœãã¡ã€ã«å ã®é¢æ°ã®ä»»æã®é åºã
ã®äœ¿çš -a ãã®ãªãã·ã§ã³ã§ã¯ãåŒæ°ã匷ããå§ãããŸãã
ãã® ããããã¡ã€ã« åŒæ°ã¯ããªããžã§ã¯ãã«é¢æ°åãæäŸãããã¡ã€ã«ãžã®ãã¹åã§ãã
ãã¡ã€ã«ãããã³ã°ã ãã¡ã€ã«ã®åœ¢åŒã¯ãããã°ã©ã ãnmãã®åºåã«äŒŒãŠããŸãã
c-parse.oïŒ00000000 T yyparse
c-parse.oïŒ00000004 C yyerrflag
c-lang.oïŒ00000000 Tmaybe_objc_method_name
c-lang.oïŒ00000000 T print_lang_statistics
c-lang.oïŒ00000000 Trecognize_objc_keyword
c-decl.oïŒ00000000 T print_lang_identifier
c-decl.oïŒ00000000 T print_lang_type
...
äœæããã«ã¯ ããããã¡ã€ã« GNU "nm"ã䜿çšããŠã "nm--extern-onlyã®ãããªã³ãã³ããå ¥åããŸã
--defined-only -v --print-file-nameprogram-name "ã
"-NS"
" - äŒçµ±ç"
ãã® -T ãªãã·ã§ã³ãæå®ãããšããgprofãã¯ãã®åºåããåŸæ¥ã®ãBSDã¹ã¿ã€ã«ã§åºåããŸãã
"-w å¹ "
"--width =å¹ "
åºåè¡ã®å¹ ãã«èšå®ããŸã å¹ ã çŸåšãé¢æ°ãå°å·ãããšãã«ã®ã¿äœ¿çšãããŸã
ã³ãŒã«ã°ã©ãã®äžéšã«ããã€ã³ããã¯ã¹ã
"-NS"
ã-å šè¡ã
ãã®ãªãã·ã§ã³ã¯ã泚éä»ãã®ãœãŒã¹åºåã«ã®ã¿åœ±é¿ããŸãã ããã©ã«ãã§ã¯ã
åºæ¬ãããã¯ã®å§ãŸãã«æ³šéãä»ããããŸãã ãã®ãªãã·ã§ã³ãæå®ãããšãã®ãã¹ãŠã®è¡ã
åºæ¬ãããã¯ã«ã¯ãæåã®è¡ã®æ³šéãç¹°ãè¿ãããšã«ãã£ãŠæ³šéãä»ããããŸãã ãã®
åäœã¯ãtcovãã®åäœã«äŒŒãŠããŸã -a.
"--demangle [=ã¹ã¿ã€ã«]"
ã-ããã³ã°ã«ãªãã
ãããã®ãªãã·ã§ã³ã¯ãå°å·æã«C ++ã·ã³ãã«åãããã³ã°ã«ãããã©ãããå¶åŸ¡ããŸã
åºåã ããã©ã«ãã§ã¯ãã·ã³ãã«ãããã³ã°ã«ããŸãã ã--no-demangleããªãã·ã§ã³ã䜿çšã§ããŸã
ãã¢ã³ã°ã«ããªãã«ããŸãã ã³ã³ãã€ã©ãç°ãªãã°ããã³ã°ãªã³ã°ã¹ã¿ã€ã«ãç°ãªããŸãã NS
ãªãã·ã§ã³ã®ããã³ã°ãªã³ã°ã¹ã¿ã€ã«åŒæ°ã䜿çšããŠãé©åãªããã³ã°ãªã³ã°ãéžæã§ããŸã
ã³ã³ãã€ã©ã®ã¹ã¿ã€ã«ã
åæ ãªãã·ã§ã³
"-NS"
ã-éçãªãã
ãã® -a ãªãã·ã§ã³ãæå®ãããšããgprofãã¯éçã«å®£èšãããïŒãã©ã€ããŒãïŒã®å°å·ãæå¶ããŸã
é¢æ°ã ïŒãããã¯ãååãã°ããŒãã«ãšããŠãªã¹ããããŠããªãé¢æ°ã§ããã
ããããå®çŸ©ããããã¡ã€ã«/é¢æ°/ãããã¯ã®å€åŽã«ã¯è¡šç€ºãããŸãããïŒ
ãããã®é¢æ°ãããããžã®/ããã®åŒã³åºããªã©ã¯ãã¹ãŠã次ã®é¢æ°ã«èµ·å ããŸãã
å®è¡å¯èœãã¡ã€ã«ã§ãã®çŽåã«ããŒããããŸããã ãã®ãªãã·ã§ã³ã¯äž¡æ¹ã«åœ±é¿ããŸã
ãã©ãããããã¡ã€ã«ãšã³ãŒã«ã°ã©ãã
"-NS"
"--static-call-graph"
ãã® -c ãªãã·ã§ã³ã䜿çšãããšãããã°ã©ã ã®ã³ãŒã«ã°ã©ãããã¥ãŒãªã¹ãã£ãã¯ã«ãã£ãŠæ¡åŒµãããŸãã
ããã¯ããªããžã§ã¯ããã¡ã€ã«ã®ããã¹ãã¹ããŒã¹ã調ã¹ãŠãé¢æ°åŒã³åºããèå¥ããŸãã
ãã€ããªãã·ã³ã³ãŒãã éåžžã®ã³ãŒã«ã°ã©ãã¬ã³ãŒãã¯æ¬¡ã®å Žåã«ã®ã¿çæããããã
é¢æ°ãå ¥åããããšããã®ãªãã·ã§ã³ã¯åŒã³åºãããå¯èœæ§ã®ããåãèå¥ããŸãã
ãããã決ããŠããã§ã¯ãããŸããã§ããã ãããã¡ã€ãªã³ã°ãæå¹ã«ããŠã³ã³ãã€ã«ãããŠããªãé¢æ°ã®åŒã³åºãã¯æ¬¡ã®ãšããã§ãã
ãŸããèå¥ãããŸãããã·ã³ãã«ããŒãã«ãšã³ããªãååšããå Žåã«éããŸãã ãžã®åŒã³åºã
åçã©ã€ãã©ãªã«ãŒãã³ã¯éåžžã ãã®ãªãã·ã§ã³ã§èŠã€ãããŸããã 芪ãŸãã¯åäŸ
ãã®ãã¥ãŒãªã¹ãã£ãã¯ãä»ããŠèå¥ããããã®ã¯ãã³ãŒã«ã°ã©ãã«æ¬¡ã®ã³ãŒã«ã«ãŠã³ãã§ç€ºãããŸãã 0.
"-NS"
ã--ignore-non-functionsã
ãã® -D ãªãã·ã§ã³ãæå®ãããšããgprofãã¯é¢æ°ã§ããããšãããã£ãŠããªãã·ã³ãã«ãç¡èŠããŸãã
ãã®ãªãã·ã§ã³ã¯ããµããŒããããŠããã·ã¹ãã ã§ããæ£ç¢ºãªãããã¡ã€ã«ããŒã¿ãæäŸããŸã
ïŒSolarisãHPUXãªã©ïŒã
"-k ããã®"
ãã® -k ãªãã·ã§ã³ã䜿çšãããšãäžèŽããã·ã³ãã«ããã¢ãŒã¯ãã³ãŒã«ã°ã©ãããåé€ã§ããŸã
ã·ã³ã¹ãã㯠from äžèŽããsymspecã« ããž.
ã-lã
" - ã©ã€ã³"
ãã® -l ãªãã·ã§ã³ã䜿çšãããšãè¡ããšã®ãããã¡ã€ãªã³ã°ãæå¹ã«ãªãããã¹ãã°ã©ã ã®ãããã次ã®ããã«ãªããŸãã
é¢æ°ã§ã¯ãªããåã ã®ãœãŒã¹ã³ãŒãè¡ã«èª²éãããŸãã ãã®æ©èœã®ã¿
ãgccãã³ã³ãã€ã©ã®å€ãããŒãžã§ã³ã§ã³ã³ãã€ã«ãããããã°ã©ã ã§åäœããŸãã æ°ããããŒãžã§ã³
ãgccãã®ã¯ã代ããã«ãgcovãããŒã«ã§åäœããããã«èšèšãããŠããŸãã
ããã°ã©ã ãåºæ¬ãããã¯ã«ãŠã³ããæå¹ã«ããŠã³ã³ãã€ã«ãããå Žåããã®ãªãã·ã§ã³ã
ã³ãŒãã®åè¡ãå®è¡ãããåæ°ãèå¥ããŸãã è¡ããšã®ãããã¡ã€ãªã³ã°äž
倧èŠæš¡ãªæ©èœã®ã©ãã§ããã°ã©ã ãæéãè²»ãããŠããããç¹å®ããã®ã«åœ¹ç«ã¡ãŸãã
ãgprofãã®å®è¡æéãå€§å¹ ã«å¢å ããçµ±èšãæ¡å€§ãããŸã
äžæ£ç¢ºãã
"--inline-file-names"
ãã®ãªãã·ã§ã³ã«ããããgprofãã¯äž¡æ¹ã®ãã©ããã®åã·ã³ãã«ã®åŸã«ãœãŒã¹ãã¡ã€ã«ãåºåããŸãã
ãããã¡ã€ã«ãšã³ãŒã«ã°ã©ãã ãã¡ã€ã«ãžã®ãã«ãã¹ã¯ã -L
ãªãã·ã§ã³ãéžæããŸãã
"-NS numã
"--min-count =numã
ãã®ãªãã·ã§ã³ã¯ãå®è¡ã«ãŠã³ãã®åºåã«ã®ã¿åœ±é¿ããŸãã å®è¡ãããã·ã³ãã«ã
NUM æéã¯æå¶ãããŸãã
"-NSsymspecã
"--time =symspecã
ãã® -n ãªãã·ã§ã³ã䜿çšãããšãã³ãŒã«ã°ã©ãåæã§ãgprofãã¯æ¬¡ã®æéã®ã¿ãäŒæããŸãã
äžèŽããèšå· ã·ã³ã¹ããã¯.
"-NSsymspecã
"--no-time =symspecã
ãã® -n ãªãã·ã§ã³ã䜿çšãããšãã³ãŒã«ã°ã©ãåæã§ãgprofãã次ã®æéãäŒæããªããªããŸãã
äžèŽããèšå· ã·ã³ã¹ããã¯.
"-NSãã¡ã€ã«å"
"--external-symbol-table =ãã¡ã€ã«å"
ãã® -S ãªãã·ã§ã³ãæå®ãããšããgprofãã¯æ¬¡ã®ãããªå€éšã·ã³ãã«ããŒãã«ãã¡ã€ã«ãèªã¿åããŸãã
/ proc / kallsymsãæå®ããããªããžã§ã¯ããã¡ã€ã«ããã·ã³ãã«ããŒãã«ãèªã¿åãã®ã§ã¯ãªãïŒ
ããã©ã«ãã¯ãa.outãã§ãïŒã ããã¯ãã«ãŒãã«ã¢ãžã¥ãŒã«ã®ãããã¡ã€ãªã³ã°ã«åœ¹ç«ã¡ãŸãã
ã-zã
"--display-unused-functions"
ããªããäžããå Žå -z ãªãã·ã§ã³ããgprofãã¯ãã©ãããããã¡ã€ã«ã®ãã¹ãŠã®æ©èœã«èšåããŸãã
äžåºŠãåŒã°ããããšããªãã圌ãã«æéãè²»ãããããšã®ãªã人ã ã§ããã ããã¯äŸ¿å©ã§ã
ãšäžç·ã« -c ã©ã®ã«ãŒãã³ãåŒã³åºãããªãã£ãããæ€åºããããã®ãªãã·ã§ã³ã
ãã®ä» ãªãã·ã§ã³
"-NS[num]ã
"--debug [=num]ã
ãã® -d NUM optionã¯ããããã°ãªãã·ã§ã³ãæå®ããŸãã ããã NUM æå®ãããŠããªãå Žåã¯ããã¹ãŠæå¹ã«ããŸã
ãããã°ã
"-NS"
" - ãã«ã"
ãã® -h ãªãã·ã§ã³ã¯ãã³ãã³ãã©ã€ã³ã®äœ¿çšæ³ãåºåããŸãã
"-Oåå"
"--file-format =åå"
ãããã¡ã€ã«ããŒã¿ãã¡ã€ã«ã®åœ¢åŒãéžæããŸãã èªèããã圢åŒã¯ ãªãŒã ïŒ
ããã©ã«ãïŒã bsd, 4.4BSD, ããžãã¯, ææ ïŒãŸã ãµããŒããããŠããŸããïŒã
"-NS"
" - å"
ãã® -s ãªãã·ã§ã³ãæå®ãããšããgprofãã¯ãããã¡ã€ã«ããŒã¿ãã¡ã€ã«å ã®æ å ±ãèŠçŽããŸãã
ãšåŒã°ãããããã¡ã€ã«ããŒã¿ãã¡ã€ã«ãèªã¿èŸŒã¿ãæžã蟌ã¿ãŸã gmon.sumããã¹ãŠãå«ãŸããŠããŸã
ãgprofããèªã¿èŸŒãã ãããã¡ã€ã«ããŒã¿ãã¡ã€ã«ããã®æ å ±ããã¡ã€ã« gmon.sum ãããããŸãã
æå®ãããå ¥åãã¡ã€ã«ã®XNUMXã€ã§ããããšã ããã®å¹æã¯ãããŒã¿ãããŒãžããããšã§ã
ä»ã®å ¥åãã¡ã€ã«ã« gmon.sum.
æçµçã«ã¯ããgprofããå®è¡ããã«å床å®è¡ã§ããŸãã -s ã®çŽ¯ç©ããŒã¿ãåæããã«ã¯
file gmon.sum.
ã-vã
" - ããŒãžã§ã³"
ãã® -v ãã©ã°ãèšå®ãããšããgprofãã¯çŸåšã®ããŒãžã§ã³çªå·ãåºåããŠçµäºããŸãã
éæšå¥šã® ãªãã·ã§ã³
ãããã®ãªãã·ã§ã³ã¯ãsymspecsã䜿çšããæ°ããããŒãžã§ã³ã«çœ®ãæããããŸããã
"-e function_name "
ãã® -e function ãªãã·ã§ã³ã¯ãé¢æ°ã«é¢ããæ å ±ãåºåããªãããã«ãgprofãã«æ瀺ããŸã
é¢æ°å ïŒããã³ãã®å...ïŒã³ãŒã«ã°ã©ãã æ©èœã¯åŒãç¶ã
ãããåŒã³åºãé¢æ°ã®åãšããŠãªã¹ããããŸããããã®ã€ã³ããã¯ã¹çªå·ã¯æ¬¡ã®ããã«è¡šç€ºãããŸãã
[ããã å°å·]ã è€æ°ã® -e ãªãã·ã§ã³ãäžãããããããããŸãã; å¯äž é¢æ°å å€å
ããããã§ç€ºãããŸã -e ãªãã·ã§ã³ãéžæããŸãã
"-E function_name "
ã-E é¢æ°" ãªãã·ã§ã³ã¯ã-eããªãã·ã§ã³ãšåãããã«æ©èœããŸãããé¢æ°ã«è²»ããããæé
ïŒããã³ä»ã®å ŽæããåŒã³åºãããªãã£ãåïŒã¯ãèšç®ã«äœ¿çšãããŸãã
ã³ãŒã«ã°ã©ãã®æéã®ããŒã»ã³ããŒãžã è€æ°ã® -E ãªãã·ã§ã³ãäžãããããããããŸãã; ããã ã
XNUMX〠é¢æ°å ããããã§ç€ºãããå ŽåããããŸã -E ãªãã·ã§ã³ãéžæããŸãã
"-NS function_name "
ãã® -f function ãªãã·ã§ã³ãæå®ãããšããgprofãã¯ã³ãŒã«ã°ã©ããé¢æ°ã«å¶éããŸã
é¢æ°å ãšãã®åäŸãã¡ïŒãããŠåœŒãã®åäŸãã¡...ïŒã è€æ°ã® -f ãªãã·ã§ã³ã¯ãããããŸãã
äžãããã; å¯äž é¢æ°å ããããã§ç€ºãããå ŽåããããŸã -f ãªãã·ã§ã³ãéžæããŸãã
"-NS function_name "
ãã® -F function ãªãã·ã§ã³ã¯ã-fããªãã·ã§ã³ãšåãããã«æ©èœããŸãããé¢æ°ã§è²»ããããæéã®ã¿ã§ã
ãšãã®åïŒããã³ãã®å...ïŒã¯ãåèšæéãš
ã³ãŒã«ã°ã©ãã®æéã®ããŒã»ã³ããŒãžã è€æ°ã® -F ãªãã·ã§ã³ãäžãããããããããŸãã; ããã ã
XNUMX〠é¢æ°å ããããã§ç€ºãããå ŽåããããŸã -F ãªãã·ã§ã³ã ã¶Â· -F ãªãã·ã§ã³ã¯
-E ãªãã·ã§ã³ãéžæããŸãã
onworks.net ãµãŒãã¹ã䜿çšããŠãªã³ã©ã€ã³ã§ powerpc64-linux-gnu-gprof ã䜿çšãã