You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generate Chrome profile file which includes timings of plugins execution. Outputs `events.json` file by default. It is possible to provide custom file path using `outputPath` option.
8
+
9
+
## Options
10
+
11
+
-`outputPath`: A relative path to a custom output file (json)
12
+
13
+
## Usage: default
14
+
15
+
```js
16
+
newwebpack.debug.ProfilingPlugin()
17
+
```
18
+
19
+
## Usage: custom `outputPath`
20
+
21
+
```js
22
+
newwebpack.debug.ProfilingPlugin({
23
+
outputPath:"profiling/profileEvents.json"
24
+
})
25
+
```
26
+
27
+
In order to view the profile file:
28
+
29
+
- Run webpack with `ProfilingPlugin`.
30
+
- Go to Chrome, open the `Profile Tab`.
31
+
- Drag and drop generated file (`events.json` by default) into the profiler.
32
+
33
+
It will then display timeline stats and calls per plugin!
0 commit comments