Bring back run_with_memory_reporting in serviceworkerglobalscope

This commit is contained in:
Rahul Sharma 2016-07-22 19:48:54 +05:30
parent c1409af543
commit 4936fb26d9
2 changed files with 9 additions and 6 deletions

View file

@ -218,7 +218,7 @@ impl DedicatedWorkerGlobalScope {
scope.execute_script(DOMString::from(source));
}
let reporter_name = format!("worker-reporter-{}", random::<u64>());
let reporter_name = format!("dedicated-worker-reporter-{}", random::<u64>());
scope.mem_profiler_chan().run_with_memory_reporting(|| {
while let Ok(event) = global.receive_event() {
if scope.is_closing() {