Skip to main content

Module probe

Module probe 

Source
Expand description

Probe — introspection for the deployed state.

Today this module provides two read-only views over <data_dir>:

  • deployment_map — the pack / handler / source / deployed map that dodot refresh (see docs/proposals/magic.lex) also consumes. Written alongside the shell init script on every up and down.
  • data_dir_tree — a bounded-depth tree walk for dodot probe show-data-dir.

See docs/proposals/profiling.lex for the full feature spec. A later phase will add shell-init timing reports under <data_dir>/probes/shell-init/; that state lives in a sibling submodule when it lands.

Re-exports§

pub use data_dir_tree::collect_data_dir_tree;
pub use data_dir_tree::TreeNode;
pub use deployment_map::collect_deployment_map;
pub use deployment_map::read_deployment_map;
pub use deployment_map::write_deployment_map;
pub use deployment_map::DeploymentKind;
pub use deployment_map::DeploymentMapEntry;
pub use last_up::read_last_up_marker;
pub use last_up::write_last_up_marker;
pub use shell_init::aggregate_profiles;
pub use shell_init::group_profile;
pub use shell_init::parse_profile;
pub use shell_init::read_latest_profile;
pub use shell_init::read_recent_profiles;
pub use shell_init::rotate_profiles;
pub use shell_init::summarize_history;
pub use shell_init::AggregatedTarget;
pub use shell_init::AggregatedView;
pub use shell_init::GroupedProfile;
pub use shell_init::HistoryEntry;
pub use shell_init::Profile;
pub use shell_init::ProfileEntry;
pub use shell_init::ProfileGroup;

Modules§

brew
Homebrew-cask probe — advisory lookup of cask metadata.
data_dir_tree
Tree walk of <data_dir> for dodot probe show-data-dir.
deployment_map
The deployment map.
last_up
Last-up marker — records the unix timestamp of the most recent successful dodot up to <data_dir>/last-up-at.
macos_native
macOS-native metadata probes: mdls and mdfind.
shell_init
Shell-init profile reader, aggregator, and rotation.