DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/IPC/DevLog/DedupState.rs
1//! Consecutive-duplicate suppression buffer used by the
2//! `dev_log!` macro under `Trace=short`. Holds the last logged
3//! key + a repeat count; the macro flushes a `(xN)` tail when
4//! the key changes.
5
6use std::sync::Mutex;
7
8pub struct Struct {
9 pub LastKey:String,
10
11 pub Count:u64,
12}
13
14pub static DEDUP:Mutex<Struct> = Mutex::new(Struct { LastKey:String::new(), Count:0 });