lobe-core 0.1.3

Local HTTP performance profiling engine — the shared library behind the Lobe CLI. Captures DNS/TCP/TLS/TTFB/download phases per request with grounded network baselines.
Documentation
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)]
pub struct TimingReport {
    pub dns_ms: u64,
    pub tcp_ms: u64,
    pub tls_ms: u64,
    pub ttfb_ms: u64,
    #[serde(default)]
    pub download_ms: u64,
    pub total_ms: u64,
    /// Latency Lobe's own proxy added on top of the upstream round trip —
    /// request parsing plus writing the response back to the client — i.e.
    /// how much the proxy itself skews the total the client sees. The phase
    /// timings above are measured on the proxy→upstream connection and are
    /// unaffected by this. Sub-millisecond in practice, so stored in
    /// microseconds. 0 on the synthetic probe path and on failed requests.
    #[serde(default)]
    pub proxy_overhead_us: u64,
}