-
Notifications
You must be signed in to change notification settings - Fork 27.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix dhat support for turbo dev (#67166)
Build next-swc using the dhat feature: ``` pnpm pack-next --features __internal_dhat-heap ``` ### Testing with dev ``` pnpm dev --turbo ``` Hit <kbd>ctrl</kbd>+<kbd>c</kbd>, and see the dhat output: ``` [dhat]: Teardown profiler dhat: Total: 10,246,437 bytes in 84,934 blocks dhat: At t-gmax: 4,129,935 bytes in 42,733 blocks dhat: At t-end: 4,118,268 bytes in 42,728 blocks dhat: The data has been saved to dhat-heap.json, and is viewable with dhat/dh_view.html ``` ### Check that we didn't regress turbotrace Modify a project's `next.config.mjs` to enable turbotrace: ``` experimental: { turbotrace: {} } ``` run `pnpm build` and see that we get output from dhat at the end: ``` dhat: Total: 108,876,305 bytes in 716,123 blocks dhat: At t-gmax: 53,145,524 bytes in 338,440 blocks dhat: At t-end: 53,145,524 bytes in 338,440 blocks dhat: The data has been saved to dhat-heap.json, and is viewable with dhat/dh_view.html ```
- Loading branch information
Showing
8 changed files
with
45 additions
and
82 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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