pub struct ProcessDescriptor {
pub pid: Option<i32>,
pub cmdline: Vec<String>,
pub process_name: Option<String>,
pub process_priority: Option<i32>,
pub start_timestamp_ns: Option<i64>,
pub chrome_process_type: Option<i32>,
pub legacy_sort_index: Option<i32>,
pub process_labels: Vec<String>,
}
Expand description
Describes a process’s attributes. Emitted as part of a TrackDescriptor, usually by the process’s main thread.
Next id: 9.
Fields§
§pid: Option<i32>
§cmdline: Vec<String>
§process_name: Option<String>
§process_priority: Option<i32>
§start_timestamp_ns: Option<i64>
Process start time in nanoseconds. The timestamp refers to the trace clock by default. Other clock IDs provided in TracePacket are not supported.
chrome_process_type: Option<i32>
§legacy_sort_index: Option<i32>
To support old UI. New UI should determine default sorting by process_type.
process_labels: Vec<String>
Labels can be used to further describe properties of the work performed by the process. For example, these can be used by Chrome renderer process to provide titles of frames being rendered.
Implementations§
Source§impl ProcessDescriptor
impl ProcessDescriptor
Sourcepub fn legacy_sort_index(&self) -> i32
pub fn legacy_sort_index(&self) -> i32
Returns the value of legacy_sort_index
, or the default value if legacy_sort_index
is unset.
Sourcepub fn chrome_process_type(&self) -> ChromeProcessType
pub fn chrome_process_type(&self) -> ChromeProcessType
Returns the enum value of chrome_process_type
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_chrome_process_type(&mut self, value: ChromeProcessType)
pub fn set_chrome_process_type(&mut self, value: ChromeProcessType)
Sets chrome_process_type
to the provided enum value.
Sourcepub fn process_priority(&self) -> i32
pub fn process_priority(&self) -> i32
Returns the value of process_priority
, or the default value if process_priority
is unset.
Sourcepub fn process_name(&self) -> &str
pub fn process_name(&self) -> &str
Returns the value of process_name
, or the default value if process_name
is unset.
Sourcepub fn start_timestamp_ns(&self) -> i64
pub fn start_timestamp_ns(&self) -> i64
Returns the value of start_timestamp_ns
, or the default value if start_timestamp_ns
is unset.
Trait Implementations§
Source§impl Clone for ProcessDescriptor
impl Clone for ProcessDescriptor
Source§fn clone(&self) -> ProcessDescriptor
fn clone(&self) -> ProcessDescriptor
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ProcessDescriptor
impl Debug for ProcessDescriptor
Source§impl Default for ProcessDescriptor
impl Default for ProcessDescriptor
Source§impl Message for ProcessDescriptor
impl Message for ProcessDescriptor
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.