1
0
Fork 0
forked from wry/wry

all: use tracy for tracing

This commit is contained in:
Julian Orth 2024-09-15 18:08:54 +02:00
parent 50186e764e
commit ccad3cf0fb
56 changed files with 647 additions and 171 deletions

View file

@ -453,9 +453,11 @@ impl Xcon {
xorg: CloneCell::new(Weak::new()),
events: Default::default(),
});
let outgoing = state
.eng
.spawn2(Phase::PostLayout, handle_outgoing(data.clone()));
let outgoing = state.eng.spawn2(
"xcon send",
Phase::PostLayout,
handle_outgoing(data.clone()),
);
let mut buf = data.bufio.buf();
let mut fds = vec![];
{
@ -502,7 +504,9 @@ impl Xcon {
return Err(XconError::Authenticate(reason.to_owned()));
}
let setup = Setup::deserialize(&mut parser)?;
let incoming = state.eng.spawn(handle_incoming(data.clone(), incoming));
let incoming = state
.eng
.spawn("X incoming", handle_incoming(data.clone(), incoming));
let slf = Rc::new(Self {
extensions: data.fetch_extension_data().await?,
outgoing: Cell::new(Some(outgoing)),