blob: b16cd3191312a12c66750d77999a2adf69724fad [file] [edit]
/*
* Copyright (C) 2020 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;
import "protos/perfetto/common/descriptor.proto";
// This message contains descriptors used to parse extension fields of
// TrackEvent.
//
// See docs/design-docs/extensions.md for more details.
message ExtensionDescriptor {
oneof descriptor {
FileDescriptorSet extension_set = 1;
// Same as extension_set, but gzip-compressed. This is used by the tracing
// service on Android to emit pre-compressed descriptor files from
// /etc/tracing_descriptors.gz without decompressing them first.
bytes extension_set_gzip = 2;
}
// Optional, for debugging only. The file name or path of the descriptor
// source. Can be omitted without affecting functionality.
optional string file_name = 3;
}