We have an application which has been written with async/await. There are some problems, the profiler we use does not support async, some other tools also have some issues.
We would like to compare our performance/scalability with and without async. Its mostly straightforward to make a branch and just search and replace all of the async stuff away. But it would be even cleaner if we could set a complier flag or something to turn async off. (Eg, don't generate the state machine)
Is this possible? Is there any other way to easily switch between async/non-async versions? (Perhaps a plugin that will swap all the code in and out?)