From 8b3edbbf7f6433d8c85a2db8da15002edc903c62 Mon Sep 17 00:00:00 2001 From: Alexandr Evstigneev Date: Wed, 19 Jun 2024 16:34:05 +0400 Subject: [PATCH] Publish typing metrics from the frontend GitOrigin-RevId: a906c94d3f7b1139db6ffb9e8640e06a6a7586c8 --- .../src/com/intellij/ide/starter/models/IDEStartResult.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/intellij.tools.ide.starter/src/com/intellij/ide/starter/models/IDEStartResult.kt b/intellij.tools.ide.starter/src/com/intellij/ide/starter/models/IDEStartResult.kt index b7ea7cf6..b89865da 100644 --- a/intellij.tools.ide.starter/src/com/intellij/ide/starter/models/IDEStartResult.kt +++ b/intellij.tools.ide.starter/src/com/intellij/ide/starter/models/IDEStartResult.kt @@ -20,6 +20,11 @@ data class IDEStartResult( val mainReportAttributes get() = mapOf("execution time" to executionTime.toString()) + /** + * @return client result if run was in split mode, or receiver if we ran monolithic ide (when frontend and backend are the same) + */ + fun frontendResult(): IDEStartResult = clientResult ?: this + private fun logVmOptionDiff(vmOptionsDiff: VMOptionsDiff?) { if (vmOptionsDiff != null && !vmOptionsDiff.isEmpty) { logOutput("VMOptions were changed:")