chromium/tools/perf/core/tbmv3/metrics/uma_metrics.proto

// Copyright 2020 Google LLC.
// SPDX-License-Identifier: Apache-2.0

syntax = "proto2";

package perfetto.protos;

import "protos/perfetto/metrics/metrics.proto";
import "protos/perfetto/metrics/custom_options.proto";

message UMAMetrics {
  repeated double compositing_display_draw_to_swap = 1
      [(unit) = "ms_smallerIsBetter"];
  repeated double compositor_latency_total_latency = 2
      [(unit) = "ms_smallerIsBetter"];
  repeated double
      event_latency_first_gesture_scroll_update_touchscreen_total_latency = 3
      [(unit) = "ms_smallerIsBetter"];
  repeated double
      event_latency_gesture_scroll_update_touchscreen_total_latency = 4
      [(unit) = "ms_smallerIsBetter"];
  repeated double
      event_latency_first_gesture_scroll_update_wheel_total_latency = 5
      [(unit) = "ms_smallerIsBetter"];
  repeated double event_latency_gesture_scroll_update_wheel_total_latency = 6
      [(unit) = "ms_smallerIsBetter"];
  repeated double graphics_smoothness_checkerboarding_compositor_animation = 7
      [(unit) = "n%_smallerIsBetter"];
  repeated double graphics_smoothness_checkerboarding_main_thread_animation = 8
      [(unit) = "n%_smallerIsBetter"];
  repeated double graphics_smoothness_checkerboarding_pinch_zoom = 9
      [(unit) = "n%_smallerIsBetter"];
  repeated double graphics_smoothness_checkerboarding_raf = 10
      [(unit) = "n%_smallerIsBetter"];
  repeated double graphics_smoothness_checkerboarding_touch_scroll = 11
      [(unit) = "n%_smallerIsBetter"];
  repeated double graphics_smoothness_checkerboarding_wheel_scroll = 12
      [(unit) = "n%_smallerIsBetter"];
  repeated double graphics_smoothness_percent_dropped_frames_all_animations = 13
      [(unit) = "n%_smallerIsBetter"];
  repeated double graphics_smoothness_percent_dropped_frames_all_interactions =
      14 [(unit) = "n%_smallerIsBetter"];
  repeated double graphics_smoothness_percent_dropped_frames_all_sequences = 15
      [(unit) = "n%_smallerIsBetter"];
  repeated double
      graphics_smoothness_percent_dropped_frames_main_thread_main_thread_animation =
          16 [(unit) = "n%_smallerIsBetter"];
  repeated double graphics_smoothness_percent_dropped_frames_main_thread_raf =
      17 [(unit) = "n%_smallerIsBetter"];
  repeated double
      graphics_smoothness_percent_dropped_frames_main_thread_touch_scroll = 18
      [(unit) = "n%_smallerIsBetter"];
  repeated double
      graphics_smoothness_percent_dropped_frames_main_thread_wheel_scroll = 19
      [(unit) = "n%_smallerIsBetter"];
  repeated double
      graphics_smoothness_percent_dropped_frames_compositor_thread_compositor_animation =
          20 [(unit) = "n%_smallerIsBetter"];
  repeated double
      graphics_smoothness_percent_dropped_frames_compositor_thread_pinch_zoom =
          21 [(unit) = "n%_smallerIsBetter"];
  repeated double
      graphics_smoothness_percent_dropped_frames_compositor_thread_touch_scroll =
          22 [(unit) = "n%_smallerIsBetter"];
  repeated double
      graphics_smoothness_percent_dropped_frames_compositor_thread_wheel_scroll =
          23 [(unit) = "n%_smallerIsBetter"];
  repeated double
      graphics_smoothness_percent_dropped_frames_scrolling_thread_touch_scroll =
          24 [(unit) = "n%_smallerIsBetter"];
  repeated double
      graphics_smoothness_percent_dropped_frames_scrolling_thread_wheel_scroll =
          25 [(unit) = "n%_smallerIsBetter"];
  repeated double memory_gpu_peak_memory_usage_scroll = 26
      [(unit) = "sizeInBytes_smallerIsBetter"];
  repeated double memory_gpu_peak_memory_usage_page_load = 27
      [(unit) = "sizeInBytes_smallerIsBetter"];
}

extend TraceMetrics {
  optional UMAMetrics uma_metrics = 462;
}