Licence
ISC
Version
1.0.0
Deps
2
Size
13 kB
Vulns
0
Weekly
0
memory-luck
Memory Analysis & Debugging Library
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
Devloper Depends Only