diff --git a/assets/index.html b/assets/index.html
index 6bbf522..4a6e1d8 100644
--- a/assets/index.html
+++ b/assets/index.html
@@ -65,20 +65,20 @@
GC and memory statistics
- Maximum residency |
- 0 |
+ Maximum live heap data |
+ 0 |
- Current residency |
- 0 |
+ Current live heap data |
+ 0 |
- Maximum slop |
- 0 |
+ Maximum slop (heap holes) |
+ 0 |
Current slop |
- 0 |
+ 0 |
Productivity (wall clock time) |
diff --git a/assets/monitor.js b/assets/monitor.js
index 558334f..a138d4b 100644
--- a/assets/monitor.js
+++ b/assets/monitor.js
@@ -333,41 +333,41 @@ $(document).ready(function () {
function initAll() {
// Metrics
- var current_bytes_used = function (stats) {
- return stats.rts.gc.current_bytes_used.val;
+ var max_live_bytes = function (stats) {
+ return stats.rts.max_live_bytes.val;
};
- var max_bytes_used = function (stats) {
- return stats.rts.gc.max_bytes_used.val;
+ var live_bytes = function (stats) {
+ return stats.rts.gc.live_bytes.val;
};
- var max_bytes_slop = function (stats) {
- return stats.rts.gc.max_bytes_slop.val;
+ var max_slop_bytes = function (stats) {
+ return stats.rts.max_slop_bytes.val;
};
- var current_bytes_slop = function (stats) {
- return stats.rts.gc.current_bytes_slop.val;
+ var slop_bytes = function (stats) {
+ return stats.rts.gc.slop_bytes.val;
};
var productivity_wall_percent = function (stats, time, prev_stats, prev_time) {
if (prev_stats == undefined)
return null;
- var mutator_ms = stats.rts.gc.mutator_wall_ms.val -
- prev_stats.rts.gc.mutator_wall_ms.val;
- var gc_ms = stats.rts.gc.gc_wall_ms.val -
- prev_stats.rts.gc.gc_wall_ms.val;
- return 100 * mutator_ms / (mutator_ms + gc_ms);
+ var mutator_ns = stats.rts.mutator_elapsed_ns.val -
+ prev_stats.rts.mutator_elapsed_ns.val;
+ var gc_ns = stats.rts.gc_elapsed_ns.val -
+ prev_stats.rts.gc_elapsed_ns.val;
+ return 100 * mutator_ns / (mutator_ns + gc_ns);
};
var productivity_cpu_percent = function (stats, time, prev_stats, prev_time) {
if (prev_stats == undefined)
return null;
- var mutator_ms = stats.rts.gc.mutator_cpu_ms.val -
- prev_stats.rts.gc.mutator_cpu_ms.val;
- var gc_ms = stats.rts.gc.gc_cpu_ms.val -
- prev_stats.rts.gc.gc_cpu_ms.val;
- return 100 * mutator_ms / (mutator_ms + gc_ms);
+ var mutator_ns = stats.rts.mutator_cpu_ns.val -
+ prev_stats.rts.mutator_cpu_ns.val;
+ var gc_ns = stats.rts.gc_cpu_ns.val -
+ prev_stats.rts.gc_cpu_ns.val;
+ return 100 * mutator_ns / (mutator_ns + gc_ns);
};
var allocation_rate = function (stats, time, prev_stats, prev_time) {
if (prev_stats == undefined)
return null;
- return 1000 * (stats.rts.gc.bytes_allocated.val -
- prev_stats.rts.gc.bytes_allocated.val) /
+ return 1000 * (stats.rts.allocated_bytes.val -
+ prev_stats.rts.allocated_bytes.val) /
(time - prev_time);
};
@@ -375,7 +375,7 @@ $(document).ready(function () {
// Plots
addPlot($("#current-bytes-used-plot > div"),
- [{ label: "residency", fn: current_bytes_used }],
+ [{ label: "residency", fn: live_bytes }],
{ yaxis: { tickFormatter: suffixFormatter } });
addPlot($("#allocation-rate-plot > div"),
[{ label: "rate", fn: allocation_rate }],
@@ -386,10 +386,10 @@ $(document).ready(function () {
{ yaxis: { tickDecimals: 1, tickFormatter: percentFormatter } });
// GC and memory statistics
- addCounter($("#max-bytes-used"), max_bytes_used, formatSuffix);
- addCounter($("#current-bytes-used"), current_bytes_used, formatSuffix);
- addCounter($("#max-bytes-slop"), max_bytes_slop, formatSuffix);
- addCounter($("#current-bytes-slop"), current_bytes_slop, formatSuffix);
+ addCounter($("#max-live-bytes"), max_live_bytes, formatSuffix);
+ addCounter($("#live-bytes"), live_bytes, formatSuffix);
+ addCounter($("#max-slop-bytes"), max_slop_bytes, formatSuffix);
+ addCounter($("#slop-bytes"), slop_bytes, formatSuffix);
addCounter($("#productivity-wall"), productivity_wall_percent, formatPercent);
addCounter($("#productivity-cpu"), productivity_cpu_percent, formatPercent);
addCounter($("#allocation-rate"), allocation_rate, formatRate);