Skip to content

Align the step rows of the --debug-performance summary - #14769

Merged
alies-dev merged 1 commit into
vimeo:masterfrom
alies-dev:fix/debug-performance-columns
Nov 23, 2026
Merged

alies-dev merged 1 commit into
vimeo:masterfrom
alies-dev:fix/debug-performance-columns

Conversation

@alies-dev

Copy link
Copy Markdown
Collaborator

The --debug-performance summary printed step rows one column off: a wider name column and no CPU column, so the step's share sat under the stages' CPU.

Before

  scan.files            5.45 s wall    4.23 s cpu   7.1%
    scan.project            4.94 s wall   6.4%
  scan.populate         0.28 s wall    0.28 s cpu   0.4%

After

  scan.files            0.11 s wall    0.11 s cpu  22.4%
    scan.stubs          0.11 s wall    0.11 s cpu  22.3%
  scan.populate         0.00 s wall    0.00 s cpu   0.8%

The docs, --help and the messages now call the feature Psalm's self-profiling and its JSON file a performance profile.

… JSON a performance profile

Step rows used a wider name column and no cpu column, so their wall time and share sat one column off. Stage and step rows now share one format with a name column as wide as the longest name, and steps print their CPU time. The docs, --help and messages call the feature self-profiling and its JSON file a performance profile.
@alies-dev alies-dev added the release:fix The PR will be included in 'Fixes' section of the release notes label Nov 23, 2026
@alies-dev alies-dev self-assigned this Nov 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

✅ Performance: unchanged · Types: unchanged

Project Memory (MB) Wall (s) Issues Weighted (types) Taint Dead code
✅ laravel 1 772 107.0 $\color{gray}{\textsf{+1.3\%}}$ 25 787 53 067 743 0
✅ symfony 3 619 226.7 $\color{gray}{\textsf{+0.2\%}}$ 51 739 100 455 1 582 0
✅ doctrine-orm 381 24.1 $\color{gray}{\textsf{-0.6\%}}$ 3 453 6 194 0 0
✅ psl 618 28.2 $\color{gray}{\textsf{+0.2\%}}$ 1 387 5 600 1 0
✅ phpunit 456 14.8 $\color{gray}{\textsf{-0.2\%}}$ 1 735 3 418 18 0
✅ php-parser 226 9.7 $\color{gray}{\textsf{-0.9\%}}$ 17 113 21 177 0 0
✅ tempest 898 27.5 $\color{gray}{\textsf{-0.3\%}}$ 5 091 10 536 275 0
✅ amphp-amp 48 1.0 $\color{gray}{\textsf{-1.0\%}}$ 29 49 0 0
✅ webmozarts-assert 278 2.7 $\color{gray}{\textsf{-0.7\%}}$ 575 2 714 0 0
✅ guzzle-promises 46 1.0 $\color{gray}{\textsf{-1.0\%}}$ 155 433 2 0
✅ monolog 136 3.4 $\color{gray}{\textsf{-1.7\%}}$ 918 2 491 11 0
✅ drupal 4 847 248.7 $\color{gray}{\textsf{-1.4\%}}$ 97 872 169 393 575 0
✅ wordpress 2 061 137.4 $\color{gray}{\textsf{-0.2\%}}$ 143 627 678 490 505 1
Total 15 386 832.4 $\color{gray}{\textsf{-0.3\%}}$ 349 481 1 054 017 3 712 1
How to read this table
  • Memory: Psalm's own peak figure, threads=1. More than +5 % fails, unless the PR changes composer.json.
  • Wall: base and head run on the same runner; ±10 % is noise. Above +10 % warns, never fails. re-run: a reversed second run was taken and the faster kept.
  • Issues: head count over all categories, then $\color{red}{\textsf{+added}}$ $\color{green}{\textsf{-removed}}$ against base.
  • Weighted (types): type issues weighted by error level (levels 1–8 as is, always-errors 10, strictness checks 1). Taint and dead-code issues are not weighed. The projects' own code is pinned and their dependencies resolve identically for base and head, so a change means Psalm reports more, fewer or differently serious issues. A rise is not necessarily a regression.
  • Taint: head count of Tainted* issues, then $\color{orange}{\textsf{+added}}$ $\color{orange}{\textsf{-removed}}$ against base. Both are orange as either direction needs review: more can be new detection or false positives, fewer can be fixed false positives or lost detection.
  • Dead code: head count of unused-code issues, shown only when a run reported some (findUnusedCode). More is red, fewer is green.
  • Total: sum over the projects compared on both sides. Its wall time warns above +5 % (±5 % is noise); the other thresholds apply per project.
  • Colors: $\color{red}{\textsf{red}}$ past a fail or warn threshold (or more issues), $\color{green}{\textsf{green}}$ an improvement past noise (or fewer issues), $\color{orange}{\textsf{orange}}$ needs review, $\color{gray}{\textsf{gray}}$ noise.
  • Performance: regressed if a head run crashed or timed out or a memory or wall delta is red, else improved if one is green, else unchanged. Its icon is the check result: ❌ fail · ⚠️ warn · ✅ pass; the icon next to each project is that project's result, 💥 = not comparable: base crashed or timed out (counts as ⚠️).
  • Types (heading): direction of the total weighted change, increased · decreased · unchanged. Taint and Dead code (heading): added and removed counts, present only when non-zero. Informational, never fails the check.

head 77397bc · base 33d1182 (merge-base) · workflow run

@alies-dev
alies-dev merged commit 0db3e60 into vimeo:master Nov 23, 2026
75 checks passed
@alies-dev
alies-dev deleted the fix/debug-performance-columns branch November 24, 2026 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:fix The PR will be included in 'Fixes' section of the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant