[PERF] Runtime Telemetry Hot Path

This commit is contained in:
2026-04-10 09:20:07 +01:00
parent 698a076632
commit e672e4d6b6
5 changed files with 28 additions and 21 deletions
@@ -10,12 +10,7 @@ pub struct LogService {
impl LogService {
pub fn new(capacity: usize) -> Self {
Self {
events: VecDeque::with_capacity(capacity),
capacity,
next_seq: 0,
logs_count: 0,
}
Self { events: VecDeque::with_capacity(capacity), capacity, next_seq: 0, logs_count: 0 }
}
pub fn log(
+1 -4
View File
@@ -180,10 +180,7 @@ impl Certifier {
LogLevel::Warn,
LogSource::Pos,
0xCA07,
format!(
"Cert: Log pressure exceeded limit ({} > {})",
telemetry.logs_count, limit
),
format!("Cert: Log pressure exceeded limit ({} > {})", telemetry.logs_count, limit),
);
violations += 1;
}