Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Tracing python applications

Tracing python applications

As hackers we love to understand how stuff works and how to optimize it. A very good tool to do both is software tracing. During the talk we'll see how tracing tools work and we'll zoom on one particular project called pyflame.

Nikolay Stoitsev

June 03, 2017
Tweet

More Decks by Nikolay Stoitsev

Other Decks in Programming

Transcript

  1. “Bottlenecks occur in surprising places, so don't try to second

    guess and put in a speed hack until you have proven that's where the bottleneck is.” Rob Pike
  2. script.py:<module>:27;script.py:main:23 122 script.py:<module>:27;script.py:main:22 34 script.py:<module>:27;script.py:main:23;script.py:run:13 11 script.py:<module>:27;script.py:main:23;script.py:run:15 114 script.py:<module>:27;script.py:main:23;script.py:run:17 141

    script.py:<module>:27;script.py:main:23;script.py:run:16 95 script.py:<module>:27;script.py:main:23;script.py:run:14 4 script.py:<module>:27;script.py:main:23;script.py:run:16;script.py:square:9;script.py:multiply:5 44 script.py:<module>:27;script.py:main:23;script.py:run:15;script.py:square:9;script.py:multiply:5 41 script.py:<module>:27;script.py:main:23;script.py:run:17;script.py:multiply:5 39 script.py:<module>:27;script.py:main:23;script.py:run:16;script.py:square:9 100 script.py:<module>:27;script.py:main:23;script.py:run:15;script.py:square:9 119