Skip to content

hulkish/cpuprofile-webpack-plugin

 
 

Repository files navigation

cpuprofile-webpack-plugin

Generate a cpuprofile for your webpack builds
The profile can be imported into GoogleChrome Dev Tools.

In addition a flame graph representation is generated: Flame Graph Example

Usage

cli

webpack --plugin cpuprofile-webpack-plugin

dev-server

webpack-dev-server --plugin cpuprofile-webpack-plugin

webpack.config.js

const CpuProfilerWebpackPlugin = require('cpuprofile-webpack-plugin');

module.exports = {
  plugins: [
    new CpuProfilerWebpackPlugin()
  ]
}

Example

Example Profile (6MB)

About

Generate a cpuprofile for your webpack builds

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 83.9%
  • JavaScript 9.4%
  • HTML 4.1%
  • CSS 2.6%