Skip to content

Expose the record writer for validating arbitrary files #760

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pablogsal
Copy link
Member

@pablogsal pablogsal commented May 9, 2025

Adds TestRecordWriter class to enable testing and validation of memray
record files by allowing direct writing of test records. This provides a
way to create controlled test files with known contents for validating
the file format and reader functionality. The implementation supports
writing all record types including memory snapshots, allocations,
frames, and thread information, making it possible to test edge cases
and complex scenarios that would be difficult to trigger in normal
operation.

@pablogsal pablogsal requested a review from godlygeek May 9, 2025 12:03
Adds TestRecordWriter class to enable testing and validation of memray
record files by allowing direct writing of test records. This provides a
way to create controlled test files with known contents for validating
the file format and reader functionality. The implementation supports
writing all record types including memory snapshots, allocations,
frames, and thread information, making it possible to test edge cases
and complex scenarios that would be difficult to trigger in normal
operation.

Signed-off-by: Pablo Galindo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant