From f19b29de25b9c0e60163867688a09c7b011f06a5 Mon Sep 17 00:00:00 2001 From: Asher Baker Date: Fri, 26 Feb 2021 23:59:22 +0000 Subject: [PATCH] Switch default palette to annotated palette --- src/flamegraph/color/mod.rs | 6 +++--- src/flamegraph/mod.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/flamegraph/color/mod.rs b/src/flamegraph/color/mod.rs index 2fe36c70..be2c1c50 100644 --- a/src/flamegraph/color/mod.rs +++ b/src/flamegraph/color/mod.rs @@ -66,21 +66,21 @@ impl Default for BackgroundColor { /// A flame graph color palette. /// -/// Defaults to [`BasicPalette::Hot`]. +/// Defaults to [`MultiPalette::Annotated`]. #[derive(Clone, Copy, Debug, PartialEq)] pub enum Palette { /// A plain color palette in which the color is not chosen based on function semantics. /// /// See [`BasicPalette`] for details. Basic(BasicPalette), - /// A semantic color palette in which different hues are used to signifiy semantic aspects of + /// A semantic color palette in which different hues are used to signify semantic aspects of /// different function names (kernel functions, JIT functions, etc.). Multi(MultiPalette), } impl Default for Palette { fn default() -> Self { - Palette::Basic(BasicPalette::Hot) + Palette::Multi(MultiPalette::Annotated) } } diff --git a/src/flamegraph/mod.rs b/src/flamegraph/mod.rs index 97299974..f5f336ef 100644 --- a/src/flamegraph/mod.rs +++ b/src/flamegraph/mod.rs @@ -75,7 +75,7 @@ pub mod defaults { } define! { - COLORS: &str = "hot", + COLORS: &str = "annotated", SEARCH_COLOR: &str = "#e600e6", TITLE: &str = "Flame Graph", CHART_TITLE: &str = "Flame Chart",