1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//! # oomtop-core
//!
//! Pure core of oomtop (SPEC §6): the data model, units, `Measured<T>`, attribution matching, headroom,
//! `can_fit`, model-load estimates, OOM forecast, throttle, `why`, redaction, query understanding, ranking,
//! headline generation and situation modes. **No I/O** — everything is a pure function over snapshots,
//! so it is fully unit-testable with fixtures and golden files.
//!
//! Module ↔ spec map:
//! | module | spec |
//! |---|---|
//! | [`model`] | SPEC §5 (FROZEN) |
//! | [`measured`], [`units`] | SPEC §5, UX §12.5 |
//! | [`headroom`] | SPEC §8.1 |
//! | [`can_fit`] | SPEC §8.2 |
//! | [`model_estimate`] | SPEC §8.2 (GGUF header parser) |
//! | [`history`], [`forecast`] | SPEC §6.2, §8.3 |
//! | [`attribution`] | SPEC §7 |
//! | [`idle`] | SPEC §7 (idle/orphan) |
//! | [`staleness`] | SPEC §5 (time fields), §7 (staleness, cohorts, duplicates) |
//! | [`net`] | SPEC §5 (network), §13 (ports, links, exposure) |
//! | [`pivot`] | SPEC §7 (pivot grouping) |
//! | [`limits`], [`cluster`], [`namespaces`] | SPEC §8.3 (per-limit forecast), §11 (containers, clusters, VM slack, namespaces) |
//! | [`fingerprint`] | UX §4 |
//! | [`throttle`], [`why`] | SPEC §9 |
//! | [`redact`] | SPEC §13 |
//! | [`actions`] | SPEC §7, §13 |
//! | [`query`] | UX §5.2 |
//! | [`ranking`] | UX §5.4 |
//! | [`headline`] | UX §9 |
//! | [`machine`] | UX §2 (machine display name) |
//! | [`modes`] | UX §3 |
//! | [`provider`] | frontend contracts (docs/CONTRACTS.md) |
pub use *;
/// Crate version (also the `oomtop --version`).
pub const VERSION: &str = env!;