pub struct Profileable {
pub shell: VarOrBool,
pub enable: VarOrBool,
}
Expand description
Fields§
§shell: VarOrBool
Specifies whether the user of the device can profile this application through local debugging tools. These include
android.os.Trace
tracing APIs (Android 11 and lower)simpleperf
am profile commands
- [
perfetto profilers
] (native memory, Java memory, CPU).
If this isn’t set or is set to false, these tools and APIs will work only when an app is debuggable. Debuggable apps incur significant and varied performance degradation, and are not useful for measuring timing accurately. This element is strongly recommended for local performance measurements, in order to capture accurate results.
enable: VarOrBool
Specifies whether the application can be profiled by system services or
shell tools (for the latter, you must also set android:shell
). If
false, the application cannot be profiled at all. Defaults to true. This
attribute was added in API level 30.
Trait Implementations§
Source§impl Clone for Profileable
impl Clone for Profileable
Source§fn clone(&self) -> Profileable
fn clone(&self) -> Profileable
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Profileable
impl Debug for Profileable
Source§impl Default for Profileable
impl Default for Profileable
Source§fn default() -> Profileable
fn default() -> Profileable
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Profileable
impl<'de> Deserialize<'de> for Profileable
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Profileable
impl PartialEq for Profileable
Source§impl Serialize for Profileable
impl Serialize for Profileable
Source§impl YaDeserialize for Profileable
impl YaDeserialize for Profileable
fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>
Source§impl YaSerialize for Profileable
impl YaSerialize for Profileable
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
fn serialize_attributes( &self, source_attributes: Vec<OwnedAttribute>, source_namespace: Namespace, ) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl Eq for Profileable
impl StructuralPartialEq for Profileable
Auto Trait Implementations§
impl Freeze for Profileable
impl RefUnwindSafe for Profileable
impl Send for Profileable
impl Sync for Profileable
impl Unpin for Profileable
impl UnwindSafe for Profileable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more