Skip to content

Add -fine-grained-timers flag #76662

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

Merged
merged 7 commits into from
Sep 25, 2024

Conversation

slavapestov
Copy link
Contributor

When this is off, we skip collecting per-request timers, which eliminates most of the overhead of using -stats-output-dir.

We didn't measure time spent in IRGen in multi-threaded mode previously.
To get timings here, just use -fine-grained-timers.
By default, -stats-output-dir does not collect per-request timers and
counters, because of overhead.
Also, if all the stats are zero, raise an error instead of
silently succeeding.
@slavapestov slavapestov marked this pull request as ready for review September 23, 2024 22:05
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov
Copy link
Contributor Author

@swift-ci Please test Windows

@slavapestov slavapestov merged commit bfc4f95 into swiftlang:main Sep 25, 2024
3 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