blob: 2c205de91c434f9421d8513365145575f4725034 [file] [log] [blame]
Lalit Maganti3f5705c2018-03-09 12:09:44 +00001/*
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 // The number of messages the fake producer should send.
28 optional uint32 message_count = 1;
29
Lalit Maganti131b6e52018-03-29 18:29:31 +010030 // The maximum number of messages which should be sent each second.
31 // The actual obserced speed may be lower if the producer is unable to
32 // work fast enough.
33 // If this is zero or unset, the producer will send as fast as possible.
34 optional uint32 max_messages_per_second = 2;
35
Lalit Maganti3f5705c2018-03-09 12:09:44 +000036 // The seed value for a simple multiplicative congruential pseudo-random
37 // number sequence.
Lalit Maganti131b6e52018-03-29 18:29:31 +010038 optional uint32 seed = 3;
Lalit Maganti8390e5b2018-03-23 10:46:05 +000039
40 // The size of each message in bytes. Should be greater than or equal 5 to
41 // account for the number of bytes needed to encode the random number and a
42 // null byte for the string.
Lalit Maganti36557d82018-04-11 14:36:17 +010043 optional uint64 message_size = 4;
44
45 // Whether the producer should send a event batch when the data source is
46 // is initially registered.
47 optional bool send_batch_on_register = 5;
Lalit Maganti3f5705c2018-03-09 12:09:44 +000048}