Skip to content

fix(plugin_timings): reword the warning so it does not contradict itself - #10788

Merged
graphite-app[bot] merged 1 commit into
mainfrom
fix/plugin-timings-warning-wording
Aug 27, 2026
Merged

graphite-app[bot] merged 1 commit into
mainfrom
fix/plugin-timings-warning-wording

Conversation

@IWANABETHATGUY

Copy link
Copy Markdown
Member

The [PLUGIN_TIMINGS] warning said "Those rows are 100% of the build; the rest of the 100% is below" and "100% of 7.1s inside plugin hooks (7.4s)" when the listed rows added up to more than the build, and "… and N more below 1s or past the cap" for rows that were all over 1s.

Before, on a Vite build:

[PLUGIN_TIMINGS] Your build spent 100% of 7.1s inside plugin hooks (7.4s).
Measured inside the callback, so queue time is excluded and time the callback itself awaited is not:
  - @rolldown/plugin-babel transform (87%, 6.2s, 1175 calls)
  - vite:worker load (19%, 1.4s, 1 call)
  - vite-plugin-pwa load (18%, 1.3s, 1 call)
Those rows are 100% of the build; the rest of the 100% is below.
Not measurable — 2 hooks whose calls overlap, so elapsed time covers work other calls were doing. Profile with `node --cpu-prof`:
  - vite:asset load (402 calls)
  - pixelarticons-svg-icon load (59 calls)
See https://rolldown.rs/reference/InputOptions.checks#plugintimings for more details.

After:

[PLUGIN_TIMINGS] Plugin hooks ran for 7.4s. The build took 7.1s. Hooks such as `closeBundle` run after the build ends, so hook time can be more than build time.
The slowest hooks, timed inside each callback (the wait before a callback starts is excluded, the time it awaits is included):
  - @rolldown/plugin-babel transform (87%, 6.2s, 1175 calls)
  - vite:worker load (19%, 1.4s, 1 call)
  - vite-plugin-pwa load (18%, 1.3s, 1 call)
These rows add up to more than the total. Callbacks can overlap, so the same time counts for more than one row.
2 hooks are listed without a time. Their calls overlapped, so the time inside one call includes work from other calls. To find their cost, profile the build with `node --cpu-prof`:
  - vite:asset load (402 calls)
  - pixelarticons-svg-icon load (59 calls)
See https://rolldown.rs/reference/InputOptions.checks#plugintimings for more details.

When the rows add up to less than the total, the sentence is "Additional hook time came from the hooks below and from hooks under 1s." with no number, because the rows are a sum of spans and the headline is their union.

@netlify

netlify Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit 3ce2f28
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/6a8fabb75216fd000855c44f

@IWANABETHATGUY
IWANABETHATGUY marked this pull request as ready for review August 26, 2026 16:15
@cpojer

cpojer commented Aug 27, 2026

Copy link
Copy Markdown

This is a lot clearer, thank you!

hyfdev commented Aug 27, 2026 •

Copy link
Copy Markdown
Member

Merge activity

  • Aug 27, 3:14 AM UTC: The merge label 'graphite: merge-when-ready' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Aug 27, 3:14 AM UTC: hyfdev added this pull request to the Graphite merge queue.
  • Aug 27, 3:20 AM UTC: Merged by the Graphite merge queue.

