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,
pub stale: bool,
pub profile_when: String,
pub last_up_when: 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).
stale: boolTrue when the displayed profile was captured before the most
recent dodot up. The renderer prints a freshness banner so
the user knows the timings reflect a pre-up shell.
profile_when: StringYYYY-MM-DD HH:MM capture time of the displayed profile;
empty when no profile is available.
last_up_when: StringYYYY-MM-DD HH:MM of the most recent dodot up; empty when
up has never run on this machine.
Trait Implementations§
Source§impl Clone for ShellInitView
impl Clone for ShellInitView
Source§fn clone(&self) -> ShellInitView
fn clone(&self) -> ShellInitView
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more