Profiling

Ambient supports profiling through puffin. To use it, follow these steps:

  1. Build Ambient with profiling enabled (add the profile feature flag). From the root folder:

    cargo install --path app --features profile
    
  2. Install puffin_viewer:

    cargo install puffin_viewer
    
  3. Start Ambient:

    ambient run guest/examples/basics/primitives
    
  4. Start puffin_viewer:

    puffin_viewer
    

You should now see real-time performance metrics for Ambient.