Struct android_manifest::Profileable
source · pub struct Profileable {
pub shell: VarOrBool,
pub enable: VarOrBool,
}
Expand description
Specifies how profilers can access this application.
XML Syntax
<profileable android:shell=["true" | "false"]
android:enable=["true" | "false"]
/>
Contained in
Introduced in
API Level 29
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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>,
source§impl PartialEq<Profileable> for Profileable
impl PartialEq<Profileable> for Profileable
source§fn eq(&self, other: &Profileable) -> bool
fn eq(&self, other: &Profileable) -> bool
self
and other
values to be equal, and is used
by ==
.