getHistograms method

Future<List<Histogram>> getHistograms({
  1. String? query,
  2. bool? delta,
})

Get Chrome histograms. query Requested substring in name. Only histograms which have query as a substring in their name are extracted. An empty or absent query returns all histograms. delta If true, retrieve delta since last delta call. Returns: Histograms.

Implementation

Future<List<Histogram>> getHistograms({String? query, bool? delta}) async {
  var result = await _client.send('Browser.getHistograms', {
    if (query != null) 'query': query,
    if (delta != null) 'delta': delta,
  });
  return (result['histograms'] as List)
      .map((e) => Histogram.fromJson(e as Map<String, dynamic>))
      .toList();
}