mirror of
https://github.com/qdrant/qdrant.git
synced 2026-08-07 02:20:55 -05:00
cfg linux imports (#8829)
This commit is contained in:
@@ -9,8 +9,11 @@
|
||||
//! Currently only Linux is supported (via `/proc/self/stat`); other
|
||||
//! platforms return `None`.
|
||||
|
||||
use std::time::{Duration, Instant};
|
||||
use std::time::Duration;
|
||||
#[cfg(target_os = "linux")]
|
||||
use std::time::Instant;
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
use parking_lot::Mutex;
|
||||
|
||||
/// Sampling window: how often we query the OS for process CPU time.
|
||||
|
||||
Reference in New Issue
Block a user