pub struct SyscallEvent {
pub syscall_id: u64,
pub syscall_name: String,
pub duration_us: u64,
pub timestamp: u64,
pub is_slow: bool,
}Expand description
Syscall event information
Fields§
§syscall_id: u64Syscall number
syscall_name: StringSyscall name (e.g., “read”, “write”)
duration_us: u64Duration in microseconds
timestamp: u64Timestamp when syscall occurred
is_slow: boolWhether this was a slow syscall (>10ms)
Implementations§
Source§impl SyscallEvent
impl SyscallEvent
Sourcepub fn is_slow_syscall(&self) -> bool
pub fn is_slow_syscall(&self) -> bool
Check if this syscall is considered slow (>10ms)
Sourcepub fn duration_ms(&self) -> f64
pub fn duration_ms(&self) -> f64
Get duration in milliseconds
Trait Implementations§
Source§impl Clone for SyscallEvent
impl Clone for SyscallEvent
Source§fn clone(&self) -> SyscallEvent
fn clone(&self) -> SyscallEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SyscallEvent
impl RefUnwindSafe for SyscallEvent
impl Send for SyscallEvent
impl Sync for SyscallEvent
impl Unpin for SyscallEvent
impl UnwindSafe for SyscallEvent
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