mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
bound sampler buffer
This commit is contained in:
parent
fcd6beb608
commit
0780298b80
8 changed files with 36 additions and 18 deletions
|
@ -1216,9 +1216,9 @@ where
|
|||
self.forward_event(destination_pipeline_id, event);
|
||||
},
|
||||
FromCompositorMsg::SetCursor(cursor) => self.handle_set_cursor_msg(cursor),
|
||||
FromCompositorMsg::EnableProfiler(rate) => {
|
||||
FromCompositorMsg::EnableProfiler(rate, max_duration) => {
|
||||
for chan in &self.sampling_profiler_control {
|
||||
if let Err(e) = chan.send(SamplerControlMsg::Enable(rate)) {
|
||||
if let Err(e) = chan.send(SamplerControlMsg::Enable(rate, max_duration)) {
|
||||
warn!("error communicating with sampling profiler: {}", e);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue