mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Plumb URL into interval profiler tracing events (#34337)
Signed-off-by: Delan Azabani <dazabani@igalia.com>
This commit is contained in:
parent
fd3af6ad04
commit
3a32af0c85
4 changed files with 21 additions and 4 deletions
|
@ -50,7 +50,8 @@ pub fn init_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))
|
||||
.with_filter_by_marker(|field_name| field_name == "servo_profiling");
|
||||
.with_filter_by_marker(|field_name| field_name == "servo_profiling")
|
||||
.with_debug_annotations(true);
|
||||
subscriber.with(perfetto_layer)
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue