Skip to content

Commit

Permalink
Publish typing metrics from the frontend
Browse files Browse the repository at this point in the history
GitOrigin-RevId: a906c94d3f7b1139db6ffb9e8640e06a6a7586c8
  • Loading branch information
hurricup authored and intellij-monorepo-bot committed Jun 20, 2024
1 parent 002285f commit 8b3edbb
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:")
Expand Down

0 comments on commit 8b3edbb

Please sign in to comment.