Skip to content

Static Configuration

Static configuration is done using configure function.

configure

The configure functions accepts a single argument an object with the following property:

  • persistToFile: Enable this option to save performance logs to a file on the device or simulator.

    • For android logs are saved at /sdcard/Documents/PerformanceTracker/log.json.

    • For iOS logs are saved at Documents/PerformanceTracker/log.json.

For example:

import { PerformanceTracker } from '@d11/marco';
PerformanceTracker.configure({
persistToFile: true, // Logs will persist to a file.
});