Skip to main content

Crate peek_core

Crate peek_core 

Source
Expand description

Core library for peek: process snapshot types, collection orchestration, and extended data.

Provides ProcessInfo, CollectOptions, collect(), and collect_extended(); delegates to peek-proc-reader, kernel-explainer, resource-sampler, network-inspector, and signal-engine.

Modules§

config
General config file support: ~/.config/peek/config.toml (or XDG_CONFIG_HOME/peek/config.toml).
proc
ringbuf

Structs§

CollectOptions
ConnectionEntry
EnvVar
FdLeakWarning
GpuInfo
GPU utilisation snapshot for a single device.
KernelInfo
NamespaceEntry
NetworkInfo
OpenFile
ProcessInfo
ProcessNode
SignalImpact
Structured description of the impact of sending a signal to a process.
SocketEntry
UnixSocketEntry

Enums§

PeekError

Functions§

binary_description
Optional human-readable description for well-known process names.
collect
Fast baseline snapshot (no CPU sampling, no extended sections).
collect_extended
Full snapshot gated by opts. On Linux includes kernel, network, files, env, tree, GPU; elsewhere baseline only.
current_syscall
Current syscall name and description from /proc/<pid>/syscall (x86_64). Returns None if unreadable or syscall number unknown.
fd_soft_limit
Soft “Max open files” limit from /proc/<pid>/limits, if available.
oom_description
Human-readable OOM kill likelihood band (low / moderate / high / critical).
resolve_remote
Best-effort reverse DNS for an address (e.g. “192.168.1.1:443”). Time-bounded; for CLI/TUI only.
signal_impact
Pre-flight signal impact analysis. Linux only.

Type Aliases§

Result