1/* 2 * Copyright (C) 2019 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"; 18 19package perfetto.protos; 20 21// -------------------- 22// Interned data types: 23// -------------------- 24 25// A source location, represented as a native symbol. 26// This is similar to `message Frame` from 27// protos/perfetto/trace/profiling/profile_common.proto, but for abitrary 28// source code locations (for example in track event args), not stack frames. 29message UnsymbolizedSourceLocation { 30 optional uint64 iid = 1; 31 optional uint64 mapping_id = 2; 32 optional uint64 rel_pc = 3; 33} 34 35message SourceLocation { 36 optional uint64 iid = 1; 37 optional string file_name = 2; 38 optional string function_name = 3; 39 optional uint32 line_number = 4; 40} 41