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

@ -271,7 +271,7 @@ where
impl Backend for TestBackend {
fn run(self: Rc<Self>) -> SpawnedFuture<Result<(), Box<dyn std::error::Error>>> {
let future = (self.test_future)(&self.state);
self.state.eng.spawn(async move {
self.state.eng.spawn("", async move {
let future: Pin<_> = future.into();
future.await;
Ok(())

View file

@ -147,6 +147,7 @@ impl TestTransport {
pub fn init(self: &Rc<Self>) {
self.incoming.set(Some(
self.run.state.eng.spawn(
"",
Incoming {
tc: self.clone(),
buf: BufFdIn::new(&self.socket, &self.run.state.ring),
@ -156,6 +157,7 @@ impl TestTransport {
));
self.outgoing.set(Some(
self.run.state.eng.spawn(
"",
Outgoing {
tc: self.clone(),
buf: BufFdOut::new(&self.socket, &self.run.state.ring),