myagoo / angular-memory-stats

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

angular-memory-stats

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

image

Install

npm i angular-memory-stats --save

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

Otherwise the results from performance.memory are bucketed and less useful.

Add the module to your Angular's dependencies

angular.module('yourModule', [
    'angular-memory-stats'
])

Insert the directive in the dom

<angular-memory-stats></angular-memory-stats>

Disable

angular-memory-stats is enabled by default, if you wish to disable it use the angularMemoryStatsProvider Provider

angular.module('yourModule').config(function(angularMemoryStatsProvider){
    angularMemoryStatsProvider.enable(false)
});

Contribute

sudo npm install webpack webpack-dev-server -g
npm install
webpack-dev-server --port 8080

Open http://localhost:8080

About

License:MIT License


Languages

Language:JavaScript 84.3%Language:CoffeeScript 15.7%