Xtrace, a Unix-style command-line profiling tool for macOS, leveraging Instruments for CPU, GPU, and Memory analysis.
Raw Developer Origin & Technical Request
Hacker News
Apr 26, 2026
I built this because I wanted a terminal-first profiling workflow on macOS, without constantly switching into the Instruments GUI.What it does today:- CPU analysis: summary, timeline, calltree, collapsed stacks, flamegraph, diff- GPU analysis (trace-gpu.py): active/idle ratios, command-buffer cadence, process ownership- Memory analysis (trace-memory.py): summary, leaks, growth, heap/regions- Recording modes: launch, attach by PID/name, wait-for spawn, system-wide- Root-aware attach flow for protected/root-owned processes- JSON output for automation/LLM workflows (I use it in autoresearch loops: hypothesis → experiment → keep/discard)Other notes:- macOS only (Instruments/xctrace)- core analysis is Python stdlib (no pip deps)- optional tools: speedscope + inferno for best visualizationWould love feedback on workflow, rough edges, and what integrations would make this more useful.
Developer Debate & Comments
No active discussions extracted for this entry yet.
Frequently Asked Questions
Market intelligence mapped to Xtrace, a Unix-style command-line profiling tool for macOS, leveraging Instruments for CPU, GPU, and Memory analysis..
What problem does Xtrace, a Unix-style command-line profiling tool for macOS, leveraging Instruments for CPU, GPU, and Memory analysis. solve?
Which technical concepts are associated with Xtrace, a Unix-style command-line profiling tool for macOS, leveraging Instruments for CPU, GPU, and Memory analysis.?
Engagement Signals
Cross-Market Term Frequency
Quantifies the cross-market adoption of foundational terms like diff and timeline by tracking occurrence frequency across active SaaS architectures and enterprise developer debates.
SaaS Metrics