Easiest way to get paulirish's memory-stats.js memory stats and mrdoobs stats.js running in an ember-app. Please refer to the memory-stats.js repo or stats.js repo for further documentation.
ember install:addon ember-browsery-stats
- To conditionally enable this addon only while in development:
// Brocfile.js
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var app = new EmberApp({
browseryStats: EmberApp.env() === 'development'
});
module.exports = app;
- Start Chrome with
--enable-precise-memory-info
- Otherwise the results from performance.memory are bucketed and less useful.
ember server
- Visit your app at http://localhost:4200.
ember test
ember test --server
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.