Get the latest tech news
Zig Profiling on Apple Silicon
If you’re a developer rocking an Apple Silicon Mac and writing in Zig, congratulations - you’ve chosen the scenic route through the desert of profiling tools. It’s just you, your code, and a tumbleweed named Apple Instruments. But don’t worry - we’ll try to find some oases. Okay, it’s not that bad, but we’re far away from the rich ecosystem of profiling tools available on Linux. Note: I have limited experience using low-level languages, so this article doesn’t provide a deep dive into profiling, but rather serves as an entry point to the world of profiling.
If you’re a developer rocking an Apple Silicon Mac and writing in Zig, congratulations - you’ve chosen the scenic route through the desert of profiling tools. Maybe it’s a skill issue on my side and I just don’t know how to cook it, but Tracy’s manual(see page 27) clearly says callstack sampling isn’t supported on Apple Silicon. Rich UI: source code, call tree, CPU/GPU usage, and much more Remote profiling Many instrumentation features, like messages, scopes, values
Or read this on Hacker News