pub struct WorkerUsage {
pub process: NodeUsage,
pub fork_servers_bytes: u64,
pub watcher_hosts_bytes: u64,
pub tasks_bytes: u64,
pub largest_tasks: Vec<TaskMemory>,
}Expand description
A worker’s memory by part: the agent’s own process, then what it started.
Fields§
§process: NodeUsageThe agent’s process (in standalone also the master’s and the webserver’s).
fork_servers_bytes: u64Its fork servers’, together.
watcher_hosts_bytes: u64Its wait step hosts’, together.
tasks_bytes: u64Its running tasks’, together, as their memory watchdog last measured them.
largest_tasks: Vec<TaskMemory>The largest of them, largest first.
Implementations§
Source§impl WorkerUsage
impl WorkerUsage
Sourcepub fn parts(&self) -> WorkerParts
pub fn parts(&self) -> WorkerParts
Its parts, its process’s figures left out.
Trait Implementations§
Source§impl Clone for WorkerUsage
impl Clone for WorkerUsage
Source§fn clone(&self) -> WorkerUsage
fn clone(&self) -> WorkerUsage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkerUsage
impl Debug for WorkerUsage
Source§impl<'de> Deserialize<'de> for WorkerUsage
impl<'de> Deserialize<'de> for WorkerUsage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WorkerUsage
impl PartialEq for WorkerUsage
Source§impl Serialize for WorkerUsage
impl Serialize for WorkerUsage
impl StructuralPartialEq for WorkerUsage
Auto Trait Implementations§
impl Freeze for WorkerUsage
impl RefUnwindSafe for WorkerUsage
impl Send for WorkerUsage
impl Sync for WorkerUsage
impl Unpin for WorkerUsage
impl UnsafeUnpin for WorkerUsage
impl UnwindSafe for WorkerUsage
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