…elf (#10788)

The `[PLUGIN_TIMINGS]` warning said "Those rows are 100% of the build; the rest of the 100% is below" and "100% of 7.1s inside plugin hooks (7.4s)" when the listed rows added up to more than the build, and "… and N more below 1s or past the cap" for rows that were all over 1s.

Before, on a Vite build:

```
[PLUGIN_TIMINGS] Your build spent 100% of 7.1s inside plugin hooks (7.4s).
Measured inside the callback, so queue time is excluded and time the callback itself awaited is not:
  - @rolldown/plugin-babel transform (87%, 6.2s, 1175 calls)
  - vite:worker load (19%, 1.4s, 1 call)
  - vite-plugin-pwa load (18%, 1.3s, 1 call)
Those rows are 100% of the build; the rest of the 100% is below.
Not measurable — 2 hooks whose calls overlap, so elapsed time covers work other calls were doing. Profile with `node --cpu-prof`:
  - vite:asset load (402 calls)
  - pixelarticons-svg-icon load (59 calls)
See https://rolldown.rs/reference/InputOptions.checks#plugintimings for more details.
```

After:

```
[PLUGIN_TIMINGS] Plugin hooks ran for 7.4s. The build took 7.1s. Hooks such as `closeBundle` run after the build ends, so hook time can be more than build time.
The slowest hooks, timed inside each callback (the wait before a callback starts is excluded, the time it awaits is included):
  - @rolldown/plugin-babel transform (87%, 6.2s, 1175 calls)
  - vite:worker load (19%, 1.4s, 1 call)
  - vite-plugin-pwa load (18%, 1.3s, 1 call)
These rows add up to more than the total. Callbacks can overlap, so the same time counts for more than one row.
2 hooks are listed without a time. Their calls overlapped, so the time inside one call includes work from other calls. To find their cost, profile the build with `node --cpu-prof`:
  - vite:asset load (402 calls)
  - pixelarticons-svg-icon load (59 calls)
See https://rolldown.rs/reference/InputOptions.checks#plugintimings for more details.
```

When the rows add up to less than the total, the sentence is "Additional hook time came from the hooks below and from hooks under 1s." with no number, because the rows are a sum of spans and the headline is their union.
@graphite-app
graphite-app Bot force-pushed the fix/plugin-timings-warning-wording branch from 74d0c1b to 3ce2f28 Compare August 27, 2026 03:15
@graphite-app
graphite-app Bot merged commit 3ce2f28 into main Aug 27, 2026
36 checks passed
@graphite-app
graphite-app Bot deleted the fix/plugin-timings-warning-wording branch August 27, 2026 03:20
@rolldown-guard rolldown-guard Bot mentioned this pull request Sep 2, 2026
shulaoda added a commit that referenced this pull request Sep 2, 2026
## [1.2.7] - 2026-09-02

### 🐛 Bug Fixes

- rolldown_binding: make `PreRenderedChunk.facadeModuleId` nullable like Rollup (#10810) by @IWANABETHATGUY
- plugin_timings: reword the warning so it does not contradict itself (#10788) by @IWANABETHATGUY
- model a facade's host import in the fold cycle check (#10743) by @ulrichstark

### 🧪 Testing

- dev: add circular reexport test (#10563) by @sapphi-red

### ⚙️ Miscellaneous Tasks

- deps: update npm packages (#10795) by @renovate[bot]
- deps: update rust crates (#10794) by @renovate[bot]
- deps: update dependency rolldown-plugin-dts to v0.28.3 (#10805) by @renovate[bot]
- renovate: disable oxc auto-updates (#10813) by @IWANABETHATGUY
- deps: upgrade oxc to 0.148.0 (#10809) by @camc314
- deps: update pnpm to v11.24.0 (#10803) by @renovate[bot]
- deps: update crate-ci/typos action to v1.50.0 (#10806) by @renovate[bot]
- deps: update test262 submodule for tests (#10808) by @rolldown-guard[bot]
- deps: update rollup submodule for tests to v4.63.1 (#10807) by @rolldown-guard[bot]
- deps: update crate-ci/typos action to v1.49.1 (#10796) by @renovate[bot]
- deps: update github actions (#10749) by @renovate[bot]

Co-authored-by: shulaoda <[email protected]>

This branch was previously deployed

1 inactive deployment
void — 3ce2f28e Deployed Aug 27, 2026 by graphite-app[bot] via Deploy to Void #4176
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.

3 participants