User Tools

Site Tools


code:profiling

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
code:profiling [2009/11/30 01:25] – external edit 127.0.0.1code: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
 +</code>
 +
 +==== Python ====
 +
 +Profiling Python is pretty simple, using cPython module:
 +<code>
 +$ python -m cPython myscript.py
 </code> </code>
  
code/profiling.txt · Last modified: 2020/03/29 12:13 by 127.0.0.1