<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br>On Mar 15, 2013, at 11:37 AM, Axel Rau &lt;<a href="mailto:Axel.Rau@Chaos1.DE">Axel.Rau@Chaos1.DE</a>&gt; wrote:<br><br><blockquote type="cite">Currently I'm trying to learn how to profile python processes...<br></blockquote><br>Try&nbsp;<a href="http://www.vrplumber.com/programming/runsnakerun/">runsnake</a>.<br><br>Most of the hard work is already done!<div><br>All we need to do is create a directory to hold our stats, run the server with an additional cli argument, perform the operations we wish to profile, then stop the&nbsp;server. Then feed the pstats file to runsnake<br><br><div><span class="Apple-tab-span" style="white-space:pre">        </span>• mkdir foostats ; ./run -S foostats<br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>• Do stuff<br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>• Stop server (must be a graceful exit!)<br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>• Look in foostats for the goods.<br></div><div><br></div>Using Run Snake Run:</div><div><br>First, install it:<br>easy_install runsnakerun<br><br></div><div>Next, attempt to start it:<br>runsnake<br><br></div><div>You may be missing 'wx', if so,&nbsp;get it.<br><br></div><div>Next, just feed one of your pstats files to Run Snake Run, then bear witness to the glory of many nested and brightly colored rounded rects, in addition to the&nbsp;list of functions encountered during profiling, sortable by a variety of criteria.</div></body></html>