瀏覽代碼

webhtml: reenable sort option for flamegraphs (#491)

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.
Ben Brooks 5 年之前
父節點
當前提交
a8b9f9d2d3
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      internal/driver/webhtml.go

+ 1
- 0
internal/driver/webhtml.go 查看文件

1094
       .transitionDuration(750)
1094
       .transitionDuration(750)
1095
       .transitionEase(d3.easeCubic)
1095
       .transitionEase(d3.easeCubic)
1096
       .inverted(true)
1096
       .inverted(true)
1097
+      .sort(true)
1097
       .title('')
1098
       .title('')
1098
       .tooltip(false)
1099
       .tooltip(false)
1099
       .details(document.getElementById('flamegraphdetails'));
1100
       .details(document.getElementById('flamegraphdetails'));