Benutzer-Werkzeuge

Webseiten-Werkzeuge


becki:linux:gnu_gprof

Dies ist eine alte Version des Dokuments!


GNU Gprof

Docs

  1. Manual according to Gprof
  2. GLAP p.619

Preparing the Executable

Both compiling an linking phase of GNU GCC must be telled to generate extra code to write profile information -pg:

gcc -o foo foo.c -pg
# or
gcc -c foo.c -pg
gcc -o foo foo.o -pg

FIXME What if external libs are used?

Generating Profile Data

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

FIXME

Analysing Profile Data

FIXME

Cookies helfen bei der Bereitstellung von Inhalten. Diese Website verwendet Cookies. Mit der Nutzung der Website erklären Sie sich damit einverstanden, dass Cookies auf Ihrem Computer gespeichert werden. Außerdem bestätigen Sie, dass Sie unsere Datenschutzerklärung gelesen und verstanden haben. Wenn Sie nicht einverstanden sind, verlassen Sie die Website. Weitere Information
becki/linux/gnu_gprof.1522830306.txt.gz · Zuletzt geändert: 2018-04-04 08:25 von becki

Impressum - Datenschutzerklärung