mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
bound sampler buffer
This commit is contained in:
parent
fcd6beb608
commit
0780298b80
8 changed files with 36 additions and 18 deletions
|
@ -494,6 +494,7 @@ pub trait BackgroundHangMonitor {
|
|||
/// Messages to control the sampling profiler.
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub enum SamplerControlMsg {
|
||||
Enable(Duration),
|
||||
/// Enable the sampler, with a given sampling rate and max total sampling duration.
|
||||
Enable(Duration, Duration),
|
||||
Disable,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue