Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion website/docs/en/guide/debug/build-profiling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ As Windows does not support the above usage, you can also use [cross-env](https:
}
```

When the build command is finished, or the dev server is shut down, Rsbuild will create a `.rspack-profile-${timestamp}-${pid}` folder in the current directory, containing a `trace.json` file, which is generated by Rspack based on [tracing](https://github.com/tokio-rs/tracing) and records the time spent on each phase at a granular level, and can be viewed using [ui.perfetto.dev](https://ui.perfetto.dev/).
When the build command is finished, or the dev server is shut down, Rsbuild will create a `.rspack-profile-${timestamp}-${pid}` folder in the current directory, containing a `rspack.pftrace` file (in versions before 1.4.0, it was `trace.json`), which is generated by Rspack based on [tracing](https://github.com/tokio-rs/tracing) and records the time spent on each phase at a granular level, and can be viewed using [ui.perfetto.dev](https://ui.perfetto.dev/).

:::tip

Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh/guide/debug/build-profiling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Rsbuild 支持使用 `RSPACK_PROFILE` 环境变量来对 Rspack 进行构建性
}
```

当 build 命令执行完成,或是 dev server 被关闭时,Rsbuild 会在当前目录下生成一个 `.rspack-profile-${timestamp}-${pid}` 文件夹,其中包含 `trace.json` 文件,该文件由 Rspack 基于 [tracing](https://github.com/tokio-rs/tracing) 细粒度地记录了各个阶段的耗时,可以使用 [ui.perfetto.dev](https://ui.perfetto.dev/) 进行查看。
当 build 命令执行完成,或是 dev server 被关闭时,Rsbuild 会在当前目录下生成一个 `.rspack-profile-${timestamp}-${pid}` 文件夹,其中包含 `rspack.pftrace` 文件(在 1.4.0 之前的版本中为 `trace.json`),该文件由 Rspack 基于 [tracing](https://github.com/tokio-rs/tracing) 细粒度地记录了各个阶段的耗时,可以使用 [ui.perfetto.dev](https://ui.perfetto.dev/) 进行查看。

:::tip

Expand Down
Loading