Back to Rerun

README

examples/cpp/shared_recording/README.md

0.31.41.2 KB
Original Source
<!--[metadata] title = "Shared recording" --> <picture> <source media="(max-width: 480px)" srcset="https://static.rerun.io/shared_recording/c3da85f1d4c158b8c7afb6bd3278db000b58049d/480w.png"> <source media="(max-width: 768px)" srcset="https://static.rerun.io/shared_recording/c3da85f1d4c158b8c7afb6bd3278db000b58049d/768w.png"> <source media="(max-width: 1024px)" srcset="https://static.rerun.io/shared_recording/c3da85f1d4c158b8c7afb6bd3278db000b58049d/1024w.png"> <source media="(max-width: 1200px)" srcset="https://static.rerun.io/shared_recording/c3da85f1d4c158b8c7afb6bd3278db000b58049d/1200w.png"> </picture>

This example demonstrates how to use RecordingIds to create a single shared recording across multiple processes.

To build it from a checkout of the repository (requires a Rust toolchain):

bash
cmake .
cmake --build . --target example_shared_recording

Run the following multiple times, and you'll see that each invocation adds data to the existing recording rather than creating a new one:

bash
./examples/cpp/shared_recording/example_shared_recording