Update heartbeats-simple to 0.4; Include recently added profiler categories in heartbeat logging

This commit is contained in:
Connor Imes 2017-02-07 12:45:11 -06:00
parent ccc1df2dfe
commit d10ad4465f
2 changed files with 6 additions and 0 deletions

View file

@ -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)));

View file

@ -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"