- Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Sponsored Links

Latest News
  General News
  Press Releases
  Off Topic

Back to files

pyprof - Copyright 2001 Matthew Mueller <>

pyprof is a wrapper around python's profile module for easily profiling python scripts without having to specify the whole path to them if they are in $PATH, and with command line arg configurable behaviors.
Currently to profile a python script, you have to either add support in the program, or run it with (or use interactive python..). But if the script isn't in the current dir, it results in long commands like /usr/lib/python1.5/ /usr/bin/something foo

With pyprof, this command line would be: pyprof something foo

In addition, pyprof supports command line args to change its behavior, which running does not provide at all.

And what if something is actually an alias? Then pyprof something won't even work. Well, if you use pyprof_auto:
PYPROF=x something foo

Should work anywhere python does.
1) make sure you have python-distutils installed (distutils is standard in python >= 1.6, otherwise see: ) 2) python install 3) optionally: add "import pyprof_auto" to
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. See the file 'COPYING' for more information.

I would appreciate it if you make modifications if you would send them to me for possible inclusion in the main source.

You can get the latest version at

Sponsored Links

Discussion Groups
  Networking / Security

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 All rights reserved.