Make ScriptEvaluate count script execution in DOM events and timers (#34286)

Signed-off-by: Delan Azabani <dazabani@igalia.com>
This commit is contained in:
Delan Azabani 2024-11-19 17:07:38 +08:00 committed by GitHub
parent 4a06dc53f6
commit 26748621cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 77 additions and 85 deletions

View file

@ -78,7 +78,11 @@ pub enum ProfilerCategory {
ScriptDevtoolsMsg = 0x62,
ScriptDocumentEvent = 0x63,
ScriptDomEvent = 0x64,
/// Rust tracing only: the script thread is executing a script.
/// This may include time doing layout or parse work initiated by the script.
ScriptEvaluate = 0x65,
ScriptEvent = 0x66,
ScriptFileRead = 0x67,
ScriptImageCacheMsg = 0x68,