Skip to main content

Overview

When integrating any SDK into an Android application, understanding its performance impact is crucial for maintaining a good user experience. The Flashcat RUM SDK is designed with performance in mind and provides transparent measurement data to help you make informed integration decisions.
The SDK uses asynchronous processing and batch reporting mechanisms to avoid blocking the main thread, ensuring it does not affect the application’s UI responsiveness.

Performance Benchmark

To evaluate the actual performance impact of the SDK on your application, we conducted performance benchmarks under typical usage scenarios. The following SDK modules were enabled during testing:
  • dd-sdk-android-rum: RUM core functionality
  • dd-sdk-android-trace: Distributed tracing
  • dd-sdk-android-okhttp: Network request tracking
The SDK was initialized with default configuration and simulated common user operations (such as page views, scrolling lists, network requests, etc.).

Test Results

The above data are reference values under typical scenarios; actual impact may vary depending on application complexity, device performance, and SDK configuration.

Performance Impact Details

The SDK’s CPU impact primarily comes from:
  • Event collection and processing
  • Data batching and compression
  • Network request reporting
The SDK uses asynchronous processing and batch reporting mechanisms to avoid blocking the main thread, ensuring it does not affect the application’s UI responsiveness.
The SDK uses a fixed-size memory buffer to store pending event data, which does not grow indefinitely over time. Stale data is automatically cleaned up to ensure it does not consume excessive memory.
The SDK initialization process is optimized, with launch time impact controlled to milliseconds.
It is recommended to initialize the SDK as early as possible in Application.onCreate() to capture the complete application startup process.
The SDK uses a modular design, allowing you to include only the necessary functional modules:Including only the necessary modules can minimize the impact on APK size.The following lab measurements can be used as reference data when estimating integration cost:
The APK size data above was measured with Flashduty Android SDK 0.4.0 and the Android demo. The measurement scope is APK file size increase. Actual results vary depending on dependencies already present in the host app, R8 keep rules, App Bundle / ABI split usage, and whether Trace, WebView, OkHttp, or NDK modules are enabled.
The SDK employs the following strategies to optimize network usage:
  • Batch reporting: Events are cached locally first and sent in batches to reduce the number of network requests
  • Data compression: Reported data is compressed to reduce transmission traffic
  • Intelligent scheduling: Upload timing is intelligently scheduled based on network status and battery level

Performance Optimization Recommendations

If you have specific performance requirements, consider the following measures:
1

Adjust the sample rate

Reduce the number of collected events by configuring the sample rate:
2

Enable only the features you need

Turn off the automatic tracking you do not analyze:
This step trades data coverage for load, so weigh each option against what you actually analyze. Disabling interaction tracking drops automatic action events to zero, and the frustration signals that depend on them (rage/dead/error tap) disappear with them. View, resource, error and long task events are unaffected, and manual RumMonitor.addAction instrumentation still works. Action events are important context for diagnosing errors, so turn them off only in load-sensitive scenarios.setTelemetrySampleRate(0f) disables the SDK’s own operational telemetry. It does not affect any RUM data, so you can set it safely.
3

Tune the upload cadence

Adjust the upload interval, batch window and per-cycle batch limit to reduce contention between SDK uploads and your own requests, without losing any events. See the next section.

Reducing the Impact of Uploads on Your Own Requests

If your app makes latency-sensitive requests of its own (sign-in, checkout, key provisioning) over a narrow uplink, SDK uploads can compete with them for the uplink. The symptom is a higher tail (P95) on your own request latency that comes and goes. Three core settings change how uploads are distributed over time — fewer uploads, spread further apart:
These three settings only change when uploads happen. They drop no events and remove no dimension from your dashboards, so if you do not want to sacrifice data, tune only these.
The Android, iOS, HarmonyOS and Flutter SDKs use the same names and values for these three settings, so tuning advice transfers between platforms unchanged. The one difference is that iOS batchProcessingLevel = .low is 5 batches per cycle, while Android and HarmonyOS use 1 — same direction, smaller reduction.
If the event volume itself is high, an EventMapper can drop specific noisy events (return null from the mapper). That is less invasive than changing your instrumentation — see Advanced configuration.

Offline Data Storage

When the device is offline, the SDK stores data locally with strict storage space limits:
  • Uses fixed-size disk cache
  • Expired data is automatically cleaned up
  • Cached data will not affect device storage space

SDK Integration Guide

Learn how to integrate the SDK

Advanced Configuration

Learn about SDK advanced configuration options

Data Collection

Learn what data the SDK collects