in src/main/kotlin/org/jetbrains/tinygoplugin/runconfig/TinyGoRunStateConfig.kt [117:126]
override fun processTerminated(event: ProcessEvent) {
TinyGoServiceScope.getScope(module!!.project).launch(ModalityState.current().asContextElement()) {
val heapAllocs = withContext(Dispatchers.IO) {
supplyHeapAllocsFromOutput(module!!, processOutput)
}
withContext(Dispatchers.EDT) {
module?.project?.service<TinyGoHeapAllocsViewManager>()?.updateHeapAllocsList(heapAllocs)
}
}
}