This plugin is based on Paul Irish's memory-stats.
npm install react-memory-stats --save
# Linux
google-chrome --enable-precise-memory-info --enable-memory-info
#MacOS
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --enable-precise-memory-info --enable-memory-info
Otherwise the results from performance.memory are bucketed and less useful.
var MemoryStatsComponent = require( 'react-memory-stats' );
...
render: function()
{
return ( <MemoryStatsComponent enabled={true}/> );
}
npm install
npm run build