| /* |
| * Copyright (C) 2019 The Android Open Source Project |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| syntax = "proto2"; |
| option optimize_for = LITE_RUNTIME; |
| |
| package perfetto.protos; |
| |
| // Process-wide data that is periodically emitted by one thread per process. |
| // Valid for all events in packet sequences emitted by the same process. |
| // |
| // Next id: 5. |
| message ProcessDescriptor { |
| optional int32 pid = 1; |
| repeated string cmdline = 2; |
| |
| // To support old UI. New UI should determine default sorting by process_type. |
| optional int32 legacy_sort_index = 3; |
| |
| // See chromium's content::ProcessType. |
| enum ChromeProcessType { |
| UNSPECIFIED = 0; |
| BROWSER = 1; |
| RENDERER = 2; |
| UTILITY = 3; |
| ZYGOTE = 4; |
| SANDBOX_HELPER = 5; |
| GPU = 6; |
| PPAPI_PLUGIN = 7; |
| PPAPI_BROKER = 8; |
| } |
| optional ChromeProcessType chrome_process_type = 4; |
| } |