0.0.2 • Published 8 years ago

Hubik-Plugin-Memory v0.0.2

Weekly downloads
13
License
MIT
Repository
github
Last release
8 years ago

#Hubik-Plugin-Memory

The memory plugin for Hubik.

##Requirement

  • Mac OS X
  • Nodejs >= 5.0.0

##Installation

npm install hubik-plugin-memory

##Usage

    var Hubik = require("hubik");
    var memory = require("hubik-plugin-memory");
    var hubik = new Hubik();
    hubik.install([memory]);
    hubik
        .suite(function($plugin){
            $plugin.enable(memory.name); //Enable the memory plugin.
            ...
        })
        .run(function(report){
            console.log(report)
        });

###result

    [ 
        { 
            jsHeapSizeUsed: 23515496, //bytes
            documents: 1, //count
            nodes: 4863, //count
            jsEventListeners: 60 //count
        }
        ,...
    ]

##Example

Hubik-Demo