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 17 syntax = "proto2"; 18 option optimize_for = LITE_RUNTIME; 19 20 package 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. 26 message TestConfig { 27 // The number of messages the fake producer should send. 28 optional uint32 message_count = 1; 29 30 // 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 36 // The seed value for a simple multiplicative congruential pseudo-random 37 // number sequence. 38 optional uint32 seed = 3; 39 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. 43 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; 48 } 49