mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Bring back run_with_memory_reporting in serviceworkerglobalscope
This commit is contained in:
parent
c1409af543
commit
4936fb26d9
2 changed files with 9 additions and 6 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue