summaryJson property

Map<String, dynamic> summaryJson

Encodes this summary as JSON.

Implementation

Map<String, dynamic> get summaryJson {
  return <String, dynamic> {
    'average_frame_build_time_millis': computeAverageFrameBuildTimeMillis(),
    '90th_percentile_frame_build_time_millis': computePercentileFrameBuildTimeMillis(90.0),
    '99th_percentile_frame_build_time_millis': computePercentileFrameBuildTimeMillis(99.0),
    'worst_frame_build_time_millis': computeWorstFrameBuildTimeMillis(),
    'missed_frame_build_budget_count': computeMissedFrameBuildBudgetCount(),
    'average_frame_rasterizer_time_millis': computeAverageFrameRasterizerTimeMillis(),
    '90th_percentile_frame_rasterizer_time_millis': computePercentileFrameRasterizerTimeMillis(90.0),
    '99th_percentile_frame_rasterizer_time_millis': computePercentileFrameRasterizerTimeMillis(99.0),
    'worst_frame_rasterizer_time_millis': computeWorstFrameRasterizerTimeMillis(),
    'missed_frame_rasterizer_budget_count': computeMissedFrameRasterizerBudgetCount(),
    'frame_count': countFrames(),
    'frame_build_times': _extractFrameDurations()
      .map<int>((Duration duration) => duration.inMicroseconds)
      .toList(),
    'frame_rasterizer_times': _extractGpuRasterizerDrawEvents()
      .map<int>((TimedEvent event) => event.duration.inMicroseconds)
      .toList(),
  };
}