Skip to content

Commit

Permalink
chore: improve visuals of flame graph
Browse files Browse the repository at this point in the history
  • Loading branch information
P403n1x87 committed Jan 10, 2024
1 parent fe2c279 commit 8174e9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
- Fixed a visualisation bug that caused some frames to be aggregated incorrectly
by scope name only, resulting in incorrect flame graph visualisations.

- General visual improvements to heat maps and flame graphs.

## [0.17.0]

- Added support for the `${file}` and `${workspaceFolder}` placeholders in the
Expand Down
2 changes: 1 addition & 1 deletion media/flamegraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ var stringToColour = function (data, highlight = false) {
let h = hash(module) % 360;
let s = hash(scope) % 10;
let isPy = module.endsWith(".py");
return hslToHex(h >= 0 ? h : -h, (isPy ? 60 : 20) + s, highlight ? 90 : 70);
return hslToHex(h >= 0 ? h : -h, (isPy ? 60 : 20) + s, highlight ? 80 : 60);
}

return hslToHex(hue, 0 + sat, highlight ? 90 : 70);
Expand Down

0 comments on commit 8174e9a

Please sign in to comment.