Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Await-Tree – Visualize Async Rust Task Execution in Real-Time (github.com/risingwavelabs)
28 points by Sheldon_fun 8 days ago | hide | past | favorite | 2 comments





For someone looking for the visualization, here it is.

    // foo [1.006s]
    //   bar [1.006s]
    //     baz in bar [1.006s]
    //       working in baz 3 [1.006s]
    //   baz [1.006s]
    //     working in baz 2 [1.006s]
    println!("{tree}");
Would it be possible to render the tree using a flamegraph?

`await-tree` seems to be able to output to JSON. As long as all keys are unique, it should be straightforward to convert it into the Collapsed Stack Format most flame graph tools natively ingest.

As a reference: I wrote a Dhat-JSON to Flamegraph conversion tool a while ago for fun. Adapting this to instead convert from the await-tree JSON format probably shouldn't take long:

https://github.com/yoshuawuyts/dhat-to-flamegraph/blob/main/...




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: