pub fn should_checksum(event: &Event, time: FrameTime) -> bool {
    if event.event_type() == EventType::EvExit {
        // Task is dead, or at least detached, and we can't read its memory safely.
        return false;
    }
    if event.has_ticks_slop() {
        // We may not be at the same point during recording and replay, so don't
        // compute checksums.
        return false;
    }

    let checksum = Flags::get().checksum;
    let is_syscall_exit = EventType::EvSyscall == event.event_type()
        && SyscallState::ExitingSyscall == event.syscall().state;

    match checksum {
        Checksum::ChecksumNone => false,
        Checksum::ChecksumSyscall => is_syscall_exit,
        Checksum::ChecksumAll => true,
        Checksum::ChecksumAt(at_time) => time >= at_time,
    }
}
/// Return true if the user has requested `t`'s memory be
/// checksummed at this event/time
Return true if the user has requested `t`'s memory be
checksummed at this event/time
Return true if the user has requested ` t ` ' s memory be checksummed at this event / time
pub fn should_checksum(event: &Event, time: FrameTime) -> bool {
    if event.event_type() == EventType::EvExit {
        // Task is dead, or at least detached, and we can't read its memory safely.
        return false;
    }
    if event.has_ticks_slop() {
        // We may not be at the same point during recording and replay, so don't
        // compute checksums.
        return false;
    }
    let checksum = Flags::get().checksum;
    let is_syscall_exit = EventType::EvSyscall == event.event_type()
        && SyscallState::ExitingSyscall == event.syscall().state;
    match checksum {
        Checksum::ChecksumNone => false,
        Checksum::ChecksumSyscall => is_syscall_exit,
        Checksum::ChecksumAll => true,
        Checksum::ChecksumAt(at_time) => time >= at_time,
    }
}
pub fn should_checksum ( event : & Event , time : FrameTime ) -> bool { if event . event_type ( ) == EventType :: EvExit { // Task is dead, or at least detached, and we can't read its memory safely. return false ; } if event . has_ticks_slop ( ) { // We may not be at the same point during recording and replay, so don't // compute checksums. return false ; } let checksum = Flags :: get ( ) . checksum ; let is_syscall_exit = EventType :: EvSyscall == event . event_type ( ) && SyscallState :: ExitingSyscall == event . syscall ( ) . state ; match checksum { Checksum :: ChecksumNone => false , Checksum :: ChecksumSyscall => is_syscall_exit , Checksum :: ChecksumAll => true , Checksum :: ChecksumAt ( at_time ) => time >= at_time , } }
Return true if the user has requested `t`'s memory be
checksummed at this event/time
Return true if the user has requested ` t ` ' s memory be checksummed at this event / time
event
&Event
time
FrameTime