<div class="gmail_quote">2010/8/17 Kristján Valur Jónsson <span dir="ltr"><<a href="mailto:kristjan@ccpgames.com">kristjan@ccpgames.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US"><div><span lang="IS">These patches are the result of work that we have done in profiling Stackless Python server applications at runtime, but they apply just as well to C Python.</span><p class="MsoNormal">
<span lang="IS">The first patch makes _lsprof, the engine behind cProfile, multi-stack aware. This allows the same cProfiler.Profile() instance to be active on multiple python threads and still meaningful information is gathered. </span></p>
</div></div></blockquote><div><br>+1<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div link="blue" vlink="purple" lang="EN-US">
<div><p class="MsoNormal"><span lang="IS">The second patch allows to set the trace/profile function in python <u>globally</u>, so that all threads are affected. This is essential if you want to take a profililng snapshot of a running application.</span></p>
</div></div></blockquote><div><br>+1<br></div></div><div style="margin: 2em 0pt;" name="sig_2341e11ee1">--<br>
Daniel Stutzbach, Ph.D.<br>
President, <a href="http://stutzbachenterprises.com">Stutzbach Enterprises, LLC</a>
</div><br>