• 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";
18
19package perfetto.protos;
20
21// Describes a process's attributes. Emitted as part of a TrackDescriptor,
22// usually by the process's main thread.
23//
24// Next id: 7.
25message ProcessDescriptor {
26  optional int32 pid = 1;
27  repeated string cmdline = 2;
28  optional string process_name = 6;
29
30  optional int32 process_priority = 5;
31
32  // ---------------------------------------------------------------------------
33  // Deprecated / legacy fields, which will be removed in the future:
34  // ---------------------------------------------------------------------------
35
36  // See chromium's content::ProcessType.
37  enum ChromeProcessType {
38    PROCESS_UNSPECIFIED = 0;
39    PROCESS_BROWSER = 1;
40    PROCESS_RENDERER = 2;
41    PROCESS_UTILITY = 3;
42    PROCESS_ZYGOTE = 4;
43    PROCESS_SANDBOX_HELPER = 5;
44    PROCESS_GPU = 6;
45    PROCESS_PPAPI_PLUGIN = 7;
46    PROCESS_PPAPI_BROKER = 8;
47  }
48  optional ChromeProcessType chrome_process_type = 4;
49
50  // To support old UI. New UI should determine default sorting by process_type.
51  optional int32 legacy_sort_index = 3;
52}
53