mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Fix macOS's sameple isn't used in background_hang_monitor (#30490)
This commit is contained in:
parent
1552a77e5c
commit
a31e2ea576
1 changed files with 4 additions and 1 deletions
|
@ -100,7 +100,10 @@ impl BackgroundHangMonitorRegister for HangMonitorRegister {
|
|||
not(any(target_arch = "arm", target_arch = "aarch64"))
|
||||
))]
|
||||
let sampler = crate::sampler_linux::LinuxSampler::new();
|
||||
#[cfg(any(target_os = "android", target_arch = "arm", target_arch = "aarch64"))]
|
||||
#[cfg(all(
|
||||
any(target_os = "android", target_os = "linux"),
|
||||
any(target_arch = "arm", target_arch = "aarch64")
|
||||
))]
|
||||
let sampler = crate::sampler::DummySampler::new();
|
||||
|
||||
// When a component is registered, and there's an exit request that
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue