Skip to content

Add the performance report viewer at /perf/ - #175

Merged
alies-dev merged 2 commits into
psalm:masterfrom
alies-dev:feat/perf-viewer
Nov 23, 2026
Merged

alies-dev merged 2 commits into
psalm:masterfrom
alies-dev:feat/perf-viewer

Conversation

@alies-dev

Copy link
Copy Markdown
Contributor

Adds https://psalm.dev/perf/: a static page that renders the JSON file written by psalm --debug-performance=perf.json (vimeo/psalm#14737). Psalm's console output and docs point there.

The page reads the file in the browser and sends it nowhere. It shows the run summary, a timeline of stages, steps, pools and workers, the hottest statements and functions, plugin and provider time, files by CPU and by directory, and memory per stage. It can save a standalone copy with the data embedded and export a Chrome JSON trace for Perfetto, speedscope or Firefox Profiler.

One self-contained file (inline CSS and JS, no external requests); it uses the site's fonts from /extra/ when served from psalm.dev.

Static page that renders the JSON file written by `psalm --debug-performance=PATH` (vimeo/psalm#14737): timeline of stages, steps, pools and workers, hot code, plugins, files and memory. The file is read in the browser and never uploaded.
@alies-dev alies-dev self-assigned this Nov 23, 2026
@alies-dev
alies-dev merged commit 535640f into psalm:master Nov 23, 2026
2 checks passed
@alies-dev
alies-dev deleted the feat/perf-viewer branch November 23, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant