all: use tracy for tracing
This commit is contained in:
parent
50186e764e
commit
ccad3cf0fb
56 changed files with 647 additions and 171 deletions
|
|
@ -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(())
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue