diff --git a/ports/servoshell/lib.rs b/ports/servoshell/lib.rs index 5fd4b9fbba0..c28ccbf79cd 100644 --- a/ports/servoshell/lib.rs +++ b/ports/servoshell/lib.rs @@ -52,7 +52,8 @@ pub fn init_tracing() { // Set up a PerfettoLayer for performance tracing. // The servo.pftrace file can be uploaded to https://ui.perfetto.dev for analysis. let file = std::fs::File::create("servo.pftrace").unwrap(); - let perfetto_layer = tracing_perfetto::PerfettoLayer::new(std::sync::Mutex::new(file)); + let perfetto_layer = tracing_perfetto::PerfettoLayer::new(std::sync::Mutex::new(file)) + .with_filter_by_marker(|field_name| field_name == "servo_profiling"); subscriber.with(perfetto_layer) };