Profile Metal application on MacOS

Hi, I have an application that uses Metal compute kernels to do image processing and it is not built as an Xcode project. Is there a tool to attach or launch a process to profile the scheduling and execution of Metal kernels similar to CUDA's Nsight Systems (or visual profiler)? I want to see the information like kernel execution sequence, duration, kernel names, thread group size, etc. Is that possible to do without an Xcode project? I tried the Instruments tool, but it didn't seem to show the labeled compute kernels.

Thanks!

Post not yet marked as solved Up vote post of randomx92 Down vote post of randomx92
818 views

Replies

I was able to do it by creating a dummy Xcode project and modifying the scheme to target the executable of my application. If I enable Metal frame capture, then I can run the profiler without issues.