Files
bottom/schema
Clement Tsang d7b56f6ab7 feature: support binary prefix option for disk table I/O (#2251)
This is a follow-up to
https://github.com/ClementTsang/bottom/pull/2236#issuecomment-5689665534 so the binary prefix configuration also affects the disk I/O display. Note this does not touch the graph at the moment, just the table.
2026-09-16 00:05:49 -04:00
..
…
2026-08-27 03:09:45 -04:00
…

Config JSON Schema

Generation

These are automatically generated from the code using schemars. The schemars derives are locked behind the generate_schema feature flag to avoid building unnecessary code for normal builds. Meanwhile, the generator itself lives in a separate scripts/schema_gen helper crate. You can generate them like so:

# Will print out to stdout
cargo run --manifest-path scripts/schema_gen/Cargo.toml

# e.g. for nightly
cargo run --manifest-path scripts/schema_gen/Cargo.toml > schema/nightly/bottom.json

# e.g. for a specific version
cargo run --manifest-path scripts/schema_gen/Cargo.toml -- 0.12.0 > schema/v0.12.0/bottom.json

Alternatively, run the scripts/schema/generate.sh script (for stable releases) or scripts/schema/nightly.sh (for nightly), which does all of this for you.

Publication

To publish these schemas:

Stable

  1. Run scripts/schema/generate.sh <YOUR_VERSION>.
  2. Make a PR and merge it.
  3. Then, make a PR to schemastore to update the catalog. Here's an example of a PR.

Nightly

  1. Run scripts/schema/nightly.sh.
  2. Make a PR and merge it.