pub struct PackagesListConfig {
pub package_name_filter: Vec<String>,
pub package_name_regex_filter: Vec<String>,
pub only_write_on_cpu_use_every_ms: Option<u32>,
}Expand description
Data source that lists details (such as version code) about packages on an Android device.
Fields§
§package_name_filter: Vec<String>If not empty, emit info about only the following list of package names (exact match, no regex). Can be combined with |package_name_regex_filter|: a package is included if it matches either filter. If both filters are empty, emit info about all packages.
package_name_regex_filter: Vec<String>If not empty, emit info about only the packages whose names match any of the following regexes (full match, not partial). Can be combined with |package_name_filter|: a package is included if it matches either filter. If both filters are empty, emit info about all packages. This field was introduced in Android 26Q2 (Perfetto v55).
only_write_on_cpu_use_every_ms: Option<u32>If present and non-zero, the data source will periodically poll for CPU use by packages and only emit results for those that it sees. If absent, the data source will emit results for all packages at startup. The package name filters apply either way.
Implementations§
Source§impl PackagesListConfig
impl PackagesListConfig
Sourcepub fn only_write_on_cpu_use_every_ms(&self) -> u32
pub fn only_write_on_cpu_use_every_ms(&self) -> u32
Returns the value of only_write_on_cpu_use_every_ms, or the default value if only_write_on_cpu_use_every_ms is unset.
Trait Implementations§
Source§impl Clone for PackagesListConfig
impl Clone for PackagesListConfig
Source§fn clone(&self) -> PackagesListConfig
fn clone(&self) -> PackagesListConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PackagesListConfig
impl Debug for PackagesListConfig
Source§impl Default for PackagesListConfig
impl Default for PackagesListConfig
Source§impl Message for PackagesListConfig
impl Message for PackagesListConfig
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
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>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
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>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self.