Skip to content

Conversation

@mdboom
Copy link
Contributor

@mdboom mdboom commented Jun 20, 2025

When running pystats collection, it is useful to /not/ do warmup runs so we don't "miss" any of the stats. This requires being able pass the --warmups argument to the underlying pyperf.

@mdboom mdboom requested a review from corona10 June 20, 2025 16:23
if options.hook:
for hook in options.hook:
opts.append('--hook=%s' % hook)
if options.warmups is not None:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if options.warmups is not None:
if options.warmups:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We also need to be able to pass --warmups 0 explicitly when that is specified.

Copy link
Member

Choose a reason for hiding this comment

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

Ah got it

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 leave the comment for it?

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.

Leave the nit change.

@mdboom mdboom merged commit 29cd683 into python:main Jun 23, 2025
19 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.

2 participants