Skip to content

Commit

Permalink
Use grey colour palette for stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
mrob95 committed Sep 26, 2022
1 parent bb447b0 commit 7d29adb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion flamegraph
Submodule flamegraph updated 37 files
+0 −15 stackcollapse-perf.pl
+0 −1 test/results/perf-dd-stacks-01-collapsed-addrs.txt
+0 −1 test/results/perf-dd-stacks-01-collapsed-all.txt
+0 −1 test/results/perf-dd-stacks-01-collapsed-jit.txt
+0 −1 test/results/perf-dd-stacks-01-collapsed-kernel.txt
+0 −1 test/results/perf-dd-stacks-01-collapsed-pid.txt
+0 −1 test/results/perf-dd-stacks-01-collapsed-tid.txt
+0 −1 test/results/perf-iperf-stacks-pidtid-01-collapsed-addrs.txt
+0 −1 test/results/perf-iperf-stacks-pidtid-01-collapsed-all.txt
+0 −1 test/results/perf-iperf-stacks-pidtid-01-collapsed-jit.txt
+0 −1 test/results/perf-iperf-stacks-pidtid-01-collapsed-kernel.txt
+0 −1 test/results/perf-iperf-stacks-pidtid-01-collapsed-pid.txt
+0 −1 test/results/perf-iperf-stacks-pidtid-01-collapsed-tid.txt
+0 −1 test/results/perf-java-stacks-01-collapsed-addrs.txt
+0 −1 test/results/perf-java-stacks-01-collapsed-all.txt
+0 −1 test/results/perf-java-stacks-01-collapsed-jit.txt
+0 −1 test/results/perf-java-stacks-01-collapsed-kernel.txt
+0 −1 test/results/perf-java-stacks-01-collapsed-pid.txt
+0 −1 test/results/perf-java-stacks-01-collapsed-tid.txt
+1 −1 test/results/perf-mirageos-stacks-01-collapsed-addrs.txt
+1 −1 test/results/perf-mirageos-stacks-01-collapsed-all.txt
+1 −1 test/results/perf-mirageos-stacks-01-collapsed-jit.txt
+1 −1 test/results/perf-mirageos-stacks-01-collapsed-kernel.txt
+1 −1 test/results/perf-mirageos-stacks-01-collapsed-pid.txt
+1 −1 test/results/perf-mirageos-stacks-01-collapsed-tid.txt
+1 −1 test/results/perf-numa-stacks-01-collapsed-addrs.txt
+1 −1 test/results/perf-numa-stacks-01-collapsed-all.txt
+1 −1 test/results/perf-numa-stacks-01-collapsed-jit.txt
+1 −1 test/results/perf-numa-stacks-01-collapsed-kernel.txt
+1 −1 test/results/perf-numa-stacks-01-collapsed-pid.txt
+1 −1 test/results/perf-numa-stacks-01-collapsed-tid.txt
+0 −1 test/results/perf-vertx-stacks-01-collapsed-addrs.txt
+0 −1 test/results/perf-vertx-stacks-01-collapsed-all.txt
+0 −1 test/results/perf-vertx-stacks-01-collapsed-jit.txt
+0 −1 test/results/perf-vertx-stacks-01-collapsed-kernel.txt
+0 −1 test/results/perf-vertx-stacks-01-collapsed-pid.txt
+0 −1 test/results/perf-vertx-stacks-01-collapsed-tid.txt
4 changes: 2 additions & 2 deletions src/flamegraph/color/palettes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pub(super) mod python {
path.split(|c| c == '/' || c == '\\')
}

pub fn resolve(name: &str) -> BasicPalette {
pub(in super::super) fn resolve(name: &str) -> BasicPalette {
if split_any_path(name).any(|part| part == "site-packages") {
return BasicPalette::Mem;
} else if split_any_path(name).any(|part| {
Expand All @@ -78,7 +78,7 @@ pub(super) mod python {
}) || name.starts_with("<")
{
// stdlib
return BasicPalette::Io
return BasicPalette::Gray
}
BasicPalette::Hot
}
Expand Down

0 comments on commit 7d29adb

Please sign in to comment.