diff options
author | Nakul Jindal <nakul02@gmail.com> | 2018-02-26 09:07:08 -0800 |
---|---|---|
committer | Nakul Jindal <nakul02@gmail.com> | 2018-03-22 11:48:27 -0700 |
commit | 7d4e2b11e940545eaa74877b75908e1e02f6eeb5 (patch) | |
tree | ca44de813d0bf3ca11c8bd2e914a4af4a373955f /components/script/dom/bluetooth.rs | |
parent | 563f0ec8245d6ff4d7d200c30655f90f5bdfed64 (diff) | |
download | servo-7d4e2b11e940545eaa74877b75908e1e02f6eeb5.tar.gz servo-7d4e2b11e940545eaa74877b75908e1e02f6eeb5.zip |
Implements profiler for blocked recv
Diffstat (limited to 'components/script/dom/bluetooth.rs')
-rw-r--r-- | components/script/dom/bluetooth.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/bluetooth.rs b/components/script/dom/bluetooth.rs index 44cf83df5d8..e0dd0f00e10 100644 --- a/components/script/dom/bluetooth.rs +++ b/components/script/dom/bluetooth.rs @@ -34,6 +34,7 @@ use ipc_channel::router::ROUTER; use js::conversions::ConversionResult; use js::jsapi::{JSContext, JSObject}; use js::jsval::{ObjectValue, UndefinedValue}; +use profile_traits::ipc as ProfiledIpc; use std::cell::Ref; use std::collections::HashMap; use std::rc::Rc; @@ -613,7 +614,7 @@ impl PermissionAlgorithm for Bluetooth { // Step 6.2.2. // Instead of creating an internal slot we send an ipc message to the Bluetooth thread // to check if one of the filters matches. - let (sender, receiver) = ipc::channel().unwrap(); + let (sender, receiver) = ProfiledIpc::channel(global.time_profiler_chan().clone()).unwrap(); status.get_bluetooth_thread() .send(BluetoothRequest::MatchesFilter(device_id.clone(), BluetoothScanfilterSequence::new(scan_filters), |