pub struct ProcessSample {
pub cpu_percent: Option<f64>,
pub memory_rss: u64,
pub memory_vms: u64,
pub state: &'static str,
pub run_time: u64,
pub start_time: u64,
}Expand description
One PID’s readings for this tick.
Fields§
§cpu_percent: Option<f64>Task-time delta over the sampler’s elapsed time for this PID, as a
percentage of one core. None on the first sighting of a PID (or of
a reused PID), when there is nothing to take a delta against.
memory_rss: u64rss (field 24) times the page size, bytes.
memory_vms: u64vsize (field 23), bytes.
state: &'static strSingle-letter state code as the process table shows it.
run_time: u64Seconds since the process started, as sysinfo’s run_time().
start_time: u64/proc/stat’s btime plus starttime / clk_tck, epoch seconds:
what tells a reused PID apart from the process that had it before.
Trait Implementations§
Source§impl Clone for ProcessSample
impl Clone for ProcessSample
Source§impl Debug for ProcessSample
impl Debug for ProcessSample
Source§impl PartialEq for ProcessSample
impl PartialEq for ProcessSample
impl StructuralPartialEq for ProcessSample
Auto Trait Implementations§
impl Forget for ProcessSample
impl Freeze for ProcessSample
impl Move for ProcessSample
impl RefUnwindSafe for ProcessSample
impl Send for ProcessSample
impl Sync for ProcessSample
impl Unpin for ProcessSample
impl UnsafeUnpin for ProcessSample
impl UnwindSafe for ProcessSample
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> 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> 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