react-memory-stats

0.2.0 • Public • Published

react-memory-stats

This plugin is based on Paul Irish's memory-stats.

image

Install

npm install react-memory-stats --save

Start Chrome with --enable-precise-memory-info

# 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.

Add the module to your react's dependencies

var MemoryStatsComponent = require( 'react-memory-stats' );
...
render: function()
{
  return ( <MemoryStatsComponent enabled={true}/> );
}
 

Contribute

npm install
npm run build

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i react-memory-stats

Weekly Downloads

0

Version

0.2.0

License

MIT

Last publish

Collaborators

  • nicolasbrugneaux