#disk #report #usage #disk-usage #run-time #cli

app dirio

A simple CLI to track and report disk usage over some subcommand runtime

1 unstable release

Uses new Rust 2024

new 0.1.0 Apr 28, 2025

#245 in Development tools

23 downloads per month

MIT license

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:

  1. elapsed time
  2. observed disk usage
  3. disk usage delta (from initial disk usage)
  4. 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