BenchmarkViewModel
class BenchmarkViewModel(val dispatchersProvider: DispatchersProvider, val benchmarkManager: BenchmarkManager, val router: BenchmarkRouter, val platformActions: BenchmarkPlatformActions, val onError: (Throwable) -> Unit = {}) : BaseMviViewModel<BenchmarkState, BenchmarkIntent, EmptyEffect> (source)
Coordinates benchmark screen state and safe benchmark execution.
The ViewModel never invokes model inference. It delegates to BenchmarkManager, which only reads hardware metadata and runs bounded synthetic CPU/memory work.
Author
Dmitriy Moroz
Constructors
Link copied to clipboard
constructor(dispatchersProvider: DispatchersProvider, benchmarkManager: BenchmarkManager, router: BenchmarkRouter, platformActions: BenchmarkPlatformActions, onError: (Throwable) -> Unit = {})
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard