pub struct DataSource {
pub config: Option<DataSourceConfig>,
pub producer_name_filter: Vec<String>,
pub producer_name_regex_filter: Vec<String>,
pub machine_name_filter: Vec<String>,
}
Fields§
§config: Option<DataSourceConfig>
Filters and data-source specific config. It contains also the unique name of the data source, the one passed in the DataSourceDescriptor when they register on the service.
producer_name_filter: Vec<String>
Optional. If multiple producers (~processes) expose the same data source and either |producer_name_filter| or |producer_name_regex_filter| is set, the data source is enabled only for producers whose names match any of the filters. |producer_name_filter| has to be an exact match, while |producer_name_regex_filter| is a regular expression. This allows to enable a data source only for specific processes. The “repeated” fields have OR semantics: specifying a filter [“foo”, “bar”] will enable data sources on both “foo” and “bar” (if they exist).
producer_name_regex_filter: Vec<String>
§machine_name_filter: Vec<String>
Filter by machine names. The name of a machine is determined by the PERFETTO_MACHINE_NAME env variable. In Android systems, if the env variable is not set then the persist.traced_relay.machine_name system property is used. If the sysprop isn’t set or not in an Android system, then the machine name by default is set to the utsname sysname (e.g. Linux), which can be obtained via the ‘uname -s’ command. As a convenience, one can use “host” to refer to the host machine, which is the machine running traced.
Trait Implementations§
Source§impl Clone for DataSource
impl Clone for DataSource
Source§fn clone(&self) -> DataSource
fn clone(&self) -> DataSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DataSource
impl Debug for DataSource
Source§impl Default for DataSource
impl Default for DataSource
Source§impl Message for DataSource
impl Message for DataSource
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
.