code:profiling
Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
code:profiling [2009/11/30 01:25] – external edit 127.0.0.1 | code:profiling [2017/12/22 14:25] – phil | ||
---|---|---|---|
Line 27: | Line 27: | ||
$ ./a.out | $ ./a.out | ||
$ gprof a.out gmon.out | $ gprof a.out gmon.out | ||
+ | </ | ||
+ | |||
+ | ==== Python ==== | ||
+ | |||
+ | Profiling Python is pretty simple, using cPython module: | ||
+ | < | ||
+ | $ python -m cPython myscript.py | ||
</ | </ | ||
code/profiling.txt · Last modified: 2020/03/29 12:13 by 127.0.0.1