resq-perf
Version:Real-time CPU and memory performance TUI for ResQ platformv0.1.16· License:Apache-2.0· Crate: crates.io · API docs: docs.rs
Overview
/status endpoint and displays live memory usage, response latency, and heap object breakdowns in a three-column Ratatui TUI with sparkline history charts.
Architecture
Installation
CLI Arguments
Usage Examples
Metrics Reference
Status Endpoint Schema
The tool expects JSON from the/admin/status endpoint matching this structure (compatible with coordination-hce):
Displayed Metrics
Environment Variables
Keybindings
TUI Layout
Configuration
Refresh Rate Bounds
The refresh interval is clamped to the range 100ms - 5000ms. The+ and - keys adjust in 100ms increments at runtime. The initial value is set via --refresh-ms (default: 500ms).
History Depth
Both memory and latency sparklines retain the most recent 120 samples (MAX_HISTORY). At the default 500ms refresh rate, this covers approximately 60 seconds of data. The error history retains the last 10 entries.
HTTP Client
The built-inreqwest::blocking::Client has a 5-second timeout per request. Authentication uses the Authorization: Bearer <token> header when a token is provided via --token or RESQ_TOKEN.
Latency Color Coding
Response time in the header is color-coded:- Green: < 50ms
- Yellow: 50-200ms
- Red: > 200ms
Related Tools
resq-logs— Log aggregator and stream viewerresq-flame— CPU flame graph profilerresq-health— Service health checker
docs/PROFILING_FLAMEGRAPH_GUIDE.md.