Skip to content

Commit

Permalink
Add space between "on stack:" and percentage
Browse files Browse the repository at this point in the history
tiny tweak that reads a bit better

```
Top of Stack:0.1%
```
→
```
Top of Stack: 0.1%
```
  • Loading branch information
goto-bus-stop committed Aug 24, 2018
1 parent 9dba7d3 commit 538e949
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 538e949

Please sign in to comment.