Expand description
bhtune export <run_id>: dumps a run’s recorded samples as CSV or JSON.
CSV rows are generated from the same #[derive(Serialize)] struct as the header, making
the legacy app’s MV/SV column-transposition bug (header Time,PV,SV,MV,P,I,D vs. data
Time,PV,MV,SV,P,I,D — see AGENTS.md’s bug register) structurally impossible here.
Structs§
Functions§
- run
- samples_
to_ bytes - Serializes a run’s recorded samples to CSV or JSON bytes – the one place this mapping is
implemented, shared by this module’s own
run()(writing to a file or stdout) andbhtune-server’sGET /api/runs/{id}/exportroute (history-explorer-ui), so the CLI and the web GUI can never disagree about what a run’s export looks like.