I have a complex flow of async/await functions that I would like to optimise.
Using the built-in profiler of Chrome dev tools is practical when debugging synchronous workflows, but tracking micro-tasks triggers to resume promises is a difficult workflow and gives little overview.
Different ideas: I was thinking in the lines of exploiting babel-generated code to gather time spent in different stages of promise resolving, or perhaps using untranspiled code and overriding the global Promise
object to gain performance insights.
How can I debug performance of async/await functions in an effective manner?