[Impeller] Add documentation on how to enable Metal Profiling HUD without Xcode. (flutter/engine#44196)

This commit is contained in:
Chinmay Garde
2023-07-31 16:43:01 -07:00
committed by GitHub
parent 02bd0c4187
commit ee65190753

View File

@@ -21,3 +21,21 @@ export MTL_SHADER_VALIDATION=1
These environment variable are good defaults but there are more validation
related knobs and dials to turn. See `man MetalValidation`.
# Enable Metal Profiling HUD without Xcode
Applications can optionally display a HUD that displays real-time information
about Metal related performance.
![Profiling HUD](assets/metal_validation/performance_hud.png)
More documentation about the specific elements of the HUD is present on the
[Apple developer site](https://developer.apple.com/documentation/xcode/monitoring-your-metal-apps-graphics-performance).
The Profiling HUD is separate from Metal Validation and can be enabled for apps
that are launched from the command like (like Impeller Playgrounds) using
environment variables. Add the following to your `.rc` file.
```sh
export MTL_HUD_ENABLED=1
```