We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 862dfc5 commit 1568ba2Copy full SHA for 1568ba2
src/profiler.rs
@@ -1073,7 +1073,20 @@ impl Profiler {
1073
})
1074
.fold(unwinder_stats_t::default(), |a, b| a + b);
1075
1076
- info!("unwinder stats: {:?}", total_value);
+ let mut raise_log_level = false;
1077
+ if total_value.total != 0 {
1078
+ let success_pct =
1079
+ 100.0 * total_value.success_dwarf as f64 / total_value.total as f64;
1080
+ info!("stacks successfully unwound: {:.2}%", success_pct);
1081
+ if success_pct < 75.0 {
1082
+ raise_log_level = true;
1083
+ }
1084
1085
+ if raise_log_level {
1086
+ warn!("unwinder stats: {:?}", total_value);
1087
+ } else {
1088
+ debug!("unwinder stats: {:?}", total_value);
1089
1090
}
1091
1092
0 commit comments