Skip to content

Conversation

@silverweed
Copy link
Contributor

This Pull request:

adds a method to TMemFile that allows to dump the current contents of the memory blocks to file. Differently from Cp, it does not modify the contents in any way, so it's useful/meant to be used for debugging.

The doc comment clarifies that Cp should still be preferred for regular use cases.

@silverweed silverweed requested a review from jblomer December 3, 2025 12:38
@silverweed silverweed self-assigned this Dec 3, 2025
@silverweed silverweed requested a review from pcanal as a code owner December 3, 2025 12:38
Copy link
Contributor

@jblomer jblomer left a comment

Choose a reason for hiding this comment

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

Nice!

Perhaps better implemented as ROOT::Internal::DumpBin(TMemFile &) in order to not increase the public interface.

@silverweed silverweed changed the title [io] Add TMemFile::DumpBin for debugging purposes [io] Add ROOT::Internal::DumpBin(TMemFile&) for debugging purposes Dec 3, 2025
@github-actions
Copy link

github-actions bot commented Dec 3, 2025

Test Results

    21 files      21 suites   3d 13h 54m 47s ⏱️
 3 785 tests  3 737 ✅ 0 💤 48 ❌
77 529 runs  77 481 ✅ 0 💤 48 ❌

For more details on these failures, see this check.

Results for commit 8eb21db.

Copy link
Member

@pcanal pcanal left a comment

Choose a reason for hiding this comment

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

LGTM.

@silverweed silverweed merged commit 053f615 into root-project:master Dec 4, 2025
26 of 30 checks passed
@silverweed silverweed deleted the tmemfile_dumpbin branch December 4, 2025 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants