[PERF] Runtime Telemetry Hot Path
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user