1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! Dashboard Module (Phase 2: ENT-003, ENT-004)
//!
//! Provides the `DashboardSource` trait for real-time training monitoring
//! and WASM bindings for browser-based dashboards.
//!
//! # Features
//!
//! - Real-time metric streaming via `subscribe()`
//! - Resource usage monitoring (GPU, CPU, memory)
//! - Trend analysis for metrics
//! - WASM support for browser dashboards (feature: "wasm")
//!
//! # Example
//!
//! ```
//! use std::sync::{Arc, Mutex};
//! use entrenar::storage::{InMemoryStorage, ExperimentStorage};
//! use entrenar::run::{Run, TracingConfig};
//! use entrenar::dashboard::{DashboardSource, Trend};
//!
//! let mut storage = InMemoryStorage::new();
//! let exp_id = storage.create_experiment("my-exp", None).expect("create experiment");
//! let storage = Arc::new(Mutex::new(storage));
//!
//! let mut run = Run::new(&exp_id, storage.clone(), TracingConfig::disabled()).expect("create run");
//! run.log_metric("loss", 0.5).expect("log metric");
//! run.log_metric("loss", 0.4).expect("log metric");
//! run.log_metric("loss", 0.3).expect("log metric");
//!
//! // Get dashboard data
//! let status = run.status();
//! let metrics = run.recent_metrics(10);
//! let resources = run.resource_usage();
//! ```
// Re-exports
pub use ;
pub use ;
pub use Trend;