mirror of
https://github.com/servo/servo.git
synced 2025-10-01 00:59:15 +01:00
bound sampler buffer
This commit is contained in:
parent
fcd6beb608
commit
0780298b80
8 changed files with 36 additions and 18 deletions
|
@ -121,8 +121,12 @@ impl Browser {
|
|||
.ok()
|
||||
.and_then(|s| s.parse().ok())
|
||||
.unwrap_or(10);
|
||||
let duration = env::var("SAMPLING_DURATION")
|
||||
.ok()
|
||||
.and_then(|s| s.parse().ok())
|
||||
.unwrap_or(10);
|
||||
self.event_queue.push(WindowEvent::ToggleSamplingProfiler(
|
||||
Duration::from_millis(rate)));
|
||||
Duration::from_millis(rate), Duration::from_secs(duration)));
|
||||
})
|
||||
.shortcut(Modifiers::CONTROL, Key::F9, || {
|
||||
self.event_queue.push(WindowEvent::CaptureWebRender)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue