https://github.com/jantimon/cpuprofile-webpack-plugin
Generate a cpuprofile for your webpack builds
https://github.com/jantimon/cpuprofile-webpack-plugin
Last synced: 12 months ago
JSON representation
Generate a cpuprofile for your webpack builds
- Host: GitHub
- URL: https://github.com/jantimon/cpuprofile-webpack-plugin
- Owner: jantimon
- Created: 2019-01-04T09:45:56.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-28T08:26:50.000Z (over 1 year ago)
- Last Synced: 2024-10-12T18:15:54.602Z (over 1 year ago)
- Language: TypeScript
- Size: 10.8 MB
- Stars: 156
- Watchers: 4
- Forks: 4
- Open Issues: 40
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- awesome-list - cpuprofile-webpack-plugin
README
# cpuprofile-webpack-plugin
Generate a cpuprofile for your webpack builds
The profile can be imported into GoogleChrome Dev Tools.
In addition a [flame graph](https://github.com/spiermar/d3-flame-graph) representation is generated:

## ⚠️ Warning ⚠️
This library is a work in progress, use at your own risk. But feel free to help out where you see bugs or incomplete things!
## Usage
### cli
```
webpack --plugin cpuprofile-webpack-plugin
```
### dev-server
```
webpack-dev-server --plugin cpuprofile-webpack-plugin
```
### webpack.config.js
```js
const CpuProfilerWebpackPlugin = require('cpuprofile-webpack-plugin');
module.exports = {
plugins: [
new CpuProfilerWebpackPlugin()
]
}
```
## Example
[Example Profile (6MB)](http://jantimon.github.io/cpuprofile-webpack-plugin)