Skip to content

Conversation

@blt
Copy link
Collaborator

@blt blt commented Jan 13, 2026

What does this PR do?

This commit updates payloadtool with a tracking allocator, showing:

  • total allocations
  • total deallocations
  • total bytes allocated
  • peak bytes live

This information is exposed on stderr if --memory-stats is provided to payloadtool. The goal is to enable more convenient optimization flows for lading developers.

@blt blt requested a review from a team as a code owner January 13, 2026 19:53
@blt blt force-pushed the blt/memory-stats-payloadtools branch from 36b2441 to df55fee Compare January 13, 2026 19:57
Copy link
Collaborator Author

blt commented Jan 13, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@blt blt mentioned this pull request Jan 14, 2026
This commit updates payloadtool with a tracking allocator, showing:

* total allocations
* total deallocations
* total bytes allocated
* peak bytes live

This information is exposed on stderr if `--memory-stats` is provided to
payloadtool. The goal is to enable more convenient optimization flows
for lading developers.

Signed-off-by: Brian L. Troutwine <[email protected]>
@blt blt force-pushed the blt/memory-stats-payloadtools branch from df55fee to 226040d Compare January 14, 2026 00:36
#![allow(clippy::print_stdout)]
#![allow(clippy::print_stderr)]

/// Memory allocation tracking for payloadtool statistics.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL dhat-rs

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will merge this as-is and then explore dhat-rs in a follow-up.

Copy link
Contributor

@GeorgeHahn GeorgeHahn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted a big possible change, but lgtm with or without that

@blt blt merged commit 5fc282a into main Jan 14, 2026
31 checks passed
@blt blt deleted the blt/memory-stats-payloadtools branch January 14, 2026 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants