pub struct ReplayReport {
pub request_counts: TraceRequestCounts,
pub throughput: TraceThroughputStats,
pub prefix_cache_reused_ratio: f64,
pub first_admission_prefix_cache_reused_ratio: f64,
pub latency: TraceLatencyStats,
pub trajectories: Option<TraceTrajectoryStats>,
pub agentic_graph: Option<AgenticGraphIdentity>,
pub goodput: Option<TraceGoodputStats>,
pub per_request: Vec<PerRequestRecord>,
pub runtime_evidence: OfflineRuntimeEvidence,
}Expand description
Canonical replay result returned by crate::replay::Replayer.
Fields§
§request_counts: TraceRequestCounts§throughput: TraceThroughputStats§prefix_cache_reused_ratio: f64§first_admission_prefix_cache_reused_ratio: f64§latency: TraceLatencyStats§trajectories: Option<TraceTrajectoryStats>§agentic_graph: Option<AgenticGraphIdentity>§goodput: Option<TraceGoodputStats>SLA-goodput stats. Some only when an SLA was supplied to the collector
(via set_sla_thresholds); None otherwise — goodput is undefined
without an SLA, so the goodput_* keys are omitted from the report.
per_request: Vec<PerRequestRecord>Per-request records, one per admitted request. Populated by
TraceCollector::finish. Intentionally NOT serialized into the summary
JSON (see custom Serialize impl below) — consumers that want per-
request granularity should access this field directly and serialize it
themselves.
runtime_evidence: OfflineRuntimeEvidenceExecution-owned planner/lifecycle/pressure evidence. This is excluded from the compact summary serializer and consumed explicitly by canonical-report and planner adapters.
Implementations§
Source§impl ReplayReport
impl ReplayReport
pub fn with_wall_time_ms(self, wall_time_ms: f64) -> Self
pub fn processed_tokens(&self) -> usize
pub fn processed_tokens_per_s(&self) -> f64
pub fn processed_output_tokens_per_s(&self) -> f64
Trait Implementations§
Source§impl Clone for ReplayReport
impl Clone for ReplayReport
Source§fn clone(&self) -> ReplayReport
fn clone(&self) -> ReplayReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReplayReport
impl Debug for ReplayReport
Source§impl Display for ReplayReport
impl Display for ReplayReport
Auto Trait Implementations§
impl Freeze for ReplayReport
impl RefUnwindSafe for ReplayReport
impl Send for ReplayReport
impl Sync for ReplayReport
impl Unpin for ReplayReport
impl UnsafeUnpin for ReplayReport
impl UnwindSafe for ReplayReport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more