Skip to content

Ruwantha-OFFICIAL/memory-luck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

memory-luck

Memory Analysis & Debugging Library

Downloads NPM version Socket Badge Socket Badge

why ?

When you are optimizing Node.js application performance & memory, you will need an analyzing tool or library. You can use a tool like memory-luck, or any other tool you need

Installation 📥

Use Npm :-

npm install memory-luck -D

Use Yarn:-

yarn add memory-luck --dev

Example 🥸

run & anlays this code

import {autoAnlays} from '../dist/index.js';

function workCheck(){
  let up = [];
  const intervalId = setInterval(() => {
    up.push({
      val: Array(5000).fill("luck at"),
      val2:"luck"
    })
  }, 100);
  setInterval(() => {
    //clear up array
    up = [];
  }, 8000);
  autoAnlays(2000,0.05)
}
workCheck()

Methods ⚙️

  • autoAnlays(delay,headup)

    • delay :(number):- Defines the time interval in milliseconds between each execution of the analysis.
    • headup :(number):- The primary input parameter representing the data or target value to be processed during each analysis cycle.
  • manuleAnlays(delay,callback)

    • callback :(function(nunumber)):- Process and analyze memory usage manually.

Issues 🐛

GitHub issues

GitHub stars

Warning

Devloper Depends Only

OWNER RUWANTHA :shipit:

About

Memory-luck is memory usage & Memory lik Anlys developer tool

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors