mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
Use info_span!() shorthand
Signed-off-by: Delan Azabani <dazabani@igalia.com>
This commit is contained in:
@@ -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)+)
|
||||
|
||||
Reference in New Issue
Block a user