# Python: tprof 1.3.0: now with less overhead

DevFeed: [Python: tprof 1.3.0: now with less overhead](<https://devfeed.tech/articles/python-tprof-1-3-0-now-with-less-overhead-51095.md>)

Original publisher: [Read original article](<https://adamj.eu/tech/2026/08/08/python-tprof-performance/>)

Author: Adam Johnson

Published: 2026-08-07T23:00:00Z

Content type: release

Language: en

Sources: [Adam Johnson](<https://devfeed.tech/sources/adam-johnson.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [C](<https://devfeed.tech/topics/c.md>), [Data structures](<https://devfeed.tech/topics/data-structures.md>)

Tags: [benchmarking](<https://devfeed.tech/tags/benchmarking.md>), [c](<https://devfeed.tech/tags/c.md>), [data-structures](<https://devfeed.tech/tags/data-structures.md>), [garbage-collection](<https://devfeed.tech/tags/garbage-collection.md>), [profiling](<https://devfeed.tech/tags/profiling.md>), [python](<https://devfeed.tech/tags/python.md>), [python-3-13](<https://devfeed.tech/tags/python-3-13.md>), [reduction](<https://devfeed.tech/tags/reduction.md>), [refactor](<https://devfeed.tech/tags/refactor.md>)

## AI overview

The tprof 1.3.0 release improves a targeted Python profiler by replacing Python-level recording structures with per-thread C structures, eliminating callbacks for non-target functions, reducing overhead and memory use, and speeding report generation. It also adds file-based baseline comparisons and uses exact median calculations for more robust profiling results.

## Source excerpt

Back in January, I introduced tprof, a targeting profiler for Python 3.12+ that measures the time spent in specific functions, rather than your whole program. As a reminder, here's the basic usage, specifying a target function with -t and a script to run: $ tprof -t lib:maths ./example ...