Get up and running with Ottrelite in just a few minutes. Ottrelite needs two components to work: a tracing API and a visualization backend.
Ottrelite requires react-native-nitro-modules to be installed in your project. If you don't have it yet, install it first:
For detailed setup instructions, consult the react-native-nitro-modules documentation.
Install the core Ottrelite package:
Add a sample trace anywhere in your app to test the setup:
Choose a backend to visualize your traces. For this quick start, we'll use the Platform backend, which integrates with Android Studio Profiler and Xcode Instruments.
Configure Ottrelite to use the backend:
You can install multiple backends simultaneously to get different perspectives on your app's performance:
Each backend provides different ways to record and view traces:
For detailed backend-specific instructions, consult the individual backend documentation in the Backends section.
For real-time profiling, consider using the Tracy backend. Unlike Android Studio Profiler and Xcode Instruments, Tracy is a real-time profiler that can give you a frame-by-frame analysis of your app's performance without having to wait for the trace to be recorded.
Now that you have basic tracing working: