diff options
| author | Stypox <stypox@pm.me> | 2025-08-12 12:16:43 +0200 |
|---|---|---|
| committer | Stypox <stypox@pm.me> | 2025-08-18 21:43:27 +0200 |
| commit | dc72692591c937e15cb016c57d4dee6a81340bbd (patch) | |
| tree | 74a4c613ff66eaa3ec1a48ef7c50400760b45b91 /src | |
| parent | a1531335fe2807715fff569904d99602022643a7 (diff) | |
| download | rust-dc72692591c937e15cb016c57d4dee6a81340bbd.tar.gz rust-dc72692591c937e15cb016c57d4dee6a81340bbd.zip | |
Add tracing to various miscellaneous functions
Also use tracing macro syntax instead of format()
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/miri/src/machine.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/miri/src/machine.rs b/src/tools/miri/src/machine.rs index 00c3373bb0f..75bc9705bd2 100644 --- a/src/tools/miri/src/machine.rs +++ b/src/tools/miri/src/machine.rs @@ -1111,6 +1111,7 @@ impl<'tcx> Machine<'tcx> for MiriMachine<'tcx> { ) -> InterpResult<'tcx, Option<(&'tcx mir::Body<'tcx>, ty::Instance<'tcx>)>> { // For foreign items, try to see if we can emulate them. if ecx.tcx.is_foreign_item(instance.def_id()) { + let _trace = enter_trace_span!("emulate_foreign_item"); // An external function call that does not have a MIR body. We either find MIR elsewhere // or emulate its effect. // This will be Ok(None) if we're emulating the intrinsic entirely within Miri (no need @@ -1123,6 +1124,7 @@ impl<'tcx> Machine<'tcx> for MiriMachine<'tcx> { } // Otherwise, load the MIR. + let _trace = enter_trace_span!("load_mir"); interp_ok(Some((ecx.load_mir(instance.def, None)?, instance))) } |
