<br><br><div class="gmail_quote">On Mon, Jun 17, 2013 at 9:29 AM, Arink Verma <span dir="ltr"><<a href="mailto:arinkverma@gmail.com" target="_blank">arinkverma@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>Hi Nathaniel</div><div><br></div><div class="gmail_extra"><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div><div><span style="color:rgb(34,34,34)">It's a probabilistic sampling profiler, so if it doesn't have enough samples then it can miss things. 227 samples is way way too low. You need to run the profiled code for longer (a few seconds at least), and if that's not enough then maybe increase the sampling rate too (though be careful because setting this too high can also add noise).</span></div>

</div></blockquote><div> </div></div><div>I ran code '1000000000' times, which record 229115 samples. Callgraph[1] generated is converging to <b>PyArray_DESCR</b>, and rest are unconnected.</div></div></div></div>
</blockquote><div><br>Not sure what you are profiling. The PyArray_DESCR call just returns a pointer to the descr contained in an ndarray instance, so probably has little relevance here.<br><br>Chuck<br></div></div>