pub struct EnrichedProcessSample {
pub rss_bytes: Option<u64>,
pub cpu_user_ticks: Option<u64>,
pub cpu_system_ticks: Option<u64>,
pub io_read_bytes: Option<u64>,
pub io_write_bytes: Option<u64>,
pub process_state: Option<char>,
pub current_syscall: Option<i64>,
pub thread_count: Option<u32>,
pub fd_count: Option<u32>,
pub sampled_at: Instant,
}Expand description
Extended process sample with additional state signals.
Fields§
§rss_bytes: Option<u64>RSS in bytes (from /proc/{pid}/status VmRSS).
cpu_user_ticks: Option<u64>CPU user ticks (from /proc/{pid}/stat field 14).
cpu_system_ticks: Option<u64>CPU system ticks (from /proc/{pid}/stat field 15).
io_read_bytes: Option<u64>I/O read bytes (from /proc/{pid}/io).
io_write_bytes: Option<u64>I/O write bytes (from /proc/{pid}/io).
process_state: Option<char>Process state character from /proc/{pid}/stat field 3. R=Running, S=Sleeping, D=DiskSleep, Z=Zombie, T=Stopped.
current_syscall: Option<i64>Current syscall number from /proc/{pid}/syscall (first field).
thread_count: Option<u32>Thread count from /proc/{pid}/status Threads line.
fd_count: Option<u32>Number of open file descriptors (count of /proc/{pid}/fd/ entries).
sampled_at: InstantTimestamp when sample was taken.
Trait Implementations§
Source§impl Clone for EnrichedProcessSample
impl Clone for EnrichedProcessSample
Source§fn clone(&self) -> EnrichedProcessSample
fn clone(&self) -> EnrichedProcessSample
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 moreSource§impl Debug for EnrichedProcessSample
impl Debug for EnrichedProcessSample
Auto Trait Implementations§
impl Freeze for EnrichedProcessSample
impl RefUnwindSafe for EnrichedProcessSample
impl Send for EnrichedProcessSample
impl Sync for EnrichedProcessSample
impl Unpin for EnrichedProcessSample
impl UnsafeUnpin for EnrichedProcessSample
impl UnwindSafe for EnrichedProcessSample
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request