Post #2637533
2026-02-17 06:05 UTC
@cocoaphony@mastodon.social @ktoso@mastodon.social @ole@chaos.social Instruments with the Swift Concurrency template should be helpful here. It should be able to show you all the tasks that were created, how long they lived and what state they were in.
You can also profile tests, not just apps.
Replies (1)
-
@cocoaphony@mastodon.social 2026-02-17 12:01
@cocoafrog@hachyderm.io @ktoso@mastodon.social @ole@chaos.social but it won’t show me what line of code each task is currently at the way I can with threads. It’s also very difficult for me to profile tests, because our tests rely on some hooks we only allow in DEBUG and I’ve had a very hard time getting SwiftPM packages to be profiled in DEBUG, or to pass a flag we could use instead. (Making that work is a big goal for this year.) Problem is also not consistent and may be a test order interaction, which is hard with Instruments.