pub struct AppWakelocksConfig {
pub write_delay_ms: Option<i32>,
pub filter_duration_below_ms: Option<i32>,
pub drop_owner_pid: Option<bool>,
}
Expand description
Configuration for the android.app_wakelocks data source.
Fields§
§write_delay_ms: Option<i32>
Specifies the delay (in milliseconds) after which the data source will attempt to write events. Writing less frequently reduces the trace size by making better use of the packed arrays and reducing the total number of TracePackets needed (which each have dozens of bytes of overhead). The suggested delay is 5000ms.
filter_duration_below_ms: Option<i32>
When set, wakelocks held for less than this amount of time are filtered from the resulting trace. Note: duration is computed by matching wakelocks with identical attributes, not by tracking the underlying objects. The threshold should be < the trace’s flush_period_ms.
drop_owner_pid: Option<bool>
When true, the owner_pid is dropped from the resulting output, reducing the size of the interning tables.
Implementations§
Source§impl AppWakelocksConfig
impl AppWakelocksConfig
Sourcepub fn write_delay_ms(&self) -> i32
pub fn write_delay_ms(&self) -> i32
Returns the value of write_delay_ms
, or the default value if write_delay_ms
is unset.
Sourcepub fn filter_duration_below_ms(&self) -> i32
pub fn filter_duration_below_ms(&self) -> i32
Returns the value of filter_duration_below_ms
, or the default value if filter_duration_below_ms
is unset.
Sourcepub fn drop_owner_pid(&self) -> bool
pub fn drop_owner_pid(&self) -> bool
Returns the value of drop_owner_pid
, or the default value if drop_owner_pid
is unset.
Trait Implementations§
Source§impl Clone for AppWakelocksConfig
impl Clone for AppWakelocksConfig
Source§fn clone(&self) -> AppWakelocksConfig
fn clone(&self) -> AppWakelocksConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AppWakelocksConfig
impl Debug for AppWakelocksConfig
Source§impl Default for AppWakelocksConfig
impl Default for AppWakelocksConfig
Source§impl Message for AppWakelocksConfig
impl Message for AppWakelocksConfig
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
.