Repository navigation
Add the performance report viewer at /perf/ - #175
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.