mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update profiler logging with current ProfilerCategory enum values
This commit is contained in:
parent
889b9ad3f0
commit
263278a4dc
2 changed files with 24 additions and 2 deletions
|
@ -30,9 +30,13 @@ pub fn init() {
|
||||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::LayoutTreeBuilder);
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::LayoutTreeBuilder);
|
||||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::LayoutDamagePropagate);
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::LayoutDamagePropagate);
|
||||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::LayoutGeneratedContent);
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::LayoutGeneratedContent);
|
||||||
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::LayoutDisplayListSorting);
|
||||||
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::LayoutFloatPlacementSpeculation);
|
||||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::LayoutMain);
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::LayoutMain);
|
||||||
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::LayoutStoreOverflow);
|
||||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::LayoutParallelWarmup);
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::LayoutParallelWarmup);
|
||||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::LayoutDispListBuild);
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::LayoutDispListBuild);
|
||||||
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::NetHTTPRequestResponse);
|
||||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::PaintingPerTile);
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::PaintingPerTile);
|
||||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::PaintingPrepBuff);
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::PaintingPrepBuff);
|
||||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::Painting);
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::Painting);
|
||||||
|
@ -43,16 +47,24 @@ pub fn init() {
|
||||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptDevtoolsMsg);
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptDevtoolsMsg);
|
||||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptDocumentEvent);
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptDocumentEvent);
|
||||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptDomEvent);
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptDomEvent);
|
||||||
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptEvaluate);
|
||||||
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptEvent);
|
||||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptFileRead);
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptFileRead);
|
||||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptImageCacheMsg);
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptImageCacheMsg);
|
||||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptInputEvent);
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptInputEvent);
|
||||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptNetworkEvent);
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptNetworkEvent);
|
||||||
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptParseHTML);
|
||||||
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptPlannedNavigation);
|
||||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptResize);
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptResize);
|
||||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptEvent);
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptSetScrollState);
|
||||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptUpdateReplacedElement);
|
|
||||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptSetViewport);
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptSetViewport);
|
||||||
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptTimerEvent);
|
||||||
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptStylesheetLoad);
|
||||||
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptUpdateReplacedElement);
|
||||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptWebSocketEvent);
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptWebSocketEvent);
|
||||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptWorkerEvent);
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptWorkerEvent);
|
||||||
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptServiceWorkerEvent);
|
||||||
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptParseXML);
|
||||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ApplicationHeartbeat);
|
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ApplicationHeartbeat);
|
||||||
unsafe {
|
unsafe {
|
||||||
HBS = Some(mem::transmute(Box::new(hbs)));
|
HBS = Some(mem::transmute(Box::new(hbs)));
|
||||||
|
|
|
@ -30,9 +30,13 @@ HEARTBEAT_PROFILER_CATEGORIES = [
|
||||||
("LayoutTreeBuilder", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
("LayoutTreeBuilder", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
("LayoutDamagePropagate", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
("LayoutDamagePropagate", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
("LayoutGeneratedContent", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
("LayoutGeneratedContent", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
|
("LayoutDisplayListSorting", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
|
("LayoutFloatPlacementSpeculation", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
("LayoutMain", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
("LayoutMain", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
|
("LayoutStoreOverflow", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
("LayoutParallelWarmup", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
("LayoutParallelWarmup", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
("LayoutDispListBuild", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
("LayoutDispListBuild", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
|
("NetHTTPRequestResponse", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
("PaintingPerTile", 50),
|
("PaintingPerTile", 50),
|
||||||
("PaintingPrepBuff", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
("PaintingPrepBuff", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
("Painting", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
("Painting", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
|
@ -43,18 +47,24 @@ HEARTBEAT_PROFILER_CATEGORIES = [
|
||||||
("ScriptDevtoolsMsg", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
("ScriptDevtoolsMsg", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
("ScriptDocumentEvent", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
("ScriptDocumentEvent", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
("ScriptDomEvent", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
("ScriptDomEvent", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
|
("ScriptEvaluate", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
("ScriptEvent", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
("ScriptEvent", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
("ScriptFileRead", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
("ScriptFileRead", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
("ScriptImageCacheMsg", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
("ScriptImageCacheMsg", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
("ScriptInputEvent", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
("ScriptInputEvent", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
("ScriptNetworkEvent", 200),
|
("ScriptNetworkEvent", 200),
|
||||||
|
("ScriptParseHTML", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
|
("ScriptPlannedNavigation", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
("ScriptResize", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
("ScriptResize", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
|
("ScriptSetScrollState", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
("ScriptSetViewport", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
("ScriptSetViewport", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
("ScriptTimerEvent", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
("ScriptTimerEvent", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
("ScriptStylesheetLoad", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
("ScriptStylesheetLoad", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
("ScriptUpdateReplacedElement", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
("ScriptUpdateReplacedElement", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
("ScriptWebSocketEvent", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
("ScriptWebSocketEvent", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
("ScriptWorkerEvent", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
("ScriptWorkerEvent", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
|
("ScriptServiceWorkerEvent", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
|
("ScriptParseXML", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||||
("ApplicationHeartbeat", 100),
|
("ApplicationHeartbeat", 100),
|
||||||
]
|
]
|
||||||
ENERGY_READER_BIN = "energymon-file-provider"
|
ENERGY_READER_BIN = "energymon-file-provider"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue