1// Copyright (C) 2017 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15syntax = "proto2"; // use required fields, which aren't in proto3. 16 17package iorap.serialize.proto; // C++ namespace iorap::serialize::proto 18option java_package = "com.google.android.iorap"; 19option optimize_for = LITE_RUNTIME; 20 21// TODO: should these fields be 'packed' for "smaller encoding" ? 22 23message TraceFile { 24 required TraceFileIndex index = 1; 25 required TraceFileList list = 2; 26} 27 28message TraceFileIndex { 29 repeated TraceFileIndexEntry entries = 1; 30} 31 32message TraceFileIndexEntry { 33 required int64 id = 1; 34 required string file_name = 2; 35} 36 37message TraceFileList { 38 repeated TraceFileEntry entries = 1; 39} 40 41message TraceFileEntry { 42 required int64 index_id = 1; 43 required int64 file_offset = 2; 44 required int64 file_length = 3; 45} 46 47// XX: use nested messages?