I use gprof2dot to visualize the output from python cProfile quite a lot.  You may want to try that out:<div><br></div><div><a href="http://code.google.com/p/jrfonseca/wiki/Gprof2Dot">http://code.google.com/p/jrfonseca/wiki/Gprof2Dot</a><br>

<br></div><div>It only breaks it down between functions, but it should give an idea of where most the time is being spent.</div><div><br></div><div>Sam</div><div><br></div><div><div class="gmail_quote">On Sat, Mar 26, 2011 at 11:38 AM, Stephen Skory <span dir="ltr"><<a href="mailto:stephenskory@yahoo.com">stephenskory@yahoo.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Matt,<br>
<div class="im"><br>
> ><br>
> > In summary, for medium to very large sized clumps (in terms of number of<br>
> cells), the treecode is showing it's usefulness. My tests are not complete,<br>
> but the break even line with the standard opening angle (==approximation<br>
> control) of 1.0, is about 100,000 cells. For example, a spherical clump with<br>
> three levels and 120,000 cells takes 272 seconds with the O(N^2) method, 175<br>
> seconds with the treecode, and has a 0.05% error.<br>
><br>
> That's interesting.  To be perfectly honest, I kind of expected it to<br>
> perform a bit better.  Any insight where the overhead comes from?<br>
<br>
<br>
</div>I'm not sure. I haven't timed individual steps of the code yet to see if something is unreasonably slow. Any useful tool recommendations are welcomed.<br>
<div class="im"><br>
> It should be on by default.  What is the performance difference, for a<br>
> small/medium clump?  10%?  50%?  Factor of 10?<br>
<br>
<br>
</div>It looks like it's no worse than a factor of two slower for opening_angle=1.0 at around 30,000 cells. I plan on making a figure showing this stuff soon.<br>
<div class="im"><br>
> Very nice work!  I have reviewed your changes and I think you should<br>
> merge them.  This will be a shining addition to the 2.1 release.<br>
<br>
<br>
</div>Thanks for the praise, I appreciate it.<br>
<div class="im"><br>
> Could you post a script verifying that it works for clumps on the edge<br>
> and in the center, to be added to the answer tests?<br>
<br>
<br>
</div>Sure, I can do that.<br>
<div><div></div><div class="h5"><br>
 <br>
Stephen Skory<br>
<a href="mailto:stephenskory@yahoo.com">stephenskory@yahoo.com</a><br>
<a href="http://stephenskory.com/" target="_blank">http://stephenskory.com/</a><br>
<a href="tel:510.621.3687">510.621.3687</a> (google voice)<br>
<br>
_______________________________________________<br>
Yt-dev mailing list<br>
<a href="mailto:Yt-dev@lists.spacepope.org">Yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
</div></div></blockquote></div><br></div>