BenchmarkResult class

Result of a battery benchmark session.

Constructors

BenchmarkResult({required Duration duration, required double drainPercent, required int locationUpdates, required int syncRequests, required double gpsOnPercent, required double averageAccuracy, required Map<String, Duration> timeByState})
Creates a benchmark result.
const

Properties

averageAccuracy double
Average location accuracy in meters.
final
drainPercent double
Battery drain percentage.
final
drainPerHour double
Drain rate per hour.
no setter
duration Duration
Total benchmark duration.
final
gpsOnPercent double
Percentage of time GPS was active.
final
hashCode int
The hash code for this object.
no setterinherited
locationUpdates int
Number of location updates received.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
syncRequests int
Number of sync requests made.
final
timeByState Map<String, Duration>
Time spent in each motion state.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() JsonMap
Converts to a JSON-serializable map.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited