pub fn should_dump_memory(event: &Event, time: FrameTime) -> bool {
    let flags = Flags::get();

    flags.dump_on == Some(DumpOn::DumpOnAll)
        || (event.is_syscall_event()
            && Some(DumpOn::DumpOnSyscall(event.syscall_event().number)) == flags.dump_on)
        || (event.is_signal_event()
            && Some(DumpOn::DumpOnSignal(event.signal_event().siginfo.si_signo)) == flags.dump_on)
        || (flags.dump_on == Some(DumpOn::DumpOnRdtsc)
            && event.event_type() == EventType::EvInstructionTrap)
        || flags.dump_at == Some(time)
}
/// Return true if the user requested memory be dumped at this event/time.
Return true if the user requested memory be dumped at this event/time.
Return true if the user requested memory be dumped at this event / time .
pub fn should_dump_memory(event: &Event, time: FrameTime) -> bool {
    let flags = Flags::get();
    flags.dump_on == Some(DumpOn::DumpOnAll)
        || (event.is_syscall_event()
            && Some(DumpOn::DumpOnSyscall(event.syscall_event().number)) == flags.dump_on)
        || (event.is_signal_event()
            && Some(DumpOn::DumpOnSignal(event.signal_event().siginfo.si_signo)) == flags.dump_on)
        || (flags.dump_on == Some(DumpOn::DumpOnRdtsc)
            && event.event_type() == EventType::EvInstructionTrap)
        || flags.dump_at == Some(time)
}
pub fn should_dump_memory ( event : & Event , time : FrameTime ) -> bool { let flags = Flags :: get ( ) ; flags . dump_on == Some ( DumpOn :: DumpOnAll ) || ( event . is_syscall_event ( ) && Some ( DumpOn :: DumpOnSyscall ( event . syscall_event ( ) . number ) ) == flags . dump_on ) || ( event . is_signal_event ( ) && Some ( DumpOn :: DumpOnSignal ( event . signal_event ( ) . siginfo . si_signo ) ) == flags . dump_on ) || ( flags . dump_on == Some ( DumpOn :: DumpOnRdtsc ) && event . event_type ( ) == EventType :: EvInstructionTrap ) || flags . dump_at == Some ( time ) }
Return true if the user requested memory be dumped at this event/time.
Return true if the user requested memory be dumped at this event / time .
event
&Event
time
FrameTime