diff options
author | Delan Azabani <dazabani@igalia.com> | 2024-11-15 16:14:01 +0800 |
---|---|---|
committer | Delan Azabani <dazabani@igalia.com> | 2024-11-15 16:14:27 +0800 |
commit | bbd31048f62031601920c49c697a502fcda06367 (patch) | |
tree | 1d6c3c813d00c2f701fb2854f07948d892e3b720 | |
parent | 3018127af033f61f38a5e519bfe3ac08db02336f (diff) | |
download | servo-plumb-time-profiler-into-tracing.tar.gz servo-plumb-time-profiler-into-tracing.zip |
Use `info_span!()` shorthandplumb-time-profiler-into-tracing
Signed-off-by: Delan Azabani <dazabani@igalia.com>
-rw-r--r-- | components/shared/profile/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/shared/profile/lib.rs b/components/shared/profile/lib.rs index 3e5035f112b..fef2b255bea 100644 --- a/components/shared/profile/lib.rs +++ b/components/shared/profile/lib.rs @@ -19,7 +19,7 @@ pub mod time; macro_rules! time_profile { ($category:expr, $meta:expr, $profiler_chan:expr, $($callback:tt)+) => {{ #[cfg(feature = "tracing")] - let span = tracing::span!(tracing::Level::INFO, $category.variant_name(), servo_profiling = true); + let span = tracing::info_span!($category.variant_name(), servo_profiling = true); #[cfg(not(feature = "tracing"))] let span = (); $crate::time::profile($category, $meta, $profiler_chan, span, $($callback)+) |