Package-level declarations

Types

Link copied to clipboard
internal class AndroidBenchmarkPlatformActions(val context: Context, val dispatchersProvider: DispatchersProvider) : BenchmarkPlatformActions

Android implementation of benchmark platform side effects.

Link copied to clipboard
sealed interface BenchmarkActionResult

Result returned by benchmark platform actions.

Link copied to clipboard
sealed interface BenchmarkIntent : MviIntent

Describes user actions handled by BenchmarkViewModel.

Link copied to clipboard

Defines platform side effects used by the benchmark screen.

Link copied to clipboard
data class BenchmarkState(val loadingDevice: Boolean = true, val loadingResult: Boolean = true, val running: Boolean = false, val deviceInfo: BenchmarkDeviceInfo? = null, val latestResult: BenchmarkResult? = null, val error: String? = null) : MviState

Holds benchmark screen state.

Link copied to clipboard
class BenchmarkViewModel(val dispatchersProvider: DispatchersProvider, val benchmarkManager: BenchmarkManager, val router: BenchmarkRouter, val platformActions: BenchmarkPlatformActions, val onError: (Throwable) -> Unit = {}) : BaseMviViewModel<BenchmarkState, BenchmarkIntent, EmptyEffect>

Coordinates benchmark screen state and safe benchmark execution.

Link copied to clipboard

iOS implementation of benchmark platform side effects.

Link copied to clipboard

No-op fallback for previews and tests.

Functions

Link copied to clipboard
Link copied to clipboard
fun BenchmarkScreen(modifier: Modifier = Modifier, router: BenchmarkRouter? = null)

Renders the benchmark screen with its Koin-provided ViewModel.

Link copied to clipboard
fun BenchmarkScreenContent(modifier: Modifier = Modifier, state: BenchmarkState, processIntent: (BenchmarkIntent) -> Unit = {})

Renders benchmark screen content.

Link copied to clipboard
private fun CapabilitiesSection(loading: Boolean, deviceInfo: BenchmarkDeviceInfo?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Creates fallback benchmark platform actions for Android previews.

Creates default platform actions for the current target.

Creates benchmark platform actions for iOS.

Link copied to clipboard
Link copied to clipboard
private fun DeviceSection(loading: Boolean, deviceInfo: BenchmarkDeviceInfo?)
Link copied to clipboard
Link copied to clipboard
internal actual fun formatBenchmarkTimestamp(epochMillis: Long): String

Formats benchmark timestamps with the user's platform locale.

internal expect fun formatBenchmarkTimestamp(epochMillis: Long): String

Formats benchmark timestamps with the user's platform locale.

internal actual fun formatBenchmarkTimestamp(epochMillis: Long): String

Formats benchmark timestamps with the user's platform locale.

Link copied to clipboard
private fun InfoRow(label: String, value: String)
Link copied to clipboard
private fun InfoRowContent(label: String, value: @Composable () -> Unit)
Link copied to clipboard
private fun String?.orUnknown(): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
private fun UIApplication.rootViewController(): UIViewController?
Link copied to clipboard
private fun ScoreInfoRow(label: String, value: String)
Link copied to clipboard
Link copied to clipboard
private fun ScoreSection(result: BenchmarkResult?, loading: Boolean, running: Boolean)
Link copied to clipboard
private fun SectionCard(icon: ImageVector, title: String, content: @Composable ColumnScope.() -> Unit)
Link copied to clipboard
Link copied to clipboard
private fun ShimmerLine(modifier: Modifier)
Link copied to clipboard
private fun TableRowsSkeleton(count: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
private fun UIViewController.topMostPresentedViewController(): UIViewController