Skip to content

Conversation

dav-is
Copy link
Member

@dav-is dav-is commented Sep 10, 2025

Based on top of PR: #379

Uses native performance.mark and performance.measure

Then outputs a log during build using a PerformanceObserver

These marks and measures should appear in the Chrome performance tab (but during the webpack build, are logged if enabled).

Performance logging in the webpack loaders can be enabled in the Next.js plugin:

withDocsInfra({
  performance: {
    logging: true,
    notableMs: 100,

    // measures that contain other measures are hidden by default,
    // because they can be misleading
    showWrapperMeasures: false,
})

Base automatically changed from davis/add-code-highlighter-loader to master September 30, 2025 02:59
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Sep 30, 2025
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Sep 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: docs-infra Involves the docs-infra product (https://www.notion.so/mui-org/b9f676062eb94747b6768209f7751305).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants