ScannerStats class
Real-time operational performance telemetry metrics exposed by ScannerPro SDK.
- Annotations
Constructors
- ScannerStats({double fps = 0.0, double processingTimeMs = 0.0, double memoryMb = 0.0, int droppedFrames = 0, int processedFrames = 0, double cpuUsageEstimate = 0.0, DateTime? timestamp})
- Constructs a ScannerStats telemetry snapshot.
Properties
- averageScanTimeMs → double
-
Alias getter for average scan execution time in milliseconds.
no setter
- cpuUsageEstimate → double
-
Estimated CPU load percentage (0.0 to 100.0%).
final
- detectionTimeMs → double
-
Alias getter for single frame detection latency in milliseconds.
no setter
- droppedFrames → int
-
Total count of frames skipped due to throttling, blur, or static scene detection.
final
- fps → double
-
Estimated live camera frame detection rate (frames per second).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- memoryMb → double
-
Estimated memory usage in megabytes (MB).
final
- memoryUsageBytes → int
-
Memory usage in bytes.
no setter
- memoryUsageMB → double
-
Alias getter for memory usage in MB.
no setter
- processedFrames → int
-
Total count of frame passes successfully processed by ML Kit vision models.
final
- processingTimeMs → double
-
Average frame processing duration in milliseconds.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → DateTime
-
Timestamp when stats snapshot was captured.
final
Methods
-
copyWith(
{double? fps, double? processingTimeMs, double? memoryMb, int? droppedFrames, int? processedFrames, double? cpuUsageEstimate, DateTime? timestamp}) → ScannerStats - Creates a copy of ScannerStats with modified metrics.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts stats payload to JSON map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- empty → ScannerStats
-
Default initial empty stats.
final