pub struct ElectronAppInfo {
pub name: String,
pub display_name: String,
pub category: AppCategory,
pub total_memory_mb: f64,
pub total_cpu_percent: f32,
pub process_count: usize,
pub main_pid: Option<u32>,
pub pids: Vec<u32>,
pub baseline_memory_mb: f64,
pub memory_overhead_percent: f64,
pub is_running: bool,
}Expand description
Electron app instance info
Fields§
§name: String§display_name: String§category: AppCategory§total_memory_mb: f64§total_cpu_percent: f32§process_count: usize§main_pid: Option<u32>§pids: Vec<u32>§baseline_memory_mb: f64§memory_overhead_percent: f64§is_running: boolImplementations§
Source§impl ElectronAppInfo
impl ElectronAppInfo
Sourcepub fn is_bloated(&self) -> bool
pub fn is_bloated(&self) -> bool
Check if app is using more memory than expected
Sourcepub fn likely_memory_leak(&self) -> bool
pub fn likely_memory_leak(&self) -> bool
Check if likely has a memory leak
Sourcepub fn get_suggested_action(&self) -> OptimizationAction
pub fn get_suggested_action(&self) -> OptimizationAction
Get suggested action
Trait Implementations§
Source§impl Clone for ElectronAppInfo
impl Clone for ElectronAppInfo
Source§fn clone(&self) -> ElectronAppInfo
fn clone(&self) -> ElectronAppInfo
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 ElectronAppInfo
impl Debug for ElectronAppInfo
Source§impl<'de> Deserialize<'de> for ElectronAppInfo
impl<'de> Deserialize<'de> for ElectronAppInfo
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
Auto Trait Implementations§
impl Freeze for ElectronAppInfo
impl RefUnwindSafe for ElectronAppInfo
impl Send for ElectronAppInfo
impl Sync for ElectronAppInfo
impl Unpin for ElectronAppInfo
impl UnwindSafe for ElectronAppInfo
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> 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 more