getSamplingProfile method

Future<SamplingHeapProfile> getSamplingProfile()

Returns: Return the sampling profile being collected.

Implementation

Future<SamplingHeapProfile> getSamplingProfile() async {
  var result = await _client.send('HeapProfiler.getSamplingProfile');
  return SamplingHeapProfile.fromJson(
      result['profile'] as Map<String, dynamic>);
}