swactor/crates/gossip-dashboard/examples/replay.rs
zacheryasc d61ea50414 fix: gossip dashboard (#24)
Better, but still imperfect, performance in replay for large simulation sizes.
2026-02-09 09:07:38 +00:00

15 lines
349 B
Rust

use gossip_dashboard::serve_dashboard;
fn main() {
let args: Vec<String> = std::env::args().collect();
let trace_dir = args
.get(1)
.expect("Usage: replay <trace-dir> [port]");
let port: u16 = args
.get(2)
.and_then(|s| s.parse().ok())
.unwrap_or(8080);
serve_dashboard(trace_dir, port);
}