Skip to content
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

Separate subprocess writing/parsing into their own functions #201

Merged
merged 3 commits into from
Sep 6, 2024

Conversation

mdboom
Copy link
Collaborator

@mdboom mdboom commented Sep 4, 2024

...and document

As suggested by @corona10 #197 (comment)

@mdboom mdboom requested a review from corona10 September 4, 2024 14:45
# Write timing in seconds into stdout
print(dt, file=out)
print(max_rss or -1, file=out)
print(json.dumps(metadata), file=out)
Copy link
Member

Choose a reason for hiding this comment

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

Can you call .dump() on sys.stdout?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure, that makes sense.

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM.

pyperf/_command.py Outdated Show resolved Hide resolved
Copy link
Member

@corona10 corona10 left a comment

Choose a reason for hiding this comment

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

LGTM, Thank you for adopting my suggestions!

Co-authored-by: Victor Stinner <[email protected]>
@mdboom mdboom merged commit bf02a8b into psf:main Sep 6, 2024
13 checks passed
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.

3 participants