Skip to content

BrunoRDS/cpupro-webpack-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPU Profile Webpack Plugin

Webpack provides a really detailed webpack.debug.ProfilingPlugin, but it only does CPU Profiling. Further, it doesn't seem to work with config arrays. We can do much better. We can leverage the work of @lahmatiy - the excellent cpupro: https://github.com/lahmatiy/cpupro CPU Profiler to generate a much better visualization of hot paths in our webpack plugins.

How to configure

Plug this into your webpack configuration like so:

const CPUProfileWebpackPlugin = require("cpupro-webpack-plugin");

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

You may want to specify an option with this plugin:

new CPUProfileWebpackPlugin({
  outputPath: "/some/place/my.cpuprofile"
})

About

CPU Profiling Plugin for Webpack

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%