Skip to content

Commit

Permalink
Update heartbeats-simple to 0.4; Include recently added profiler cate…
Browse files Browse the repository at this point in the history
…gories in heartbeat logging
  • Loading branch information
connorimes committed Feb 20, 2017
1 parent ccc1df2 commit d10ad44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/profile/heartbeats.rs
Expand Up @@ -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)));
Expand Down
3 changes: 3 additions & 0 deletions tests/heartbeats/characterize.py
Expand Up @@ -65,6 +65,9 @@
("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"
Expand Down

0 comments on commit d10ad44

Please sign in to comment.