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>
pub fn get_stats_timeline_value( self, replay: &Replay, ) -> SubtrActorResult<Value>
pub fn get_replay_stats_timeline( self, replay: &Replay, ) -> SubtrActorResult<ReplayStatsTimeline>
pub fn into_snapshot_data(self) -> SubtrActorResult<StatsSnapshotData>
pub fn into_stats_timeline_value(self) -> SubtrActorResult<Value>
pub fn into_replay_stats_timeline(self) -> SubtrActorResult<ReplayStatsTimeline>
Source§impl<T, F> StatsCollector<T, F>
impl<T, F> StatsCollector<T, F>
pub fn capture_frames(self) -> Self
pub fn with_frame_transform<U, G>( self, frame_transform: G, ) -> StatsCollector<U, G>
pub fn with_module_transform<Modules, G>( self, transform: G, ) -> StatsCollector<CapturedStatsFrame<Modules>, ModuleFrameTransform<G>>
pub fn with_frame_resolution(self, resolution: StatsFrameResolution) -> Self
pub fn get_stats(self, replay: &Replay) -> SubtrActorResult<CollectedStats>where
F: FrameTransform<Output = T>,
pub fn get_captured_data(
self,
replay: &Replay,
) -> SubtrActorResult<CapturedStatsData<T>>where
F: FrameTransform<Output = T>,
pub fn into_stats(self) -> SubtrActorResult<CollectedStats>
pub fn into_captured_data(self) -> SubtrActorResult<CapturedStatsData<T>>
Trait Implementations§
Source§impl<T, F> Collector for StatsCollector<T, F>where
F: FrameTransform<Output = T>,
impl<T, F> Collector for StatsCollector<T, F>where
F: FrameTransform<Output = T>,
Source§fn process_frame(
&mut self,
processor: &ReplayProcessor<'_>,
_frame: &Frame,
frame_number: usize,
current_time: f32,
) -> SubtrActorResult<TimeAdvance>
fn process_frame( &mut self, processor: &ReplayProcessor<'_>, _frame: &Frame, frame_number: usize, current_time: f32, ) -> SubtrActorResult<TimeAdvance>
Process a single frame from a replay. Read more
Source§fn finish_replay(
&mut self,
_processor: &ReplayProcessor<'_>,
) -> SubtrActorResult<()>
fn finish_replay( &mut self, _processor: &ReplayProcessor<'_>, ) -> SubtrActorResult<()>
Finalize replay-derived state after the last frame has been processed. Read more
Source§fn process_replay(self, replay: &Replay) -> SubtrActorResult<Self>where
Self: Sized,
fn process_replay(self, replay: &Replay) -> SubtrActorResult<Self>where
Self: Sized,
Process an entire replay. Read more
Auto Trait Implementations§
impl<T, F> Freeze for StatsCollector<T, F>where
F: Freeze,
impl<T = CapturedStatsFrame<Map<String, Value>>, F = IdentityFrameTransform> !RefUnwindSafe for StatsCollector<T, F>
impl<T = CapturedStatsFrame<Map<String, Value>>, F = IdentityFrameTransform> !Send for StatsCollector<T, F>
impl<T = CapturedStatsFrame<Map<String, Value>>, F = IdentityFrameTransform> !Sync for StatsCollector<T, F>
impl<T, F> Unpin for StatsCollector<T, F>
impl<T, F> UnsafeUnpin for StatsCollector<T, F>where
F: UnsafeUnpin,
impl<T = CapturedStatsFrame<Map<String, Value>>, F = IdentityFrameTransform> !UnwindSafe for StatsCollector<T, F>
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