getMetrics method

Future<List<Metric>> getMetrics()

Retrieve current values of run-time metrics. Returns: Current values for run-time metrics.

Implementation

Future<List<Metric>> getMetrics() async {
  var result = await _client.send('Performance.getMetrics');
  return (result['metrics'] as List)
      .map((e) => Metric.fromJson(e as Map<String, dynamic>))
      .toList();
}