-
Notifications
You must be signed in to change notification settings - Fork 13.3k
remove -Z input-stats
; replace with logging
#37426
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
In Issue rust-lang#34121, it was suggested that the `input-stats` debugging command-line flag could be replaced with logging.
r? @Aatch (rust_highfive has picked a reviewer for you, use r? to override) |
Note that http://perf.rust-lang.org/'s benchmarking for one currently passes this last I checked; while it's replaceable, it's something that'll need to be done once this is merged. |
|
@Mark-Simulacrum to clarify, would this hard to update perf.r-l.o for? Or would it be a relatively minor change? In general I personally at least like the idea of using logging for various stats like this rather than r? @nrc, you may have thoughts as well! |
I don't believe these values are ever displayed in the output, so in some ways this change is "trivial" for perf.r-l.o, but it may break some parsing code (which I haven't touched, so can't comment on). @nrc may know more; I can look into it as well when I have a chance. |
The intended use of the flag was for perf.r-l.o, the idea was to take this info and display along with the times/memory uses to give some context for the times taken. I guess we never implemented the code to actually parse and display this information on perf.r-l.o (iirc, I think we might parse, but not display). This PR would make it much more annoying to do that - you'd potentially get a whole bunch of other info output. This mechanism is also rather easy to break without noticing. So, I think we shouldn't make this change. However, perhaps it is not worth having this info at all? In which case we could check the perf code, and then remove the option.
|
Not absolutely certain, but I believe that the scripts for parsing this for perf.r-l.o will not break if it's removed, except for the potential breakage when I support not removing this because of the problems @nrc mentions above; neither |
Ping! It's been almost two months. What should we do about this PR? |
@nrc and @Mark-Simulacrum's comments are opposed, which would seem to outweigh @alexcrichton's neutral-to-mildly-in-favor comment; looks to me like we should close (and #34121). (I was just trying to help out with easy filed issues and don't personally have any particular interest in |
In Issue #34121, it was suggested that the
input-stats
debugging command-line flag could be replaced with logging.Before:
After:
You might wonder why the diff uses
info!
logging rather thandebug!
logging, as the issue suggested! It's because when I try to usedebug!
, it doesn't work: the messages don't get output even withRUST_LOG=debug
or similar. I have no idea why this should be.