<div><h3id="timingbyfunction">Timing by Function</h3><div><h4id="generatesapngimageofacallgraphwithhighlightedbottlenecks">Generates a PNG image of a call graph with highlighted bottlenecks:</h4><pre><codeclass="python language-python hljs"><spanclass="hljs-comment"># $ pip3 install pycallgraph</span>
@ -2119,6 +2113,17 @@ Line # Mem usage Increment Line Contents
3 35.734 MiB 0.348 MiB a = [*range(10000)]
3 35.734 MiB 0.348 MiB a = [*range(10000)]
4 36.160 MiB 0.426 MiB b = {*range(10000)}
4 36.160 MiB 0.426 MiB b = {*range(10000)}
</code></pre>
</code></pre>
<div><h3id="callgraph">Call Graph</h3><div><h4id="generatesapngimageofacallgraphwithhighlightedbottlenecks">Generates a PNG image of a call graph with highlighted bottlenecks:</h4><pre><codeclass="python language-python hljs"><spanclass="hljs-comment"># $ pip3 install pycallgraph</span>
<div><h2id="numpy"><ahref="#numpy"name="numpy">#</a>NumPy</h2><p><strong>Array manipulation mini language. Can run up to one hundred times faster than equivalent Python code.</strong></p><pre><codeclass="python language-python hljs"><spanclass="hljs-comment"># $ pip3 install numpy</span>
<div><h2id="numpy"><ahref="#numpy"name="numpy">#</a>NumPy</h2><p><strong>Array manipulation mini language. Can run up to one hundred times faster than equivalent Python code.</strong></p><pre><codeclass="python language-python hljs"><spanclass="hljs-comment"># $ pip3 install numpy</span>