added infrastructure to handle interval and CSV time profiling alongside html-timeline-profiling

This commit is contained in:
Rohit Zambre 2016-05-11 11:27:07 -07:00
parent 81246a7b61
commit ca3084d241
9 changed files with 214 additions and 92 deletions

View file

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