iOS Tools, Profiling, and Debugging

1649 篇文章 11 订阅
85 篇文章 1 订阅

https://developer.apple.com/documentation/metal/tools_profiling_and_debugging

Tools, Profiling, and Debugging

Build a Metal function library at the command line, or use Xcode to debug issues, and improve performance.

Framework

  • Metal

Topics

Files and Libraries

See information and steps to create Metal shaders and shader libraries.

About the Metal Shading Language Filename Extension

Use the .metal filename extension to gain access to Metal's build, profile, and debug tools.

Building a Library with Metal's Command-Line Tools

Use command-line tools to run the Metal compiler toolchain.

Frame Capture

View a summary of the Metal commands you submit in a single frame and drill down on specific areas for development and debugging purposes.

Metal GPU Capture

Use Xcode tools or Metal API to capture a runtime snapshot of your app's Metal commands and state.

Labeling Metal Objects and Commands

Assign meaningful labels to your Metal objects and commands so you can easily identify them in the call list of a captured frame.

Seeing a Frame's Render Passes with the Dependency Viewer

View your render passes as a flow chart and inspect individual resource dependencies to understand which commands wait on others to complete.

Debugging

Use a suite of tools to debug and develop Metal shaders.

Inspecting Vertices with the Geometry Viewer

Find problems with geometry by navigating a free-fly camera outside of your camera's frustum and checking vertex values.

Resolving Shader Issues with the Shader Debugger

Step through shader execution with the ability to inspect variable values and update shader code in place.

Profiling and Metrics

Use informational panels to suggest the best use of your optimization effort and the biggest performance wins.

GPU Activity Monitors

Use Xcode or macOS tools to view a high-level summary of the GPU activity of your app or a Mac.

Optimizing Performance with the Shader Profiler

View the elapsed execution time of individual statements in your shader to understand where it spends the most time.

Viewing Performance Metrics with GPU Counters

Ensure that properties related to an encoder's rendering are within the desired range.

Viewing Pipeline Statistics of a Draw

See relative percentages of where a given draw call spent its time across the GPU architecture.

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值