pub struct ArmProfiler { /* private fields */ }Expand description
ARM performance profiler
Implementations§
Source§impl ArmProfiler
impl ArmProfiler
Sourcepub fn new(config: ProfilerConfig) -> Self
pub fn new(config: ProfilerConfig) -> Self
Create a new ARM profiler
Sourcepub fn auto_detect() -> Self
pub fn auto_detect() -> Self
Create with auto-detected device configuration
Sourcepub fn record_sample(&self, sample: PerformanceSample)
pub fn record_sample(&self, sample: PerformanceSample)
Record a performance sample
Sourcepub fn record_cpu(&self, cpu_usage: f64)
pub fn record_cpu(&self, cpu_usage: f64)
Record CPU usage
Sourcepub fn record_memory(&self, memory_bytes: u64)
pub fn record_memory(&self, memory_bytes: u64)
Record memory usage
Sourcepub fn record_throughput(&self, bytes_per_sec: u64)
pub fn record_throughput(&self, bytes_per_sec: u64)
Record network throughput
Sourcepub fn record_latency(&self, latency: Duration)
pub fn record_latency(&self, latency: Duration)
Record latency
Sourcepub fn stats(&self) -> Result<PerformanceStats, ProfilerError>
pub fn stats(&self) -> Result<PerformanceStats, ProfilerError>
Get performance statistics
Sourcepub fn config(&self) -> &ProfilerConfig
pub fn config(&self) -> &ProfilerConfig
Get the configuration
Sourcepub fn sample_count(&self) -> usize
pub fn sample_count(&self) -> usize
Get sample count
Auto Trait Implementations§
impl Freeze for ArmProfiler
impl !RefUnwindSafe for ArmProfiler
impl Send for ArmProfiler
impl Sync for ArmProfiler
impl Unpin for ArmProfiler
impl !UnwindSafe for ArmProfiler
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more