Memory Analysis & Debugging Library
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
Use Npm :-
npm install memory-luck -DUse Yarn:-
yarn add memory-luck --devrun & 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()-
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.
Warning
Devloper Depends Only