-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Update tracing, again #146188
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
base: master
Are you sure you want to change the base?
Update tracing, again #146188
Conversation
rustbot has assigned @Mark-Simulacrum. Use |
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (0917255): comparison URL. Overall result: ❌✅ regressions and improvements - please read the text belowBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @bors rollup=never Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 2.3%, secondary 3.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 3.6%, secondary 6.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 466.26s -> 486.484s (4.34%) |
Ok, still bad: I'll try to find some time to root cause the regression |
Huh, so on Windows I see a 1% binary size improvement for rustc_driver, seems like it's from tokio-rs/tracing#2555. Digging into the Linux side of things now (may take longer since I'm less familiar with it...) |
For the Linux binary size regression, it seems to be caused by a bunch of new I'm still looking into the instruction count regression. Not sure if those statics are part of it (additional startup costs to init them or apply relocs?). |
Finally figured out how to repro this locally: I needed to use the I confirmed this by looking at the |
I think I found the issue. We need to put |
Actually, figured I could try it myself =D Hope you don't mind. @bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (751817a): comparison URL. Overall result: ✅ improvements - no action neededBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. @bors rollup=never Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 0.2%, secondary 5.3%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 2.9%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (secondary 0.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 467.607s -> 468.277s (0.14%) |
Nice! I think that was it. r? @Kobzol |
This tokio-rs/tracing#2553? Looks like before if unset |
Great find! |
Submitting pr, i hope tracing will be updated and we can directly bump it without workarounds. |
I think that the behavior of tracing does actually correspond to what the documentation says (https://docs.rs/tracing/latest/tracing/level_filters/index.html) - note the "separately for release and debug builds" part. So either we held it wrong before, or their documentation changed in the meantime. |
tokio-rs/tracing#3373, but need to test :-) |
I think that in either case, we should just set both features, to be sure. |
☔ The latest upstream changes (presumably #146267) made this pull request unmergeable. Please resolve the merge conflicts. |
Previous attempts (#127316, #134770) saw binary size regressions. Maybe it'll be different this time?