购物车
登陆 / 注册
微信扫码登陆

推荐手册

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

new webpack.debug.ProfilingPlugin()

Usage: custom outputPath

new webpack.debug.ProfilingPlugin({
  outputPath: "profiling/profileEvents.json"})

In order to view the profile file:

  • Run webpack with ProfilingPlugin.
  • Go to Chrome, open the Profile Tab.
  • Drag and drop generated file (events.json by default) into the profiler.

It will then display timeline stats and calls per plugin!

网站导航
标签地图
学习路径
视频教程
开发软件
旗下子站
php中文网
phpstudy
技术文章
文档工具
关于我们
企业合作
人才招聘
联系我们
讲师招募
QQ交流群
QQ官方交流群
微信公众号
微信公众号