AivexaNewsSearch
AI news for builders and product teamsChecked every hour

Profiling web-edit with Python 3.15: flame graphs and source heatmaps

Collected Oct 14, 2026

Simon Willison has published a profiling experiment using the new profiler in Python 3.15, applying it to his web-edit application. The work produced two visual outputs: an example flame graph and a source heatmap.

The task was carried out by having GPT-6 Astra Extra High in Codex run the profiler against the web-edit app, which is distributed on PyPI. Willison describes the workflow as research first, then producing the demos.

Flame graphs are a widely used visualization for profiling, where each bar represents a function or call path and the width shows how much time was spent there, making hot paths visually obvious. Source heatmaps apply similar timing information directly onto the lines of source code, so a developer can see which instructions are consuming the most time. The combination gives both a high-level view of where time goes across the call stack and a line-level view within a function.

A profiler shipping as part of the standard library in a Python release is notable, since profiling in Python has traditionally involved separate tooling. This suggests Python 3.15 may make it easier to get started with performance analysis without adding third-party dependencies, though the specifics of the profiler's capabilities are not detailed in the source material.

Why it matters: developers who need to find performance bottlenecks in Python code may get a more accessible path to flame graphs and line-level heatmaps with Python 3.15. For teams maintaining Python applications, particularly web apps like web-edit, this could lower the barrier to routine profiling. The Python 3.15 angle means the technique is not yet available on current stable releases, so adoption will likely follow the release timeline.

Read at Simon Willison

Based on reporting from the original publisher. Visit the source for full context and later updates.

Publisher excerpt

Research: Profiling web-edit with Python 3.15: flame graphs and source heatmaps I put the new Python 3.15 profiler through its paces by having GPT-6 Astra Extra High in Codex run it against my new web-edit app : I need a Python 3.15 flame graph and heatmap demo of the "web-edit" app from PyPI - research first then make me those demos Here's the resulting example flame graph and heatmap . Tags: profiling , python , codex