Skip to content

Commit

Permalink
Switch default palette to annotated palette
Browse files Browse the repository at this point in the history
  • Loading branch information
asherkin committed Feb 26, 2021
1 parent 21cd595 commit f19b29d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/flamegraph/color/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/flamegraph/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f19b29d

Please sign in to comment.