Hubik-Plugin-Memory

0.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i Hubik-Plugin-Memory

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • ycinfinity