Popular recipes tagged "profiling"http://code.activestate.com/recipes/tags/profiling/2012-05-18T14:34:13-07:00ActiveState Code Recipesgprof2dot.py (Python) 2012-05-18T14:34:13-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/578138-gprof2dotpy/ <p style="color: grey"> Python recipe 578138 by <a href="/recipes/users/2608421/">Stephen Chappell</a> (<a href="/recipes/tags/profiling/">profiling</a>, <a href="/recipes/tags/tools/">tools</a>, <a href="/recipes/tags/visualization/">visualization</a>). </p> <p>This is the <code>gprof2dot.py</code> program converted for use with the latest version of Python (3.2). It generates a dot graph from the output of several profilers. Please observe the original License embedded by the author, Jose Fonseca. His website for this program can be found on <a href="http://code.google.com/p/jrfonseca/wiki/Gprof2Dot">Google Code</a>.</p> Profile decorator (Python) 2011-08-02T19:08:58-07:00Giampaolo RodolĂ http://code.activestate.com/recipes/users/4178764/http://code.activestate.com/recipes/577817-profile-decorator/ <p style="color: grey"> Python recipe 577817 by <a href="/recipes/users/4178764/">Giampaolo RodolĂ </a> (<a href="/recipes/tags/profile/">profile</a>, <a href="/recipes/tags/profiling/">profiling</a>, <a href="/recipes/tags/python/">python</a>). </p> <p>A decorator for profiling a function which prints profiling results to stdout. This was originally proposed as a patch for inclusion into python stdlib:</p> <p><a href="http://bugs.python.org/issue9285" rel="nofollow">http://bugs.python.org/issue9285</a></p> <p>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.</p> A Profiling Tool (Python) 2011-03-04T05:41:04-08:00Shao-chuan Wanghttp://code.activestate.com/recipes/users/4168519/http://code.activestate.com/recipes/577323-a-profiling-tool/ <p style="color: grey"> Python recipe 577323 by <a href="/recipes/users/4168519/">Shao-chuan Wang</a> (<a href="/recipes/tags/profiling/">profiling</a>, <a href="/recipes/tags/timing/">timing</a>). Revision 2. </p> <p>This is a decorator for doing the profiling of a function.</p>