Movatterモバイル変換


[0]ホーム

URL:


webpack logo
ag grid
ag charts

ProfilingPlugin

Generate Chrome profile file which includes timings of plugins execution. Outputsevents.json file by default. It is possible to provide custom file path usingoutputPath option.

Note : ProfilingPlugin accepts only absolute paths.

Options

  • outputPath: An absolute path to a custom output file (json)

Usage: default

newwebpack.debug.ProfilingPlugin();

Usage: customoutputPath

newwebpack.debug.ProfilingPlugin({  outputPath: path.join(__dirname,'profiling/profileEvents.json'),});

In order to view the profile file:

  1. Run webpack withProfilingPlugin.
  2. Go to Chrome, open DevTools, and go to thePerformance tab (formerlyTimeline).
  3. Drag and drop generated file (events.json by default) into the profiler.

It will then display timeline stats and calls per plugin!

3 Contributors

EugeneHlushkobyzykakgupta0777

[8]ページ先頭

©2009-2025 Movatter.jp