ProfilingPlugin

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.

Options

  • outputPath: A relative path to a custom output file (json)

Usage: default

  1. new webpack.debug.ProfilingPlugin();

Usage: custom outputPath

  1. new webpack.debug.ProfilingPlugin({
  2. outputPath: 'profiling/profileEvents.json'
  3. });

In order to view the profile file:

NaN. Run webpack with ProfilingPlugin. NaN. Go to Chrome, open DevTools, and go to the Performance tab (formerly Timeline). NaN. Drag and drop generated file (events.json by default) into the profiler.

It will then display timeline stats and calls per plugin!


贡献人员

EugeneHlushko EugeneHlushko byzyk byzyk