aboutsummaryrefslogtreecommitdiffstats
path: root/components/constellation/tracing.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/constellation/tracing.rs')
-rw-r--r--components/constellation/tracing.rs30
1 files changed, 1 insertions, 29 deletions
diff --git a/components/constellation/tracing.rs b/components/constellation/tracing.rs
index 38dda83538f..efd3c0e9566 100644
--- a/components/constellation/tracing.rs
+++ b/components/constellation/tracing.rs
@@ -30,17 +30,6 @@ macro_rules! trace_script_msg {
};
}
-/// Log an event from layout at trace level.
-/// - To disable tracing: RUST_LOG='constellation<layout@=off'
-/// - To enable tracing: RUST_LOG='constellation<layout@'
-macro_rules! trace_layout_msg {
- // This macro only exists to put the docs in the same file as the target prefix,
- // so the macro definition is always the same.
- ($event:expr, $($rest:tt)+) => {
- ::log::trace!(target: $crate::tracing::LogTarget::log_target(&$event), $($rest)+)
- };
-}
-
/// Get the log target for an event, as a static string.
pub(crate) trait LogTarget {
fn log_target(&self) -> &'static str;
@@ -87,6 +76,7 @@ mod from_compositor {
Self::MediaSessionAction(_) => target!("MediaSessionAction"),
Self::SetWebViewThrottled(_, _) => target!("SetWebViewThrottled"),
Self::SetScrollStates(..) => target!("SetScrollStates"),
+ Self::PaintMetric(..) => target!("PaintMetric"),
}
}
}
@@ -249,21 +239,3 @@ mod from_script {
}
}
}
-
-mod from_layout {
- use super::LogTarget;
-
- macro_rules! target {
- ($($name:literal)+) => {
- concat!("constellation<layout@", $($name),+)
- };
- }
-
- impl LogTarget for script_traits::LayoutMsg {
- fn log_target(&self) -> &'static str {
- match self {
- Self::PendingPaintMetric(..) => target!("PendingPaintMetric"),
- }
- }
- }
-}