mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-09-22 01:08:28 +02:00
* hide k-threads init comment * add config for hide_k_threads arg help * update docs for hide_k_threads * add test_toggle_k_thread for process_table * update help text and schema * add hide_k_threads to sample_configs default * add Virt column to sample default config * update sample demo config column name for schema ci * force_rerender_and_update from toggle_k_threads for updates when frozen * use is_kernel for ProcessType * remove todo * Apply suggestions from code review Co-authored-by: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> --------- Co-authored-by: Clement Tsang <34804052+ClementTsang@users.noreply.github.com>
Config JSON Schema
Generation
These are automatically generated from code using schemars
. They're locked
behind a feature flag to avoid building unnecessary code for release builds, and you can generate them like so:
cargo run --features="generate_schema" -- --generate_schema > schema/nightly/bottom.json
Alternatively, run the script in scripts/schema/generate.sh
, which does this for you.
Publication
To publish these schemas, cut a new version by copying nightly
to a new folder with a version number matching bottom's
(e.g. v0.10 if bottom is on v0.10.x bottom). Then, make a PR to schemastore
updating the catalog.
For more info, see the schemastore repo. An example PR can be found here.