mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Implements profiler for blocked recv
This commit is contained in:
parent
563f0ec824
commit
7d4e2b11e9
27 changed files with 176 additions and 58 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue