Debugging and Performance Tuning in a Coroutine World
summary
Practical checklist for coroutine bugs and slow paths: shows specific use of kotlinx-coroutines-debug and BlockHound, logs enriched with coroutine context and session IDs, and a pattern for attaching action names to every suspend function. Reproduces two real failures with unit tests and debugger traces (missing language default and not awaiting child coroutines), uses IntelliJ profiler to find a costly tax multiplier function, measures coroutine counts, channel sizes, and blocking calls.
AI-written summary · about
chapters (13)
- 0:00Debugging coroutines on Android
- 1:04Logging for coroutine debugging
- 4:20Structured concurrency logs
- 12:12Coroutine debugging steps
- 13:57Failing coroutine test debugging
- 18:33Missing coroutine completions
- 22:35Android tools for coroutines
- 23:39Advanced coroutine debugging
- 24:01Performance with Android tools
- 26:09Stress testing domain logic
- 30:48Coroutine performance tuning
- 32:36Blocking calls detection
- 33:19Coroutines Mastery overview


