Package-level declarations
Types
Link copied to clipboard
data class BenchmarkResult(val elapsed: Duration, val success: Boolean, val errorMessage: String? = null)
Benchmark metrics for a single BLE operation with success/failure tracking.
Link copied to clipboard
Lightweight benchmark utility for measuring BLE operation latency and throughput.
Link copied to clipboard
Link copied to clipboard
Collects latency samples and computes percentile statistics. Not thread-safe - confine to a single coroutine or use external serialization.
Link copied to clipboard
Measures data throughput for BLE transfer operations.
Link copied to clipboard
data class ThroughputResult(val label: String, val totalBytes: Long, val sampleCount: Long, val duration: Duration)
Result of a throughput measurement.
Link copied to clipboard
Result of a single timed operation.
Functions
Link copied to clipboard
suspend fun <T> bleStopwatch(label: String, timeSource: TimeSource = TimeSource.Monotonic, block: suspend () -> T): TimingResult<T>
Measure the duration of a suspending BLE operation.