Disk usage with FlameGraph
Published:
Updated:
Using FlameGraph for displaying disk usage.
In a previous episode, I wrote a simple script to generate line-of-code visualizations using Flamegraph. This is the same thing for disk usage:
find . -type f -print0 |
xargs -0 du -b -- |
sed 's/^ *\([0-9]*\)\s*\(.*\)/\2 \1/' |
sed 's|^./||' |
sed 's|/|;|g' |
./flamegraph.pl
It could be used as an alternative to tools like ncdu.