Platformsios 8.0, requires ARC

Build Status

Performance Tracking

The Performance Tracking module is a tool that lets you measure the performance of your iOS mobile application. It does this by adding measurement calls to app lifecycle, network requests and some standard UIKit class methods.

How it works

  • Automatically initializes upon process launch:
    • Loads the configuration obtained from the configuration API on the previous run.
    • Determine if tracking should be enabled (using the ratio found in the configuration) and, if so, enables tracking, which:
    • Instruments iOS classes.
    • Initializes the ring buffer, the internal tracker, the connection to the backend and starts the sender loop on a background queue.
    • Starts the LAUNCH metric as soon as possible.
    • Updates the configuration for next launch, by making a request to the configuration API and saving the result.
    • The "sender" background queue periodically polls the ring buffer and sends measurements to the "event writer" which builds the JSON and sends the requests to the backend.

Getting started

This module supports iOS 8.0 and above. It has been tested on iOS 8.4 and above.

Installing as CocoaPods pod

To use the module your Podfile should contain:

source ''

pod 'RPerformanceTracking'

Run pod install to install the module and its dependencies.


Currently we do not host any publicly accessible Performance Tracking backend APIs.

You must specify the following values in your application’s info.plist in order to use the module:

RPTSubscriptionKeyOnly internal Rakuten developers can setup a key. If not a Rakuten developer set a non-empty string
RPTConfigAPIEndpointEndpoint to fetch the module configuration – see _RPTConfiguration class for response format
RPTLocationAPIEndpointEndpoint to fetch the current location – see _RPTLocation class for response format
RPTRelayAppIDRelay portal application ID. Only internal Rakuten developers can setup app ID. If not a Rakuten developer set a non-empty string

Now your application is ready to automatically track the Launch metric, network requests, view lifecycle methods, and more.

On first run of your app after integrating Performance Tracking the module will only fetch and store its configuration data; it will not send metric data. On subsequent runs the module will track and send metrics and measurements if the previously received configuration is valid and the activation check succeeds.

Verify data is collected and sent

When you run your app in debug mode Xcode should display Performance Tracking debug logs prefixed with [Performance Tracking]. These logs show the measurements sent by the module to the backend for processing.

There may be a log that contains ‘Tracking disabled‘ which will show the reason for tracking not running, either because the Configuration API response data was invalid (in this case double-check the configuration keys you added to your info.plist) or because the result of that session’s activation check was to disable tracking.

To help verify that tracking works in your app you can add a boolean flag RPTForceTrackingEnabled to your app’s info.plist set to YES/true. This bypasses the activation check. After adding the flag run the app in debug mode and tracking should be enabled (as long as the Configuration API response was valid).


See the contributing guide for details of how to participate in development of the module.


See the changelog for the new features, changes and bug fixes of the module versions.

Latest podspec

    "name": "RPerformanceTracking",
    "version": "1.2.0",
    "authors": "Rakuten Ecosystem Mobile",
    "summary": "Automatic performance tracking for all your applications.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "source": {
        "git": "",
        "tag": "1.2.0"
    "platforms": {
        "ios": "8.0"
    "requires_arc": true,
    "documentation_url": "",
    "pod_target_xcconfig": {
        "GCC_C_LANGUAGE_STANDARD": "gnu11"
    "user_target_xcconfig": {
    "weak_frameworks": [
    "source_files": "RPerformanceTracking/**/*.{h,m}",
    "private_header_files": "RPerformanceTracking/Private/**/*.h",
    "module_map": "RPerformanceTracking/RPerformanceTracking.modulemap"

Pin It on Pinterest

Share This