the units are now auto for i/o#57
Merged
Merged
Conversation
github-actions Bot
added a commit
that referenced
this pull request
Apr 9, 2026
PR #57 updated print_io_stats to format all byte-count fields using format_size_with_unit (B, KB, MB, GB) and extended that helper to support the GB range. Update docs to reflect this: - README.md: note that I/O byte-count fields show human-readable units - docs/TECHNICAL.md: add note clarifying which fields use unit formatting and which (syscr, syscw) remain raw counts - docs/TESTING.md: document unit-suffixed output expectation for I/O fields and add I/O Formatting Helpers subsection covering format_size_with_unit, calculate_avg_bytes_per_syscall, and calculate_io_intensity Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
Pull request created: #58
|
navidpadid
pushed a commit
that referenced
this pull request
Apr 9, 2026
PR #57 updated print_io_stats to format all byte-count fields using format_size_with_unit (B, KB, MB, GB) and extended that helper to support the GB range. Update docs to reflect this: - README.md: note that I/O byte-count fields show human-readable units - docs/TECHNICAL.md: add note clarifying which fields use unit formatting and which (syscr, syscw) remain raw counts - docs/TESTING.md: document unit-suffixed output expectation for I/O fields and add I/O Formatting Helpers subsection covering format_size_with_unit, calculate_avg_bytes_per_syscall, and calculate_io_intensity Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the way I/O statistics are displayed by formatting byte counts with human-readable units (B, KB, MB, GB) rather than raw numbers, and ensures the formatting is tested and reflected in the output. The changes improve clarity for users interpreting I/O data.
Formatting improvements for I/O statistics
print_io_statsinproclens_module.cto use theformat_size_with_unithelper for all byte-count fields, so values are shown as "KB", "MB", or "GB" where appropriate, instead of just raw numbers.format_size_with_unitfunction inproclens_module.hto support gigabyte ("GB") formatting in addition to bytes, kilobytes, and megabytes.Testing and output validation
proclens_module_tests.cto verify correct formatting for gigabyte values.proclens_tests.cto reflect the new unit-suffixed formatting, specifically for theio_intensityfield.