Skip to content

[BUG]: Reporting incorrect timing #5

@subha84

Description

@subha84

Describe the bug
The timing reported by the plugin is not matching up with the final timing. It is not even close time the whole build process is taking.

To Reproduce
No - The code cannot be shared for copyright reasons.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots

[15:56:31] �[32minfo�[39m: + config-overrides: webpack config (1.27 s)
[15:56:32] �[32minfo�[39m: + Creating an optimized production build...
[15:56:32] �[31merror�[39m: + (node:13804) [DEP_WEBPACK_COMPILATION_OPTIMIZE_CHUNK_ASSETS] DeprecationWarning: optimizeChunkAssets is deprecated (use Compilation.hooks.processAssets instead and use one of Compilation.PROCESS_ASSETS_STAGE_* as stage option)
[15:56:32] �[31merror�[39m: + (Use node --trace-deprecation ... to show where the warning was created)
[15:58:04] �[32minfo�[39m: + ┌── time-analytics-webpack-plugin
[15:58:04] �[32minfo�[39m: + │ Webpack compile takes 91435.4843 ms
[15:58:04] �[32minfo�[39m: + ├── Plugins
[15:58:04] �[32minfo�[39m: + │ Plugin MonacoEditorWebpackPlugin takes 43681.1746 ms
[15:58:04] �[32minfo�[39m: + │ Plugin ESBuildMinifyPlugin takes 11997.3791 ms
[15:58:04] �[32minfo�[39m: + │ Plugin CssMinimizerPlugin takes 9700.0434 ms
[15:58:04] �[32minfo�[39m: + │ Plugin WebpackManifestPlugin takes 5569.0431 ms
[15:58:04] �[32minfo�[39m: + │ Plugin HtmlWebpackPlugin takes 2763.2416 ms
[15:58:04] �[32minfo�[39m: + │ Plugin SvgCompilePlugin takes 2341.8081 ms
[15:58:04] �[32minfo�[39m: + │ Plugin CopyPlugin takes 1246.4570 ms
[15:58:04] �[32minfo�[39m: + │ Plugin ConfigBuilderPlugin takes 55.3637 ms
[15:58:04] �[32minfo�[39m: + │ Plugin MiniCssExtractPlugin takes 32.5483 ms
[15:58:04] �[32minfo�[39m: + │ Plugin TerserPlugin takes 12.8165 ms
[15:58:04] �[32minfo�[39m: + │ Plugin DefinePlugin takes 4.4297 ms
[15:58:04] �[32minfo�[39m: + │ Plugin VmDepsCachePlugin takes 1.6727 ms
[15:58:04] �[32minfo�[39m: + │ Plugin InlineChunkHtmlPlugin takes 0.2375 ms
[15:58:04] �[32minfo�[39m: + │ Plugin ModuleNotFoundPlugin takes 0.2255 ms
[15:58:04] �[32minfo�[39m: + │ Plugin ProvidePlugin takes 0.1858 ms
[15:58:04] �[32minfo�[39m: + │ Plugin InterpolateHtmlPlugin takes 0.0549 ms
[15:58:04] �[32minfo�[39m: + │ All plugins take 77406.6815 ms
[15:58:04] �[32minfo�[39m: + ├── Loaders
[15:58:04] �[32minfo�[39m: + │ Loader babel-loader takes 1000254.8325 ms
[15:58:04] �[32minfo�[39m: + │ Loader mini-css-extract-plugin takes 105795.9664 ms
[15:58:04] �[32minfo�[39m: + │ Loader source-map-loader takes 29868.4696 ms
[15:58:04] �[32minfo�[39m: + │ Loader @swf/tooling takes 9012.2357 ms
[15:58:04] �[32minfo�[39m: + │ Loader @swf/tooling takes 1842.5167 ms
[15:58:04] �[32minfo�[39m: + │ Loader postcss-loader takes 325.2250 ms
[15:58:04] �[32minfo�[39m: + │ Loader css-loader takes 90.8823 ms
[15:58:04] �[32minfo�[39m: + │ Loader @swf/tooling takes 7.2237 ms
[15:58:04] �[32minfo�[39m: + │ Loader @swf/tooling takes 5.9137 ms
[15:58:04] �[32minfo�[39m: + │ Loader @swf/tooling takes 2.5375 ms
[15:58:04] �[32minfo�[39m: + │ Loader @swf/tooling takes 2.5195 ms
[15:58:04] �[32minfo�[39m: + │ Loader @swf/tooling takes 2.1642 ms
[15:58:04] �[32minfo�[39m: + │ Loader @swf/tooling takes 1.6582 ms
[15:58:04] �[32minfo�[39m: + │ Loader @swf/tooling takes 1.4676 ms
[15:58:04] �[32minfo�[39m: + │ Loader @swf/tooling takes 0.7984 ms
[15:58:04] �[32minfo�[39m: + │ Loader @swf/tooling takes 0.4106 ms
[15:58:04] �[32minfo�[39m: + │ Loader @swf/tooling takes 0.3982 ms
[15:58:04] �[32minfo�[39m: + │ Loader @swf/tooling takes 0.2583 ms
[15:58:04] �[32minfo�[39m: + │ Loader @swf/tooling takes 0.2370 ms
[15:58:04] �[32minfo�[39m: + │ Loader @swf/tooling takes 0.0970 ms
[15:58:04] �[32minfo�[39m: + │ There are many different loaders that have same assumed name. Consider use "loader.groupedByAbsolutePath" option to show the full path of loaders.
[15:58:04] �[32minfo�[39m: + │ All loaders take 1147215.8121 ms
[15:58:04] �[32minfo�[39m: + ... linked out/site/showcase to out/site_last
[15:58:04] �[32minfo�[39m: Compiled successfully. (1.53 min)
[15:58:10] �[32minfo�[39m: Successful (1.73 min)

The whole build process is taking 1.73 mins but the tool is reporting incorrectly.
Timing reported by the tools
Loaders : 1147215.8121 ms = ~19min
Plugins: 77406.6815ms = ~1.5 mins

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions