#Pstats
important code
December 28, 2024 at 12:00 AM
✍️ New post introducing profiling-explorer, a tool for exploring Python profiling data (pstats files).

Use it with the classic cProfile (now called profiling.tracing) or Python 3.15’s new sampling profiler, Tachyon (profiling.sampling).

adamj.eu/tech/2026/04...

#Python
Python: introducing profiling-explorer - Adam Johnson
I’ve made another package! Like icu4py, which I made in February, it was sponsored by my client Rippling. And like tprof, which I made in January, it’s a profiling tool!
adamj.eu
April 3, 2026 at 9:53 PM
[Articles] Python: a quick cProfile recipe with pstats

Learn how to efficiently profile Django migrations and other Python scripts using cProfile and pstats to analyze slow functions and optimize database calls. #djangonews

adamj.eu/tech/2025/0...
Python: a quick cProfile recipe with pstats - Adam Johnson
adamj.eu
June 18, 2025 at 10:00 PM
🤩 Will this TUI also be available for analyzing pstats files?
November 16, 2025 at 10:53 PM
✍️ New post covering a quick recipe for profiling your code on the command line using Python’s built-in profiler, cProfile.
The worked example shows profiling a Django migration.

#Python #Django

adamj.eu/tech/2025/05...
Python: a quick cProfile recipe with pstats - Adam Johnson
Python comes with two built-in profilers for measuring the performance of your code: cProfile and profile. They have the same API, but cProfile is a C extension, while profile is implemented in Python...
adamj.eu
May 20, 2025 at 10:19 AM
`python -c "import pstats; pstats.Stats('tests.pstats').sort_stats('tottime').print_stats(10)"` would also show this, but using his browser tool is much nicer.
June 16, 2026 at 4:32 PM
TIL that Adam Johnson released a nice `cProfile`/`pstats` data viewer.

# cProfile does the measuring as usual, here on my test suite
python -m cProfile -o tests.pstats -m pytest

# the tool gives a nice interactive viewer of the output
uvx profiling-explorer tests.pstats
June 16, 2026 at 4:32 PM
Feed: "Adam Johnson"
Published on Tuesday, May 20, 2025
Python: a quick cProfile recipe with pstats
Python comes with two built-in profilers for measuring the performance of your code: cProfile and profile. They have the same API, but cProfile is a C extension, while profile is implemented in Python...
adamj.eu
May 21, 2025 at 7:18 PM
profiling-explorer

Table-based exploration tool for Python profiling data (pstats files).

https://github.com/adamchainz/profiling-explorer
April 15, 2026 at 7:15 AM
Spoken word, PSTATS 5A, and oceanography
December 19, 2024 at 1:03 AM
@MikeTanier why does the Athletic & Next Jen Pstats think Cam Little hit a 68 yarder? Global Warming raising air temp & pushing prevailings? Trump tariffs mean cheaper leather balls? Every kick carries farther on All Saints Day per TammyFaye Kirk? All those Halloween bitohoneys juicing kickers?
November 2, 2025 at 11:01 PM