programvoid program(Parameter!(string, "Path to the root of the filesystem to analyze") path, Option!(uint, "Number of sampling subprocesses\n (default is number of logical CPUs for this system)", "N", 'j') procs, Option!(Seed, "Random seed used to choose samples") seed, Switch!hiddenOption subprocess, Switch!("Expert mode: collect and show additional metrics.\nUses more memory.") expert, Switch!hiddenOption man, Switch!("Run without launching the result browser UI.") headless, Option!(ulong, "Stop after collecting N samples.", "N", 'n') maxSamples, Option!(string, "Stop after running for this duration.", "DURATION") maxTime, Option!(string, "Stop after achieving this resolution.", "SIZE") minResolution, Option!(string, "On exit, export the collected results to the given file.", "PATH", 'o', "export") exportPath, Switch!("Instead of analyzing a btrfs filesystem, read previously collected results saved with --export from PATH.", 'f', "import") doImport)
btdu entry point