From 538e949ad03b6fe916ec9d1ff7da809ed95d43a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Fri, 24 Aug 2018 13:05:54 +0200 Subject: [PATCH] Add space between "on stack:" and percentage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tiny tweak that reads a bit better ``` Top of Stack:0.1% ``` → ``` Top of Stack: 0.1% ``` --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 54e6661..4ad81b7 100644 --- a/index.js +++ b/index.js @@ -110,9 +110,9 @@ function flameGraph (opts) { if (!d.parent) return '' var top = stackTop(d.data) return d.data.name + '
' + (top - ? 'Top of Stack:' + Math.round(100 * (top / allSamples) * 10) / 10 + '% ' + + ? 'Top of Stack: ' + Math.round(100 * (top / allSamples) * 10) / 10 + '% ' + '(' + top + ' of ' + allSamples + ' samples)
' - : '') + 'On Stack:' + Math.round(100 * (d.data.value / allSamples) * 10) / 10 + '% ' + + : '') + 'On Stack: ' + Math.round(100 * (d.data.value / allSamples) * 10) / 10 + '% ' + '(' + d.data.value + ' of ' + allSamples + ' samples)' }