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 17 syntax = "proto2"; 18 option optimize_for = LITE_RUNTIME; 19 20 package perfetto.protos; 21 22 message FtraceCpuStats { 23 optional uint64 cpu = 1; 24 optional uint64 entries = 2; 25 optional uint64 overrun = 3; 26 optional uint64 commit_overrun = 4; 27 optional uint64 bytes_read = 5; 28 optional double oldest_event_ts = 6; 29 optional double now_ts = 7; 30 optional uint64 dropped_events = 8; 31 optional uint64 read_events = 9; 32 } 33 34 message FtraceStats { 35 enum Phase { 36 UNUSED = 0; 37 START_OF_TRACE = 1; 38 END_OF_TRACE = 2; 39 } 40 optional Phase phase = 1; 41 repeated FtraceCpuStats cpu_stats = 2; 42 } 43