Make distribution and deployment more stable. Consolidate the logic for a generic swactor node. Co-authored-by: Zachery Aaron Shores-Chmielewski <zacheryasc@gmail.com> Co-committed-by: Zachery Aaron Shores-Chmielewski <zacheryasc@gmail.com>
18 lines
519 B
Rust
18 lines
519 B
Rust
use serde::{Deserialize, Serialize};
|
|
use swactor::stats::RuntimeStats;
|
|
|
|
use crate::layer::DashboardEvent;
|
|
|
|
/// Complete trace of a runtime execution, suitable for saving/loading.
|
|
#[derive(Debug, Serialize, Deserialize)]
|
|
pub struct RuntimeTrace {
|
|
pub events: Vec<DashboardEvent>,
|
|
pub stats_timeline: Vec<TimestampedStats>,
|
|
}
|
|
|
|
/// A stats snapshot with a wall-clock timestamp.
|
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
|
pub struct TimestampedStats {
|
|
pub timestamp_ms: u64,
|
|
pub stats: RuntimeStats,
|
|
}
|