Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to show the name of the module that took the longest to build? #87

Open
weijian19391 opened this issue Jun 29, 2019 · 1 comment

Comments

@weijian19391
Copy link

When using the plugin with options.outputFormat === humanVerbose, it shows me the range like the following:

css-loader, and
sass-loader took 57,290 ms
  median       = 27,161 ms
  mean         = 30,044 ms
  s.d.         = 13,699.813 ms
  range        = (3,487 ms --> 52,241 ms)
  module count = 92

I assume that the range shows the module that build the fastest and the slowest, how do i go about tracking the slowest module? Can smp show me the module name?

@stephencookdev
Copy link
Owner

Yeah, you assume correctly about what that range is showing you. So you won't be able to get that information out from humanVerbose right now, you could get it out of the json blob, but it'll be a lot harder to make heads or tails of.

It wouldn't be too hard at all to make SMP log that information out, if you look at the code that logs out the range, there. If you have time to look at a PR for that, I would appreciate that 😄 Here's where you'd be able to get the data easily, and push it through

averages.range = range(durationList);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants