This directory provides examples for the Rust and C++ state recorder libraries.
First, build and set up an emulator and server as follows:
fx set workbench_eng.x64 --with-test //src/power/observability:tests fx build ffx emu start --headless fx serve --background
If you need to rebuild, be sure to OTA before you re-run:
fx build && fx ota
After building and setting up your emulator, run examples using run_example.sh:
./examples/power/state_recorder/run_example.sh cpp
or
./examples/power/state_recorder/run_example.sh rust