• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2018 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17syntax = "proto2";
18option optimize_for = LITE_RUNTIME;
19
20package perfetto.protos;
21
22// A snapshot of clock readings to allow for trace alignment.
23message ClockSnapshot {
24  message Clock {
25    enum Type {
26      UNKNOWN = 0;
27      REALTIME = 1;
28      REALTIME_COARSE = 2;
29      MONOTONIC = 3;
30      MONOTONIC_COARSE = 4;
31      MONOTONIC_RAW = 5;
32      BOOTTIME = 6;
33      PROCESS_CPUTIME = 7;
34      THREAD_CPUTIME = 8;
35    }
36    optional Type type = 1;
37    optional uint64 timestamp = 2;
38  }
39  repeated Clock clocks = 1;
40}
41