mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Implements profiler for blocked recv
This commit is contained in:
parent
563f0ec824
commit
7d4e2b11e9
27 changed files with 176 additions and 58 deletions
|
@ -29,6 +29,7 @@ use net_traits::{CoreResourceMsg, FetchChannels};
|
|||
use net_traits::{WebSocketDomAction, WebSocketNetworkEvent};
|
||||
use net_traits::MessageData;
|
||||
use net_traits::request::{RequestInit, RequestMode};
|
||||
use profile_traits::ipc as ProfiledIpc;
|
||||
use script_runtime::CommonScriptMsg;
|
||||
use script_runtime::ScriptThreadEventCategory::WebSocketEvent;
|
||||
use servo_url::ServoUrl;
|
||||
|
@ -181,7 +182,8 @@ impl WebSocket {
|
|||
IpcReceiver<WebSocketDomAction>) = ipc::channel().unwrap();
|
||||
let (resource_event_sender, dom_event_receiver):
|
||||
(IpcSender<WebSocketNetworkEvent>,
|
||||
IpcReceiver<WebSocketNetworkEvent>) = ipc::channel().unwrap();
|
||||
ProfiledIpc::IpcReceiver<WebSocketNetworkEvent>) =
|
||||
ProfiledIpc::channel(global.time_profiler_chan().clone()).unwrap();
|
||||
|
||||
// Step 8.
|
||||
let request = RequestInit {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue