meta-horizonn-fca-huh
Version:
Facebook-Chat-API Protect and Deploy by Kanzu and HZI Team. Kem is redeveloped. Rename package is Meta Horizonn and package supported ChatBot Messenger. and make it lightweight package by jonell huh
19 lines (15 loc) • 412 B
JavaScript
const memwatch = require('memwatch-next');
// bắt đầu theo dõi memory
memwatch.on('leak', function(info) {
console.error('memory leak detected:');
console.error(info);
});
// Tạo một object để tạo memory leak
let myObj = {};
setInterval(function() {
for (let i = 0; i < 10000; i++) {
myObj[i] = new Array(10000);
}
}, 1000);
// force garbage collection để release memory leak
memwatch.gc();