Profiling programs/scripts?
Mike Driscoll
kyosohma at gmail.com
Fri Apr 11 15:21:41 EDT 2008
On Apr 11, 1:49 pm, skanem... at yahoo.se wrote:
> how do i profile a program? i found out that there are some profilers
> included in the standard library but couldnt really figure out how to
> access/use them
Are you talking about using PyChecker or nose or what? In other words,
do you want to check your script for errors, documentation issues,
compliance with PEPs or something else? Maybe you mean introspection?
If the latter, here are a few links on the subject:
http://www.ibm.com/developerworks/library/l-pyint.html
http://www.diveintopython.org/power_of_introspection/index.html
http://www.ginstrom.com/scribbles/2007/10/24/python-introspection-with-the-inspect-module/
If you want to do code coverage, PEPs stuff or checking for errors,
use PyChecker and PyLint or nose.
See the following for more info:
http://www.logilab.org/857
http://pychecker.sourceforge.net/
http://somethingaboutorange.com/mrl/projects/nose/
Mike
More information about the Python-list
mailing list