mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
added infrastructure to handle interval and CSV time profiling alongside html-timeline-profiling
This commit is contained in:
parent
81246a7b61
commit
ca3084d241
9 changed files with 214 additions and 92 deletions
|
@ -509,7 +509,13 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
|||
while self.port.try_recv_compositor_msg().is_some() {}
|
||||
|
||||
// Tell the profiler, memory profiler, and scrolling timer to shut down.
|
||||
self.time_profiler_chan.send(time::ProfilerMsg::Exit);
|
||||
match ipc::channel() {
|
||||
Ok((sender, receiver)) => {
|
||||
self.time_profiler_chan.send(time::ProfilerMsg::Exit(sender));
|
||||
receiver.recv();
|
||||
},
|
||||
Err(_) => {},
|
||||
}
|
||||
self.mem_profiler_chan.send(mem::ProfilerMsg::Exit);
|
||||
self.delayed_composition_timer.shutdown();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue