time-memory-consumption
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

time-memory-consumption

Module will help you to find how much time consumed by the script on the given frame. Module will help you to show memory usage at a given point.

usage

var watcher = require('time-memory-consumption');
watcher.startWatch('watcher1');
setTimeout(function () {
    let results =  watcher.stopWatch('watcher1');
    let currentUsageMemory = watcher.showMemoryUsage();
    console.log(results);
    console.log(currentUsageMemory);
}, 1000)

/time-memory-consumption/

    Package Sidebar

    Install

    npm i time-memory-consumption

    Weekly Downloads

    8

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    10.4 kB

    Total Files

    15

    Last publish

    Collaborators

    • parthiban_balaji