Skip to content

Commit

Permalink
Merge pull request #10 from goto-bus-stop/space
Browse files Browse the repository at this point in the history
Add space between "on stack:" and percentage
  • Loading branch information
mcollina authored Aug 24, 2018
2 parents 6626b87 + 538e949 commit 1327508
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ function flameGraph (opts) {
if (!d.parent) return ''
var top = stackTop(d.data)
return d.data.name + '<br />' + (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)<br />'
: '') + '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)'
}

Expand Down

0 comments on commit 1327508

Please sign in to comment.