Skip to content

Commit

Permalink
webhtml: reenable sort option for flamegraphs (google#491)
Browse files Browse the repository at this point in the history
This sorts flamegraph elements lexographiaclly such that two similar
profiles can be compared side-by-side to eyeball differences in
flamegraph profile shapes and sizes.
  • Loading branch information
bbrks authored and Gabriel Marin committed Dec 17, 2020
1 parent 560b20e commit c842aa3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/driver/webhtml.go
Original file line number Diff line number Diff line change
Expand Up @@ -1094,6 +1094,7 @@ function viewer(baseUrl, nodes) {
.transitionDuration(750)
.transitionEase(d3.easeCubic)
.inverted(true)
.sort(true)
.title('')
.tooltip(false)
.details(document.getElementById('flamegraphdetails'));
Expand Down

0 comments on commit c842aa3

Please sign in to comment.