-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Makefile: Clean up .gcda files in prof-gen. #8284
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
Conversation
Can any maintainer help to trigger the workflows? This is my first PR in PHP. :). |
Can anyone help to take look at the PR? |
I'm far from a build expert, and talking to someone else we had a quick look but don't know how to proceed with this. |
If I understand correctly, the workflow is usually:
If there are .gcda files right after |
@cmb69 is right. User usually follows that workflow for PGO enabling. Currently, some .gcda files are generated after make prof-gen, because "php" is invoked during "make prof-gen". |
The "$(MAKE) PROF_FLAGS=-fprofile-generate all" is what is performed when "make prof-gen" is run. Please see line 136 in Makefile.global. If you want to test it yourself, you can run "make prof-gen". If you want to verify PGO, you can follow the steps, which @cmb69 provided in the comment. |
The .gcda files generated by "$(MAKE) PROF_FLAGS=-fprofile-generate all" should be removed. Otherwise, the profile data in them would be combined with the profile data of user's workload.Then, they would be used by "make prof-use" later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. Maybe someone who actually does PGO on a POSIX system can confirm.
Is there any other comment? If not, can the PR be merged now? |
@cmb69, could you help to merge the PR? Or, do I have to contact another maintainer for merging? |
Thank you! |
The .gcda files generated by "$(MAKE) PROF_FLAGS=-fprofile-generate all"
should be removed. Otherwise, the profile data in them would be combined
with the profile data of user's workload.Then, they would be used by
"make prof-use" later.