pub struct PerformanceAnalyticsEngine { /* private fields */ }Expand description
Performance analytics engine
Implementations§
Source§impl PerformanceAnalyticsEngine
impl PerformanceAnalyticsEngine
Sourcepub fn new(
config: PerformanceAnalyticsConfig,
platform: MobilePlatform,
backend: MobileBackend,
) -> Self
pub fn new( config: PerformanceAnalyticsConfig, platform: MobilePlatform, backend: MobileBackend, ) -> Self
Create a new performance analytics engine
Sourcepub fn record_metric(
&self,
metric_type: MetricType,
value: f64,
context: Option<HashMap<String, String>>,
)
pub fn record_metric( &self, metric_type: MetricType, value: f64, context: Option<HashMap<String, String>>, )
Record a performance metric
Sourcepub fn generate_insights(&self) -> Result<PerformanceInsights>
pub fn generate_insights(&self) -> Result<PerformanceInsights>
Generate comprehensive performance insights
Sourcepub fn get_cached_insights(&self) -> Option<PerformanceInsights>
pub fn get_cached_insights(&self) -> Option<PerformanceInsights>
Get the latest cached insights
Sourcepub fn export_data(&self, format: ExportFormat) -> Result<String>
pub fn export_data(&self, format: ExportFormat) -> Result<String>
Export analytics data
Auto Trait Implementations§
impl !Freeze for PerformanceAnalyticsEngine
impl RefUnwindSafe for PerformanceAnalyticsEngine
impl Send for PerformanceAnalyticsEngine
impl Sync for PerformanceAnalyticsEngine
impl Unpin for PerformanceAnalyticsEngine
impl UnsafeUnpin for PerformanceAnalyticsEngine
impl UnwindSafe for PerformanceAnalyticsEngine
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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