Skip to main content

Crate ttop

Crate ttop 

Source
Expand description

ttop library - Terminal Top system monitor

This module exposes the core components for testing and embedding.

§Architecture

The library is organized into several key modules:

  • app: Main application state and logic
  • analyzers: Advanced analysis algorithms (swap thrashing, disk I/O latency, anomaly detection)
  • panels: TUI panel rendering
  • ring_buffer: SIMD-optimized time-series data structure
  • state: UI state management
  • theme: Color schemes and styling
  • ui: Main rendering logic

§Key Features

  • Swap thrashing detection using Denning’s Working Set Model (1968)
  • Disk I/O latency estimation using Little’s Law (1961)
  • Large file anomaly detection using Modified Z-Score (Iglewicz & Hoaglin, 1993)
  • ZRAM compression monitoring

Re-exports§

pub use analyzers::DiskIoAnalyzer;
pub use analyzers::IoWorkloadType;
pub use analyzers::LargeFileDetector;
pub use analyzers::StorageAnalyzer;
pub use analyzers::SwapAnalyzer;
pub use analyzers::ThrashingSeverity;
pub use analyzers::ZramStats;
pub use ring_buffer::handle_counter_wrap;
pub use ring_buffer::RingBuffer;

Modules§

analyzers
Analysis modules for advanced system metrics.
app
Application state and logic for ttop.
display_rules
Display Rules System (SPEC-024 Section 28)
panels
Panel rendering for ttop.
ring_buffer
SIMD-optimized ring buffer for time-series statistics.
state
State types for ttop.
theme
Theme and color system for ttop.
ui
UI layout and rendering for ttop.