entrenar/monitor/gpu/mod.rs
1//! GPU Monitoring Module (MLOPS-005)
2//!
3//! btop-inspired GPU monitoring for terminal training dashboard.
4//!
5//! # Toyota Way: Andon
6//!
7//! Visual alerting system for immediate problem detection.
8//! Thermal throttling, memory pressure, and power limits trigger alerts.
9//!
10//! # Example
11//!
12//! ```ignore
13//! use entrenar::monitor::gpu::{GpuMonitor, GpuMetrics, GpuAlert};
14//!
15//! let monitor = GpuMonitor::new()?;
16//! let metrics = monitor.sample();
17//! for m in &metrics {
18//! println!("GPU {}: {}°C, {}% util", m.device_id, m.temperature_celsius, m.utilization_percent);
19//! }
20//! ```
21
22mod alert;
23mod buffer;
24mod monitor;
25mod render;
26mod types;
27
28pub use alert::{AndonThresholds, GpuAlert, GpuAndonSystem};
29pub use buffer::GpuMetricsBuffer;
30pub use monitor::GpuMonitor;
31pub use render::{format_gpu_panel, render_progress_bar, render_sparkline};
32pub use types::{GpuMetrics, GpuProcess};