getCpuSamples abstract method

Future<CpuSamples> getCpuSamples(
  1. String isolateId,
  2. int timeOriginMicros,
  3. int timeExtentMicros

The getCpuSamples RPC is used to retrieve samples collected by the CPU profiler. Only samples collected in the time range [timeOriginMicros, timeOriginMicros + timeExtentMicros] will be reported.

If the profiler is disabled, an RPCError response will be returned.

If isolateId refers to an isolate which has exited, then the Collected Sentinel is returned.

See CpuSamples.

This method will throw a SentinelException in the case a Sentinel is returned.


Future<CpuSamples> getCpuSamples(
    String isolateId, int timeOriginMicros, int timeExtentMicros);