Profiling
Ambient supports profiling through puffin. To use it, follow these steps:
-
Build Ambient with profiling enabled (add the
profile
feature flag). From the root folder:cargo install --path app --features profile
-
Install puffin_viewer:
cargo install puffin_viewer
-
Start Ambient:
ambient run guest/examples/basics/primitives
-
Start
puffin_viewer
:puffin_viewer
You should now see real-time performance metrics for Ambient.