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";
18
19package perfetto.protos;
20
21message ChromeConfig {
22  optional string trace_config = 1;
23
24  // When enabled, the data source should only fill in fields in the output that
25  // are not potentially privacy sensitive.
26  optional bool privacy_filtering_enabled = 2;
27
28  // Instead of emitting binary protobuf, convert the trace data to the legacy
29  // JSON format. Note that the trace data will still be returned as a series of
30  // TracePackets, but the embedded data will be JSON instead of serialized
31  // protobuf.
32  optional bool convert_to_legacy_json = 3;
33
34  // Priority of the tracing session client. A higher priority session may
35  // preempt a lower priority one in configurations where concurrent sessions
36  // aren't supported.
37  enum ClientPriority {
38    UNKNOWN = 0;
39    BACKGROUND = 1;
40    USER_INITIATED = 2;
41  }
42  optional ClientPriority client_priority = 4;
43
44  // Applicable only when using legacy JSON format.
45  // If |json_agent_label_filter| is not empty, only data pertaining to
46  // the specified tracing agent label (e.g. "traceEvents") will be returned.
47  optional string json_agent_label_filter = 5;
48}
49