Plumb URL into interval profiler tracing events (#34337)

Signed-off-by: Delan Azabani <dazabani@igalia.com>
This commit is contained in:
Delan Azabani 2024-11-22 21:31:00 +08:00 committed by GitHub
parent fd3af6ad04
commit 3a32af0c85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 21 additions and 4 deletions

View file

@ -55,10 +55,16 @@ pub enum ProfilerMsg {
Exit(IpcSender<()>),
}
/// Usage sites of variants marked “Rust tracing only” are not visible to rust-analyzer.
#[repr(u32)]
#[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize)]
pub enum ProfilerCategory {
/// The compositor is rasterising or presenting.
///
/// Not associated with a specific URL.
Compositing = 0x00,
/// The script thread is doing layout work.
LayoutPerform = 0x10,
/// Events currently only used by Layout 2013.