Benutzer-Werkzeuge

Webseiten-Werkzeuge


becki:linux:gnu_gprof

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
becki:linux:gnu_gprof [2018-04-06 05:54]
becki
becki:linux:gnu_gprof [2018-04-10 09:49] (aktuell)
becki [Generating Profile Data]
Zeile 22: Zeile 22:
 According to GLAP p.619 the profile data file {{{gmon.out}}} is only written upon normal exit of the application,​ not eg on exit with SIGKILL. See also [[terminal_special_characters]] According to GLAP p.619 the profile data file {{{gmon.out}}} is only written upon normal exit of the application,​ not eg on exit with SIGKILL. See also [[terminal_special_characters]]
  
-In order to exit gracefully for a programm with an infintite main loop, eg a signal handler for TERM could be installed. ​FIXME Link!+In order to exit gracefully for a programm with an infintite main loop, eg a signal handler for TERM could be installed. ​See [[/​becki/​my/​linux/​linux_signals]]
  
 == Analysing Profile Data == Analysing Profile Data
Zeile 28: Zeile 28:
   gprof foo gmon.out   gprof foo gmon.out
  
-Writes ACII to stdout+Writes ACII to stdout ​for review. 
 +It shows that different gmon.out produces from the same binary produce different results. GLAP p.628 proposes to produce multiple gmon.out'​s,​ build the average and review this: 
 + 
 +  gprof --sum foo gmon.out.?​ 
 +  gprof foo gmon.sum > gmon.sum.txt 
 + 
becki/linux/gnu_gprof.1522994063.txt.gz · Zuletzt geändert: 2018-04-06 05:54 von becki

Impressum - Datenschutzerklärung