Skip to content

Commit

Permalink
Merge commit '522ba45e191056f248167325138a1b347f1555e7' into cleanup-…
Browse files Browse the repository at this point in the history
…state-on-disconnect
  • Loading branch information
gnufied committed Jan 8, 2015
2 parents 0fb1202 + 522ba45 commit 2669b50
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions rbkit-charts/src/rbcharts.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ var Rbkit = {
// function to record gc end time
gcEnded: function (timestamp) {
if (!this.gcStartTime) {
console.info("not sure why gc start time is not set");
return;
}

Expand Down Expand Up @@ -306,17 +305,14 @@ var Rbkit = {
this.updateLiveObjectsChart(data.payload);
this.updateHeapChart(data.payload);
break;
case "disconnected":
this.reset();
break;
}
},

reset: function() {
this.liveObjectsChart.destroy();
this.heapDataChart.destroy();
this.gcChart.destroy();
this.youngGenerationChart.destroy();
this.secondGenerationChart.destroy();
this.oldGenerationChart.destroy();
this.updateGcStats({});
location.reload();
}
};

Expand Down

0 comments on commit 2669b50

Please sign in to comment.