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

Get the Android app

Or read this on Hacker News

Read more on:

Photo of apple silicon

apple silicon

Photo of Zig Profiling

Zig Profiling

Related news:

News photo

Apple Silicon SoC/DT Changes Submitted Ahead Of Linux 6.17

News photo

Show HN: We made our own inference engine for Apple Silicon

News photo

Cyberpunk 2077: Ultimate Edition for Macs with Apple silicon is launching this week