about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-10-04 11:44:49 +0900
committerGitHub <noreply@github.com>2020-10-04 11:44:49 +0900
commit6e25418474ae9961e50bd3ff076d80a3ec728531 (patch)
tree46e2dfce32305e2ada94db72b02a93e2fba83a02 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parentbad9ad06c00141114900c41750e961574f2ecc15 (diff)
parent8f9472cc9e372351964390bdf531cc65b13768c7 (diff)
downloadrust-6e25418474ae9961e50bd3ff076d80a3ec728531.tar.gz
rust-6e25418474ae9961e50bd3ff076d80a3ec728531.zip
Rollup merge of #75143 - oli-obk:tracing, r=RalfJung
Use `tracing` spans to trace the entire MIR interp stack

r? @RalfJung

While being very verbose, this allows really good tracking of what's going on. While I considered schemes like the previous indenter that we had (which we could get by using the `tracing-tree` crate), this will break down horribly with things like multithreaded rustc. Instead, we can now use `RUSTC_LOG` to restrict the things being traced. You could specify a filter in a way that only shows the logging of a specific frame.

![screenshot of command line output of the new formatting](https://user-images.githubusercontent.com/332036/89291343-aa40de00-d65a-11ea-9f6c-ea06c1806327.png)

If we lower the span's level to `debug`, then in `info` level logging we'd not see the frames, but in `debug` level we would see them. The filtering rules in `tracing` are super powerful, but  I'm not sure if we can specify a filter so we do see `debug` level events, but *not* the `frame` spans. The documentation at https://docs.rs/tracing-subscriber/0.2.10/tracing_subscriber/struct.EnvFilter.html makes me think that we can only turn on things, not turn off things at a more precise level.

cc @hawkw
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions