Profile decorator

Category: Python - Miscellaneous

A decorator for profiling a function which prints profiling results to stdout.
This was originally proposed as a patch for inclusion into python stdlib:

http://bugs.python.org/issue9285

Note that on certain Linux systems pstats module isn't available, despite it is supposed to be part of Python stdlib. On my Ubuntu box I had to run "sudo apt-get install python-profile" first. Date: 22 March, 2012


Profile - Profiling - Python

Homepage: http://code.activestate.com/recipes/577817-profile-decorator/?in=lang-python

Developer: Giampaolo Rodol?

License: Freeware

Operating System: Windows

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

Profile Manager Basic is a multi-platform compatible database driven, easy-to-install, fully-functional and Free membership system.

developer Developer: Interlogy Internet Technologies LLC.
license License: Freeware
operating systems Operating System: Unix/Linux/Windows


This program is used to cleanup any folder that you specify but is used primarily to cleanup a profile in Windows.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


Diagnostic utility to track, during the runtime, which file and line classes, modules, and methods are added and changed.

developer Developer: rubyforge.org
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


An account with the Plaxo service is required.

developer Developer: wordpress.org
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


Privacy settings allow selecting what information will be available on the profile page.

developer Developer: wordpress.org
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


Attempts to access the profile of the level 0 user directly will be redirected to the admin homepage.

developer Developer: wordpress.org
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


This can be controlled from two new menu items under "Users-> A&U Extended" and "Options-> Cimy User Extra Fields"InstallationUnpack and upload it to the /wp-content/plugins/ directory.

developer Developer: wordpress.org
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


Ok, this is really simple but I think it worths a recipe as it's one of those things I always use in shell scripts and for debugging in general.

developer Developer: Giampaolo Rodol?
license License: Freeware
operating systems Operating System: Windows


The thing I miss mostly in asyncore is a system for calling a function after a certain amount of time without blocking.

developer Developer: Giampaolo Rodol?
license License: Freeware
operating systems Operating System: Windows