pub struct AndroidTraceLog {
pub data_file_overflow: bool,
pub clock: Clock,
pub elapsed_time: Duration,
pub total_method_calls: u64,
pub clock_call_overhead: Duration,
pub vm: Vm,
pub start_time: DateTime<Utc>,
pub pid: Option<u32>,
pub gc_trace: Option<GcTrace>,
pub threads: Vec<Thread>,
pub methods: Vec<Method>,
pub events: Vec<Event>,
}Expand description
Android trace log
Fields§
§data_file_overflow: boolWhether the trace has overflowed the trace buffer and is missing events
clock: ClockThe clock used for the events
elapsed_time: DurationTotal recording duration
total_method_calls: u64Total number of calls registered
clock_call_overhead: DurationThe approximate trace overhead per call
vm: VmThe process VM used
start_time: DateTime<Utc>Trace start time
pid: Option<u32>PID of the traced process
gc_trace: Option<GcTrace>If GC is being tracked, contains the GC trace info
threads: Vec<Thread>All threads in the trace log
methods: Vec<Method>All methods in the trace log
events: Vec<Event>All events in the trace log
Implementations§
Source§impl AndroidTraceLog
impl AndroidTraceLog
Sourcepub fn serialize(&self) -> Result<Vec<u8>>
pub fn serialize(&self) -> Result<Vec<u8>>
Serialize the trace into a byte array. Can panic if the log is invalid; see serialize_into
Sourcepub fn iter(&self) -> impl Iterator<Item = EventView<'_>>
pub fn iter(&self) -> impl Iterator<Item = EventView<'_>>
Iterate over all events while preparing an event view that allows to quickly access an event’s thread and method. Has some startup time due to needing to prepare method/thread lookup tables.
Panics if an event has an invalid method/thread ID. Will not panic if valid returned true.
Trait Implementations§
Source§impl Clone for AndroidTraceLog
impl Clone for AndroidTraceLog
Source§fn clone(&self) -> AndroidTraceLog
fn clone(&self) -> AndroidTraceLog
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more