pub struct PrintTreeConfig {
pub attention_above_percent: f64,
pub relevant_above_percent: f64,
pub hide_below_percent: f64,
pub display_unaccounted: bool,
pub accumulate_events: bool,
pub accumulate_spans_count: bool,
pub no_color: bool,
}
Expand description
Tree layer config.
Fields§
§attention_above_percent: f64
Display anything above this percentage in bold red.
Corresponds to the TREE_LAYER_ATTENTION_ABOVE
environment variable.
relevant_above_percent: f64
Display anything above this percentage in regular white.
Anything below this percentage will be displayed in dim white/gray.
Corresponds to the TREE_LAYER_RELEVANT_ABOVE
environment variable.
hide_below_percent: f64
Anything below this percentage is collapsed into [...]
.
This is checked after duplicate calls below relevant_above_percent are aggregated.
Corresponds to the TREE_LAYER_HIDE_BELOW
environment variable.
display_unaccounted: bool
Whether to display parent time minus time of all children as
[unaccounted]
. Useful to sanity check that you are measuring all the bottlenecks.
Corresponds to the TREE_LAYER_DISPLAY_UNACCOUNTED
environment variable.
accumulate_events: bool
Whether to accumulate events of the children into the parent.
Default is true.
Corresponds to the TREE_LAYER_ACCUMULATE_EVENTS
environment variable.
accumulate_spans_count: bool
If enabled the number of spans will be added to the event information and grouped by span
names. Has effect only if accumulate_events
is enabled.
Corresponds to the TREE_LAYER_ACCUMULATE_SPANS_COUNT
environment variable.
no_color: bool
Whether to disable color output.
Corresponds to the NO_COLOR
environment variable.