• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
17syntax = "proto2";
18option optimize_for = LITE_RUNTIME;
19
20package perfetto.protos;
21
22// When editing this file run ./tools/gen_tracing_cpp_headers_from_protos.py
23// to reflect changes in the corresponding C++ headers.
24
25// The configuration for a fake producer used in tests.
26message TestConfig {
27  message DummyFields {
28    optional uint32 field_uint32 = 1;
29    optional int32 field_int32 = 2;
30    optional uint64 field_uint64 = 3;
31    optional int64 field_int64 = 4;
32    optional fixed64 field_fixed64 = 5;
33    optional sfixed64 field_sfixed64 = 6;
34    optional fixed32 field_fixed32 = 7;
35    optional sfixed32 field_sfixed32 = 8;
36    optional double field_double = 9;
37    optional float field_float = 10;
38    optional sint64 field_sint64 = 11;
39    optional sint32 field_sint32 = 12;
40    optional string field_string = 13;
41    optional bytes field_bytes = 14;
42  }
43
44  // The number of messages the fake producer should send.
45  optional uint32 message_count = 1;
46
47  // The maximum number of messages which should be sent each second.
48  // The actual obserced speed may be lower if the producer is unable to
49  // work fast enough.
50  // If this is zero or unset, the producer will send as fast as possible.
51  optional uint32 max_messages_per_second = 2;
52
53  // The seed value for a simple multiplicative congruential pseudo-random
54  // number sequence.
55  optional uint32 seed = 3;
56
57  // The size of each message in bytes. Should be greater than or equal 5 to
58  // account for the number of bytes needed to encode the random number and a
59  // null byte for the string.
60  optional uint32 message_size = 4;
61
62  // Whether the producer should send a event batch when the data source is
63  // is initially registered.
64  optional bool send_batch_on_register = 5;
65
66  optional DummyFields dummy_fields = 6;
67}
68