toMap method

Map<String, dynamic> toMap()

Converts metrics to a map representation.

Useful for serialization or debugging purposes.

Implementation

Map<String, dynamic> toMap() {
  return {
    'fps': fps,
    'processingTimeMs': processingTimeMs,
    'frameNumber': frameNumber,
    'timestamp': timestamp.millisecondsSinceEpoch,
  };
}