To get the info we need, you'll be building the app two different ways: the normal way you would with ember-cli-typescript
installed, and then with it removed, doing a transpile-only (no type checking) build with Babel.
For the Babel-only build:
- Remove
ember-cli-typescript
from yourpackage.json
and reinstall your dependencies. - Update your
ember-cli-build.js
following the instructions here.
Then run this test procedure for each of those:
-
Clear your cache:
rm -rf $TMPDIR/$USER/if-you-need-to-delete-this-open-an-issue-async-disk-cache
This is important because it guarantees you're getting a "clean" (or "cold") build with no caching.
-
Launch the build for debugging:
node --inspect-brk node_modules/.bin/ember build
-
Get up the memory profile:
- Launch a Chromium browser. (You can do it in FF but I don't actually know the flow!)
- Open dev tools.
- Click the little Node icon in the top left.
- Go to the Memory tab, select Allocation sampling, and click the Start button below the list of JavaScript VM instances.
- Go to the Sources tab and click the play button to resume script execution.
- Let the build run to completion. Once it reports the build is complete, go back to the Memory tab and click Stop. Wait for the profile to transition from "Stopping..." to showing the profile. Click Save.
-
Get a snapshot of your app's size: run tokei against your app so we can see how it scales with apps of different sizes. (Please use
tokei
and notcloc
or other tools so the data is consistent as people send this data back!)
That's it—just send me the memory profiles (ping me on Discord or email me) and I can dig into the analysis!