From 3349db330d78a988ec7b9e15ee61f60e921e3c73 Mon Sep 17 00:00:00 2001 From: David Rajchenbach-Teller Date: Mon, 25 Jan 2016 13:00:42 +0100 Subject: [PATCH] Resolves #66 - Display bhr markers --- js/histogram.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/histogram.js b/js/histogram.js index 6a4c81a..ef5f97c 100644 --- a/js/histogram.js +++ b/js/histogram.js @@ -512,10 +512,11 @@ var HistogramContainer; // markers are combined if they are at the same time var lastMarkerTime = -1; if (this.markers) { + const MARKER_TYPES_TO_DISPLAY = ["stack", "bhr"]; for (var j = 0; j < this.markers.length; j++) { var marker = this.markers[j]; // ignore markers that have data/category (waterfall markers) - if (marker.type == "stack" || !marker.data || !marker.data.category && marker.name != "gpu_timer_query") { + if (MARKER_TYPES_TO_DISPLAY.includes(marker.type) || !marker.data || !marker.data.category && marker.name != "gpu_timer_query") { // if the previous first marker of a set and this marker are // within the same pixel, combine them if (lastMarkerTime != -1 && (lastMarkerTime + 5*step / barWidth > marker.time)) {