-
Notifications
You must be signed in to change notification settings - Fork 474
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
Debug output for cache misses only #1361
Comments
Added a setting to be able to control which cache debug files are left on exit:
|
One drawback with this method (running debug=true in production, for misses) is that you don't get anything to compare with. So you need to keep debug_dir from a build with debug_hits=true, in order to have anything to compare with... One method of debugging would be to run one build with debug=true debug_dir=d1 debug_hits=true, then do a make clean, run another build with debug=true debug_dir=d2 debug_hits=false, and look for any files in the second dir. |
This comment was marked as off-topic.
This comment was marked as off-topic.
I'm not fully convinced that just saving debug files for misses is a reasonable use case since (as @afbjorklund says) you often need debug information from hits to compare the misses to. But if we do want to support it, I'm not sure that adding yet another boolean configuration option would be the way to go – there might be other debug output tweaks that are wanted in the future, necessitating even more configuration options. In retrospect, I think that it was a mistake to accept #1312 in that form. I'd rather suggest to redesign the configuration options, maybe like this (just a quick sketch):
These can be combined, e.g. |
Actually we have use ccache as a must have component in our jenkins job.
Then I need to monitor all jenkins job's "ccache missing stat data" for enhancing the ccache policy.
So can we only get debug output files for missed object? Because the project is very large.
Thanks!
The text was updated successfully, but these errors were encountered: