PyProfGenÀº ÇÁ·ÎÆÄÀÏ (ÃÖÀûÈ) Á¤º¸¸¦ ¸¸µé¾îÁÖ´Â ÅúÀÔ´Ï´Ù. gprof(1)ÀÇ Ãâ·ÂÀ» ¹Þ¾Æ¼ º¸±â ÁÁÀº HTML ÆÄÀϵé·Î ¸¸µé¾î ÁÝ´Ï´Ù.
PyProfGenÀÇ Ãâ·ÂÀº HTML ÆÄÀÏ·Î ¸¸µé¾îÁö±â ¶§¹®¿¡, ¹Ù·Î º¸½Ç ¼ö ÀÖ½À´Ï´Ù. ¿©±â¿¡¼ Ãâ·Â ³»¿ëÀ» º¸±â ¹Ù¶ø´Ï´Ù. Since PyProfGen generates HTML output, there's no screenshot
PyprofgenÀ» ¾²±â À§ÇØ ¸ÕÀú ÇÊ¿äÇÑ ¼ÒÇÁÆ®¿þ¾î°¡ ¼³Ä¡µÇ¾î ÀÖ´ÂÁö È®ÀÎÇϰí (¾Æ·¡ Âü°í), CVS ¼¹ö¿¡¼ ¼Ò½º¸¦ ´Ù¿î¹ÞÀº ´ÙÀ½, ´ÙÀ½ °úÁ¤À» µû¶ó ÇÏ¸é µË´Ï´Ù:
$ 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 <cinsky at gmail.com>.
$ pyprofgen demo gmon.out
...
$ ls -F
demo* demo.c gmon.out prof/
$ elinks prof/html/index.html # use your favorite browsers.
$ _ÀÌ ÅøÀÇ À̸§ÀÌ ¶æÇϵí, PyProfGenÀº gprof(1)ÀÇ Ãâ·ÂÀ» ºÐ¼®Çϱâ À§ÇØ PythonÀ» ¾¹´Ï´Ù. °³¹ß½Ã Å×½ºÆÃÇÑ È¯°æÀº ´ÙÀ½°ú °°½À´Ï´Ù:
PyProfGenÀº ¾ÆÁ÷ ÇÁ·ÎÅäŸÀÔ ¼öÁØÀ̸ç, CVS download¸¸ Á¦°øÇÕ´Ï´Ù.
$ 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-ko.html,v 1.6 2008/09/02 23:51:08 cinsk Exp $