Skip to content

std.Progress: add byte unit flag and resource scope; support throughput calculation #20103

Description

@andrewrk

Extracted from #20059.

The idea here is that you would be able to set a flag on a Node that indicates the units are byte. This would make it display, for example,

[6.5 MiB / 10 MiB] Downloading (192 KB/s)

rather than

[6815744/10485760] Downloading

for such a node.

It would also be nice if there was a resource scope. This way the root node could aggregate throughput based on scope and then display something like:

root name (down: 150 KB/s, up: 50 KB/s, disk: 100 MiB/s)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSolving this issue will likely involve adding new logic or components to the codebase.standard libraryThis issue involves writing Zig code for the standard library.

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions