PyProfGen generates documentation of the profile information. It interprets the output of gprof(1) into a nice HTML files.
Since PyProfGen generates HTML output, there's no screenshot except the online sample. See the output here.
To install pyprofgen 0.3, check the required softwares are present, download the source from CVS, and do the following steps:
$ cd pyprofgen $ make all $ make install $ _
$ ls
demo.c
$ gcc -g -pg -o demo demo.c -lc_p
$ ./demo
$ ls -F
demo* demo.c gmon.out
$ pyprofgen --help
USAGE: pyprofgen [OPTION...] executable [gmon.out]
Generate HTML documents from gmon.out
-d DIR, Set the output directory to DIR,
--directory=DIR (default: doc)
-q, --quiet Quite mode, (default: verbose mode)
-h, --help Show help message
-v, --version Print version information
Report bugs to <cinsk at cinsk.org>.
$ pyprofgen demo gmon.out
...
$ ls -F
demo* demo.c gmon.out prof/
$ elinks prof/html/index.html # use your favorite browsers.
$ _As the name implies, PyProfGen uses Python for interpreting the output of gprof(1). The two testing environments was configured like this:
PyProfGen is in infant stage yet. I only provide CVS access for now.
$ cvs -d :pserver:anonymous@www.cinsk.org:/root login password: <RET> $ cvs -d :pserver:anonymous@www.cinsk.org:/root co pyprofgen ... $ cvs -d :pserver:anonymous@www.cinsk.org:/root logout
$Id: index.html,v 1.9 2008/09/02 23:51:08 cinsk Exp $