pub struct ShellInitView {
pub filename: String,
pub shell: String,
pub profiling_enabled: bool,
pub has_profile: bool,
pub groups: Vec<ShellInitGroup>,
pub user_total_us: u64,
pub framing_us: u64,
pub total_us: u64,
pub profiles_dir: String,
}Expand description
Display payload for probe shell-init. Pulled into its own struct
so the JSON view stays clean and the variant constructor in
shell_init() reads naturally.
Fields§
§filename: StringSource filename of the report (for “which run is this?” UX). Empty when no profile has been written yet.
shell: StringShell label as recorded in the preamble (e.g. bash 5.3.9).
profiling_enabled: boolTrue when the profiling wrapper is enabled in config.
has_profile: boolTrue when the directory exists and contained a parseable file.
groups: Vec<ShellInitGroup>Pre-grouped rows for the template; empty when has_profile is
false.
user_total_us: u64§framing_us: u64§total_us: u64§profiles_dir: StringWhere the profiles live on disk (so the user can ls it).
Trait Implementations§
Source§impl Clone for ShellInitView
impl Clone for ShellInitView
Source§fn clone(&self) -> ShellInitView
fn clone(&self) -> ShellInitView
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 ShellInitView
impl Debug for ShellInitView
Auto Trait Implementations§
impl Freeze for ShellInitView
impl RefUnwindSafe for ShellInitView
impl Send for ShellInitView
impl Sync for ShellInitView
impl Unpin for ShellInitView
impl UnsafeUnpin for ShellInitView
impl UnwindSafe for ShellInitView
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