• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2019 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// Process-wide data that is periodically emitted by one thread per process.
23// Valid for all events in packet sequences emitted by the same process.
24//
25// Next id: 5.
26message ProcessDescriptor {
27  optional int32 pid = 1;
28  repeated string cmdline = 2;
29
30  // To support old UI. New UI should determine default sorting by process_type.
31  optional int32 legacy_sort_index = 3;
32
33  // See chromium's content::ProcessType.
34  enum ChromeProcessType {
35    PROCESS_UNSPECIFIED = 0;
36    PROCESS_BROWSER = 1;
37    PROCESS_RENDERER = 2;
38    PROCESS_UTILITY = 3;
39    PROCESS_ZYGOTE = 4;
40    PROCESS_SANDBOX_HELPER = 5;
41    PROCESS_GPU = 6;
42    PROCESS_PPAPI_PLUGIN = 7;
43    PROCESS_PPAPI_BROKER = 8;
44  }
45  optional ChromeProcessType chrome_process_type = 4;
46}
47