mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-16 12:52:24 +02:00
12 lines
399 B
Rust
12 lines
399 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
/// System resource usage information for the current process.
|
|
#[derive(Debug, Copy, Clone, Serialize, Deserialize, PartialEq)]
|
|
pub struct SystemInfo {
|
|
/// CPU usage as a percentage (0.0 - 100.0+)
|
|
pub cpu_usage: f32,
|
|
/// Memory used by the process in bytes
|
|
pub memory_usage: u64,
|
|
/// Total system memory in bytes
|
|
pub memory_total: u64,
|
|
} |