react-memorystats

1.1.0 • Public • Published

react-memory-stats

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

image

Installation

yarn add react-memorystats

Usage

import { render } from 'react-dom';
import MemoryStatsComponent from 'react-memorystats';

render(
  <MemoryStatsComponent corner="topLeft" />,
  document.getElementById("container")
);

Config

  • corner - topLeft, topRight (default), bottomLeft, bottomRight

check the example code here.

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.

Development

// install dependencies
yarn install
// run example locally and start server
yarn start
 

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    209
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    209
  • 1.0.0
    3
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i react-memorystats

Weekly Downloads

19

Version

1.1.0

License

MIT

Last publish

Collaborators

  • vignesh.shanmugam