pub struct StatsCollector<T = StatsSnapshotFrame, F = IdentityFrameTransform> { /* private fields */ }Implementations§
Source§impl StatsCollector<StatsSnapshotFrame, IdentityFrameTransform>
impl StatsCollector<StatsSnapshotFrame, IdentityFrameTransform>
pub fn new() -> Self
pub fn only_modules<I>(modules: I) -> Self
pub fn try_only_modules<I>(modules: I) -> SubtrActorResult<Self>
pub fn with_builtin_module_names<I, S>( module_names: I, ) -> SubtrActorResult<Self>
pub fn get_snapshot_data( self, replay: &Replay, ) -> SubtrActorResult<StatsSnapshotData>
Sourcepub fn get_legacy_stats_timeline_value(
self,
replay: &Replay,
) -> SubtrActorResult<Value>
pub fn get_legacy_stats_timeline_value( self, replay: &Replay, ) -> SubtrActorResult<Value>
Collect the legacy full per-frame stats timeline as JSON.
This serializes cumulative team/player partial sums on every captured
frame. Prefer StatsTimelineEventCollector for compact event-backed
timeline transfer.
Sourcepub fn get_legacy_replay_stats_timeline(
self,
replay: &Replay,
) -> SubtrActorResult<ReplayStatsTimeline>
pub fn get_legacy_replay_stats_timeline( self, replay: &Replay, ) -> SubtrActorResult<ReplayStatsTimeline>
Collect the legacy full per-frame stats timeline.
This preserves the pre-event-transfer snapshot shape for compatibility and parity checks.
pub fn get_stats_timeline_value( self, replay: &Replay, ) -> SubtrActorResult<Value>
use get_legacy_stats_timeline_value for full partial-sum snapshots, or StatsTimelineEventCollector for compact event-backed timelines
pub fn get_replay_stats_timeline( self, replay: &Replay, ) -> SubtrActorResult<ReplayStatsTimeline>
use get_legacy_stats_timeline_value for full partial-sum snapshots, or StatsTimelineEventCollector for compact event-backed timelines
pub fn into_snapshot_data(self) -> SubtrActorResult<StatsSnapshotData>
pub fn into_legacy_stats_timeline_value(self) -> SubtrActorResult<Value>
pub fn into_legacy_replay_stats_timeline( self, ) -> SubtrActorResult<ReplayStatsTimeline>
pub fn into_stats_timeline_value(self) -> SubtrActorResult<Value>
use into_legacy_stats_timeline_value for full partial-sum snapshots, or StatsTimelineEventCollector for compact event-backed timelines
pub fn into_replay_stats_timeline(self) -> SubtrActorResult<ReplayStatsTimeline>
use into_legacy_replay_stats_timeline for full partial-sum snapshots, or StatsTimelineEventCollector for compact event-backed timelines