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: 8. 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 // Process start time in nanoseconds. 32 // The timestamp refers to the trace clock by default. Other clock IDs 33 // provided in TracePacket are not supported. 34 optional int64 start_timestamp_ns = 7; 35 36 // --------------------------------------------------------------------------- 37 // Deprecated / legacy fields, which will be removed in the future: 38 // --------------------------------------------------------------------------- 39 40 // See chromium's content::ProcessType. 41 enum ChromeProcessType { 42 PROCESS_UNSPECIFIED = 0; 43 PROCESS_BROWSER = 1; 44 PROCESS_RENDERER = 2; 45 PROCESS_UTILITY = 3; 46 PROCESS_ZYGOTE = 4; 47 PROCESS_SANDBOX_HELPER = 5; 48 PROCESS_GPU = 6; 49 PROCESS_PPAPI_PLUGIN = 7; 50 PROCESS_PPAPI_BROKER = 8; 51 } 52 optional ChromeProcessType chrome_process_type = 4; 53 54 // To support old UI. New UI should determine default sorting by process_type. 55 optional int32 legacy_sort_index = 3; 56} 57