python-importtime-graph
Python developers can now visually pinpoint which module imports slow their startup, turning the built-in -X importtime trace into an actionable treemap.
A developer has released a free browser tool that visualizes how long Python takes to import each module when a program starts. You run Python with a special flag that prints import timings, then paste that text into the tool, which draws a treemap where bigger blocks mean slower imports. It is aimed at programmers diagnosing slow startup times.
Kevin Michel's python-importtime-graph is a free web tool that turns Python's import-time traces into a zoomable treemap, cutting the time engineers spend hunting down slow application startups. There is no cost or vendor lock-in; the benefit is faster performance debugging for any team maintaining Python applications.
The tool consumes output from 'python -X importtime', which prints a tree of per-module self and cumulative import times in microseconds. Kevin Michel's python-importtime-graph renders it as a browser-based treemap at kmichel.github.io. Simon Willison's example trace for his LLM CLI with 41 plugins showed a total of 2845.828 ms, with 'llm.cli' at 2256.275 ms and 'openai' at 150.043 ms; dense SVG output is zoomable.