From af53bd692cc7b47464603f6f98b40fe09f3410bb Mon Sep 17 00:00:00 2001 From: Stephane Alnet Date: Wed, 19 Oct 2016 10:31:38 +0200 Subject: [PATCH] remove heapdump I'll be using --inspect from https://github.com/nodejs/node/pull/6792 --- index.js | 15 --------------- package.json | 1 - 2 files changed, 16 deletions(-) diff --git a/index.js b/index.js index 82d215d..228f659 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,3 @@ -var heapdump = require('heapdump') var PouchDB = require('pouchdb-core') var plugin = null @@ -60,20 +59,8 @@ function measure() { var run = setInterval(function onMemleakInterval() { - global.gc(); - overall++; - if(overall === max_waiting + max_counter + 10) { - console.log('heap dump') - heapdump.writeSnapshot(plugin_name+'-middle.heapsnapshot') - } - - if(waiting == 2) { - console.log('heap dump') - heapdump.writeSnapshot(plugin_name+'-start.heapsnapshot') - } - if(waiting > 0) { waiting--; measure(); @@ -100,6 +87,4 @@ var run = setInterval(function onMemleakInterval() { /* TIME_WAIT will stay for 4 minutes, so wait at least that long */ setTimeout(function onFinalTimeout(){ clearInterval(run) - console.log('heap dump') - heapdump.writeSnapshot(plugin_name+'-end.heapsnapshot') },300*1000) diff --git a/package.json b/package.json index 76ade53..7191dcb 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,6 @@ "author": "Stéphane Alnet (https://stephane.shimaore.net/)", "license": "Unlicense", "dependencies": { - "heapdump": "^0.3.7", "pouchdb-adapter-http": "^6.0.7", "pouchdb-core": "^6.0.7" }