Repository navigation
feat(@angular-devkit/build-angular): add profile option to browser builder - #11497
Conversation
| "source-map": "^0.5.6", | ||
| "source-map-loader": "^0.2.3", | ||
| "source-map-support": "^0.5.0", | ||
| "speed-measure-webpack-plugin": "^1.2.2", |
There was a problem hiding this comment.
This should use the new webpack/lib/debug/ProfilingPlugin instead of installing a new package.
There was a problem hiding this comment.
It does both actually.
There was a problem hiding this comment.
What does speed-measure-webpack-plugin does that ProfilingPlugin doesn't? I don't want to add an additional dependency if there's little to no benefit.
There was a problem hiding this comment.
ProfilingPlugin gives you a chrome perf profile, while SpeedMeasurePlugin gives you total aggregated time per plugin and loader.
It's hard to get that overview with just ProfilingPlugin because the events not necessarily together.
Loaders, for instance, can have many tiny events all over the place, that can add up quickly.
The API to consume SpeedMeasurePlugin is also easier to parse so we can use it to automatocally track individual plugin and loader performance over time instead of just build time.
I think those are the main differences.
…ilder This should help users send us profile logs for builds that take too long.
fbc4b53 to
047f5e3
Compare
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This should help users send us profile logs for builds that take too long.
Blocked on #11488 due to webpack/webpack#7450.