Skip to content

Commit

Permalink
remove heapdump
Browse files Browse the repository at this point in the history
I'll be using --inspect from nodejs/node#6792
  • Loading branch information
shimaore committed Oct 19, 2016
1 parent de1fbcc commit af53bd6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
15 changes: 0 additions & 15 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
var heapdump = require('heapdump')
var PouchDB = require('pouchdb-core')

var plugin = null
Expand Down Expand Up @@ -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();
Expand All @@ -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)
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"author": "Stéphane Alnet <[email protected]> (https://stephane.shimaore.net/)",
"license": "Unlicense",
"dependencies": {
"heapdump": "^0.3.7",
"pouchdb-adapter-http": "^6.0.7",
"pouchdb-core": "^6.0.7"
}
Expand Down

0 comments on commit af53bd6

Please sign in to comment.