BenchmarkResultDao

Reads and writes persisted benchmark results.

Author

Dmitriy Moroz

Functions

Link copied to clipboard
abstract suspend fun deleteAll()

Deletes stored benchmark rows before a fresh snapshot is saved.

Link copied to clipboard
abstract suspend fun insert(item: BenchmarkResultEntity): Long

Inserts a benchmark result.

Link copied to clipboard
abstract fun observeLatest(): Flow<BenchmarkResultEntity?>

Observes the most recent benchmark result.

Link copied to clipboard
abstract suspend fun queryLatest(): BenchmarkResultEntity?

Loads the most recent benchmark result.

Link copied to clipboard
open suspend fun replaceLatest(item: BenchmarkResultEntity): Long

Replaces stale benchmark rows with the newest result snapshot.