aboutsummaryrefslogtreecommitdiff
path: root/protos/perfetto/metrics/android/android_boot.proto
blob: a043efe064c364b37c0134f79b530d2753d5b15e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
 * Copyright (C) 2023 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

syntax = "proto2";

package perfetto.protos;

// This metric computes how much time processes spend in UNINTERRUPTIBLE_SLEEP
// state
message ProcessStateDurations {
  optional int64 total_dur = 2;
  optional int64 uninterruptible_sleep_dur = 3;
}

message AndroidBootMetric {
  optional ProcessStateDurations system_server_durations = 1;
  optional ProcessStateDurations systemui_durations = 2;
  optional ProcessStateDurations launcher_durations = 3;
  optional ProcessStateDurations gms_durations = 4;
  // Launcher related boot metrics
  message LauncherBreakdown {
    //  reports cold start time of NexusLauncher
    optional int64 cold_start_dur = 1;
  }
  optional LauncherBreakdown launcher_breakdown = 5;

  message ProcessStartAggregation {
    optional int64 total_start_sum = 1;
    optional int64 num_of_processes = 2;
    optional double average_start_time = 3;
  }
  message GarbageCollectionAggregation {
    optional int64 total_gc_count = 1;
    optional int64 num_of_processes_with_gc = 2;
    optional int64 num_of_threads_with_gc = 3;
    optional double avg_gc_duration = 4;
    optional double avg_running_gc_duration = 5;
    optional int64 full_gc_count = 6;
    optional int64 collector_transition_gc_count = 7;
    optional int64 young_gc_count = 8;
    optional int64 native_alloc_gc_count = 9;
    optional int64 explicit_gc_count = 10;
    optional int64 alloc_gc_count = 11;
    optional double mb_per_ms_of_gc = 12;
  }
  optional ProcessStartAggregation full_trace_process_start_aggregation = 6;
  optional ProcessStartAggregation post_boot_process_start_aggregation = 7;
  optional GarbageCollectionAggregation full_trace_gc_aggregation = 8;
  optional GarbageCollectionAggregation post_boot_gc_aggregation = 9;
}