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

Add basic memory profiling script to dev/ folder. #238

Merged
merged 1 commit into from
Oct 29, 2019

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Oct 29, 2019

This script is used for gathering basic memory statistics. It takes a heapsnapshot at the following locations:

  • new FastBoot({ distPath: '...' }) - Saved in snapshots/0-setup.heapsnapshot
  • await fastboot.visit('/') - Saved in snapshots/1-first-visit.heapsnapshot
  • await fastboot.visit('/') - Saved in snapshots/2-second-visit.heapsnapshot
  • await fastboot.visit('/') - Saved in snapshots/3-third-visit.heapsnapshot

General usage and evaluation steps:

  1. run the script (e.g. node dev/memory-usage.js)
  2. Navigate Chrome to the about:blank
  3. Open the Chrome DevTools
  4. Click into the "Memory" tab.
  5. Click "Load" and load each of the files above (in order)
  6. Review / evaluate

This script is used for gathering basic memory statistics. It takes a
heapsnapshot at the following locations:

- `new FastBoot({ distPath: '...' })` - Saved in `snapshots/0-setup.heapsnapshot`
- `await fastboot.visit('/')` - Saved in `snapshots/1-first-visit.heapsnapshot`
- `await fastboot.visit('/')` - Saved in `snapshots/2-second-visit.heapsnapshot`
- `await fastboot.visit('/')` - Saved in `snapshots/3-third-visit.heapsnapshot`

General usage and evaluation steps:

1. run the script (e.g. `node dev/memory-usage.js`)
2. Navigate Chrome to the `about:blank`
3. Open the Chrome DevTools
4. Click into the "Memory" tab.
5. Click "Load" and load each of the files above (in order)
6. Review / evaluate
@rwjblue rwjblue merged commit 5ad17de into ember-fastboot:master Oct 29, 2019
@rwjblue rwjblue deleted the memory-dump-script branch October 29, 2019 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant