getPerfettoVMTimelineWithCpuSamples method
The getPerfettoVMTimelineWithCpuSamples RPC functions nearly identically
to VmService.getPerfettoVMTimeline
, except the trace
field of the
PerfettoTimeline
response returned by this RPC will be a Base64 string
encoding a Perfetto-format trace that includes not only all timeline
events in the specified time range, but also all CPU samples from all
isolates in the specified time range.
Implementation
Future<PerfettoTimeline> getPerfettoVMTimelineWithCpuSamples(
{int? timeOriginMicros, int? timeExtentMicros}) async {
if (!(await _versionCheck(1, 5))) {
throw UnimplementedError(
'getPerfettoVMTimelineWithCpuSamples requires DDS version 1.5');
}
return _callHelper<PerfettoTimeline>('getPerfettoVMTimelineWithCpuSamples',
args: {
'timeOriginMicros': timeOriginMicros,
'timeExtentMicros': timeExtentMicros,
});
}