Get the latest tech news

Python: Tprof, a Targeting Profiler


Profilers measure the performance of a whole program to identify where most of the time is spent. But once you’ve found a target function, re-profiling the whole program to see if your changes helped can be slow and cumbersome. The profiler introduces overhead to execution and you have to pick out the stats for the one function you care about from the report. I have often gone through this loop while optimizing client or open source projects, such as when I optimized Django’s system checks framework (previous post).

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of python

python

Photo of Tprof

Tprof

Photo of Targeting Profiler

Targeting Profiler

Related news:

News photo

Moving Scratch generation to Python on browser

News photo

Recent Optimizations in Python's Reference Counting

News photo

Show HN: RepoReaper – AST-aware, JIT-loading code audit agent (Python/AsyncIO)