mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Update heartbeats-simple to 0.4; Include recently added profiler categories in heartbeat logging
This commit is contained in:
parent
ccc1df2dfe
commit
d10ad4465f
2 changed files with 6 additions and 0 deletions
|
@ -65,6 +65,9 @@ pub fn init() {
|
|||
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::ScriptEnterFullscreen);
|
||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptExitFullscreen);
|
||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptWebVREvent);
|
||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ApplicationHeartbeat);
|
||||
unsafe {
|
||||
HBS = Some(mem::transmute(Box::new(hbs)));
|
||||
|
|
|
@ -65,6 +65,9 @@ HEARTBEAT_PROFILER_CATEGORIES = [
|
|||
("ScriptWorkerEvent", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||
("ScriptServiceWorkerEvent", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||
("ScriptParseXML", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||
("ScriptEnterFullscreen", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||
("ScriptExitFullscreen", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||
("ScriptWebVREvent", HEARTBEAT_DEFAULT_WINDOW_SIZE),
|
||||
("ApplicationHeartbeat", 100),
|
||||
]
|
||||
ENERGY_READER_BIN = "energymon-file-provider"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue