getCachedCpuSamples method

Future<CachedCpuSamples> getCachedCpuSamples(
  1. String isolateId,
  2. String userTag
)

The getCachedCpuSamples RPC is used to retrieve a cache of CPU samples collected under a UserTag with name userTag.

Implementation

Future<CachedCpuSamples> getCachedCpuSamples(
    String isolateId, String userTag) async {
  if (!(await _versionCheck(1, 3))) {
    throw UnimplementedError('getCachedCpuSamples requires DDS version 1.3');
  }
  return _callHelper<CachedCpuSamples>('getCachedCpuSamples', args: {
    'isolateId': isolateId,
    'userTag': userTag,
  });
}