1 unstable release
Uses new Rust 2024
new 0.1.0 | Apr 28, 2025 |
---|
#245 in Development tools
23 downloads per month
7KB
109 lines
dirio
A simple tool for monitoring disk usage over the runtime of a command.
This expects du
to be in your $PATH
and evaluates it at a specified interval while a test command is running.
It tracks and reports a TSV of the following:
- elapsed time
- observed disk usage
- disk usage delta (from initial disk usage)
- disk usage peak (max observed disk usage over the runtime)
Installation
cargo install dirio
Usage
This monitors the bytes of a directory over the runtime of a command.
By default that directory is ./
or the current working directory.
You can specify some other directory with the -p
flag.
# Monitor disk usage and output to stdout
dirio "fasterq-dump SRR000001 --split-files --include-technical"
# Monitor disk usage and output to some log file
dirio -o dirio.log.tsv "fasterq-dump SRR000001 --split-files --include-technical"
Dependencies
~2.3–3.5MB
~50K SLoC