Skip to content

Commit af53bd6

Browse files
committed
remove heapdump
I'll be using --inspect from nodejs/node#6792
1 parent de1fbcc commit af53bd6

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

index.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
var heapdump = require('heapdump')
21
var PouchDB = require('pouchdb-core')
32

43
var plugin = null
@@ -60,20 +59,8 @@ function measure() {
6059

6160
var run = setInterval(function onMemleakInterval() {
6261

63-
global.gc();
64-
6562
overall++;
6663

67-
if(overall === max_waiting + max_counter + 10) {
68-
console.log('heap dump')
69-
heapdump.writeSnapshot(plugin_name+'-middle.heapsnapshot')
70-
}
71-
72-
if(waiting == 2) {
73-
console.log('heap dump')
74-
heapdump.writeSnapshot(plugin_name+'-start.heapsnapshot')
75-
}
76-
7764
if(waiting > 0) {
7865
waiting--;
7966
measure();
@@ -100,6 +87,4 @@ var run = setInterval(function onMemleakInterval() {
10087
/* TIME_WAIT will stay for 4 minutes, so wait at least that long */
10188
setTimeout(function onFinalTimeout(){
10289
clearInterval(run)
103-
console.log('heap dump')
104-
heapdump.writeSnapshot(plugin_name+'-end.heapsnapshot')
10590
},300*1000)

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"author": "Stéphane Alnet <stephane@shimaore.net> (https://stephane.shimaore.net/)",
1111
"license": "Unlicense",
1212
"dependencies": {
13-
"heapdump": "^0.3.7",
1413
"pouchdb-adapter-http": "^6.0.7",
1514
"pouchdb-core": "^6.0.7"
1615
}

0 commit comments

Comments
 (0)