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

[APM] Optimize APM bundle #71843

Closed
sorenlouv opened this issue Jul 15, 2020 · 2 comments
Closed

[APM] Optimize APM bundle #71843

sorenlouv opened this issue Jul 15, 2020 · 2 comments
Labels
performance Team:APM All issues that need APM UI Team support technical debt Improvement of the software architecture and operational architecture

Comments

@sorenlouv
Copy link
Member

sorenlouv commented Jul 15, 2020

Inspired by #67654 which optimized the infra bundle with 90% by introducing lazy loading we should attempt to do the same for APM.

Helpful comment from @weltenwort:

I used https://github.com/webpack-contrib/webpack-bundle-analyzer to analyze the webpack stats json files. To generate these files I used node scripts/build_kibana_platform_plugins.js --no-core --no-examples --profile --workers=2 with and without --dist before and after my changes

  • Create webpack stats
    • node scripts/build_kibana_platform_plugins.js --no-core --no-examples --profile --workers=2 with and without --dist
  • Find the APM bundle in x-pack/plugins/apm/target/public/apm.plugin.js. This should be as small as possible.
  • To find ways to reduce the size of the APM bundle find the stats file in x-pack/plugins/apm/target/public/stats.js
  • Analyze stats.json file using one of the two:

image

@sorenlouv sorenlouv added [zube]: Inbox performance Team:APM All issues that need APM UI Team support technical debt Improvement of the software architecture and operational architecture labels Jul 15, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

@sorenlouv
Copy link
Member Author

Fixed in #74740 by @shahzad31 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Team:APM All issues that need APM UI Team support technical debt Improvement of the software architecture and operational architecture
Projects
None yet
Development

No branches or pull requests

2 participants