Skip to content

Option to pipe disk usage into flamegraph #289

@theimpostor

Description

@theimpostor

Flamegraphs are great for profiling but can be used for disk space also. It would be nice if dua had a CLI option to output results in the folded stack format, so that it could be piped into flamegraph.pl (or more modern alternatives like inferno).

The output format is pretty simple, every file / directory printed on a single line followed by a space and the size in bytes. The path separators are replaced with ;, and whitespace and other special chars are replaced with _. The output does not need to be sorted.

It would also be nice if hard linked files were only counted the first time, but not necessary (I don't think the original files.pl did that).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions