use std::time::SystemTime;
#[derive(Debug, Clone)]
pub struct ThreadSnapshot {
pub tid: u32,
pub name: String,
pub state: Option<char>,
pub last_cpu: Option<u32>,
}
#[derive(Debug, Clone)]
pub struct ProcessSnapshot {
pub pid: u32,
pub name: String,
pub cpu_percent: Option<f64>,
pub rss_bytes: u64,
pub thread_count: usize,
pub last_cpu: Option<u32>,
pub command_line: String,
pub ollama_related: bool,
pub threads: Vec<ThreadSnapshot>,
}
#[derive(Debug, Clone)]
pub struct CpuResidency {
pub last_cpu: Option<u32>,
pub observed_at: SystemTime,
}