Loading page

Explore related resources

Find more information about the topics in this Learning Path:

Give feedback

How would you rate this Learning Path?

Review frequently asked questions

AI-assisted

These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.

Close
?
How do I know that the device is ready for wireless adb?
After enabling Wireless debugging in Developer options, pair and connect your host by using the addresses that are shown on the device. Run adb devices and confirm that the connection address appears with the device state. Pairing alone doesn’t confirm an active connection.
Should I keep the USB cable connected while collecting data?
No. Use wireless adb and disconnect the USB cable before monitoring. This avoids USB charging, which can distort power measurements.
Which parts of PhotoTalk do I modify to log LiteRT-LM metrics?
In LiteRtLmHelper.kt, set ExperimentalFlags.enableBenchmark = true before newEngine.initialize(). Record the start time before conv.sendMessageAsync(...), then call conv.getBenchmarkInfo() in onDone() and log the metrics.
What should I do in PhotoTalk before starting a capture?
Check that Model File Path (.litertlm) shows /sdcard/Download/gemma-4-E2B-it.litertlm. Select CPU for your first run, tap Initialize Engine, and wait for LiteRT-LM Ready (CPU). Select an image!. Have a non-sensitive image ready, then tap Select Image after monitoring starts so the inference is captured.
What result should I expect after running the monitoring script?
You should find a timestamped runtime-perf-TIMESTAMP/ directory under $WORK/data/ with a Perfetto trace, logs, CSV measurements, and summary.txt. The short smoke test has no inference data unless you use PhotoTalk during it. After the full capture, check that inference_count= is greater than zero, then plot the available measurements in JupyterLab.

Share

Tell others about this Learning Path.

Return to Mobile, Graphics, and Gaming