mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
bound sampler buffer
This commit is contained in:
parent
fcd6beb608
commit
0780298b80
8 changed files with 36 additions and 18 deletions
|
@ -408,10 +408,10 @@ where
|
|||
}
|
||||
},
|
||||
|
||||
WindowEvent::ToggleSamplingProfiler(rate) => {
|
||||
WindowEvent::ToggleSamplingProfiler(rate, max_duration) => {
|
||||
self.profiler_enabled = !self.profiler_enabled;
|
||||
let msg = if self.profiler_enabled {
|
||||
ConstellationMsg::EnableProfiler(rate)
|
||||
ConstellationMsg::EnableProfiler(rate, max_duration)
|
||||
} else {
|
||||
ConstellationMsg::DisableProfiler
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue