• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2020 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
19import public "protos/perfetto/trace/track_event/track_event.proto";
20import "protos/perfetto/trace/track_event/debug_annotation.proto";
21
22package perfetto.protos;
23
24// Extensions for TrackEvent used for integration testing. This proto file is
25// compiled to descriptor and is used in tools/diff_test_trace_processor.py.
26//
27// See docs/design-docs/extensions.md for more details.
28message TestExtension {
29  extend TrackEvent {
30    optional string string_extension_for_testing = 9900;
31    repeated int32 int_extension_for_testing = 9901;
32    optional string omitted_extension_for_testing = 9902;
33    optional TestExtensionChild nested_message_extension_for_testing = 9903;
34  }
35}
36
37message TestExtensionChild {
38  optional string child_field_for_testing = 1;
39
40  repeated DebugAnnotation debug_annotations = 99;
41}
42