Skip to content

parthibanbalaji/time-memory-consumption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

To find the time and space taken by the function to exectue.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published