Skip to main content

resq-perf

Version: v0.1.16 · License: Apache-2.0 · Crate: crates.io · API docs: docs.rs
Real-time CPU and memory performance TUI for ResQ platform

Overview

Crates.io License Real-time performance monitoring dashboard for ResQ services. Polls a service’s /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-in reqwest::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
For comprehensive profiling workflows see docs/PROFILING_FLAMEGRAPH_GUIDE.md.

License

Licensed under the Apache License, Version 2.0. See LICENSE for details.