Python cprofiler a function
<p>How to profile one function with cprofiler?</p>

<pre><code>label = process_one(signature)
</code></pre>

<p>become</p>

<pre><code>import cProfile

label = cProfile.run(process_one(signature))
</code></pre>

<p>but it didn't work :/</p>

<p>according to documentation (<a href="https://docs.python.org/2/library/profile.html" rel="nofollow">https://docs.python.org/2/library/profile.html</a>) it should be <code>cProfile.run('process_one(signature)')</code></p>

<p>also, look at the answer <a href="http://stackoverflow.com/a/17259420/1966790">http://stackoverflow.com/a/17259420/1966790</a></p>

python profiling