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 "protos/perfetto/common/observable_events.proto"; 20 21package perfetto.protos; 22 23message TracingServiceCapabilities { 24 // Whether the service supports QueryCapabilities() at all or not. 25 // This is only used at the C++ level to distinguish the case of talking to 26 // an older version of the service that doesn't support QueryCapabilities(). 27 // In that case the IPC layer will just reject the unknown call, and the 28 // consumer_ipc_client_impl.cc will return an empty message where this field 29 // is false. In all other cases, this is always set to true. 30 optional bool has_query_capabilities = 1; 31 32 // The set of known events that can be passed to ConsumerPort.ObserveEvents(). 33 repeated ObservableEvents.Type observable_events = 2; 34 35 // Whether the service supports TraceConfig.output_path (for asking traced to 36 // create the output file instead of passing a file descriptor). 37 optional bool has_trace_config_output_path = 3; 38} 39