cargo-instruments
« Back to VersTracker
Description:
Easily generate Instruments traces for your rust crate
Type: Formula  |  Latest Version: 0.4.12@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: rust profiling macos instruments development performance
Install: brew install cargo-instruments
About:
cargo-instruments is a Cargo subcommand that automates the process of profiling Rust applications on macOS using Apple's Instruments. It compiles your crate with the necessary debug symbols and then launches Instruments with a pre-configured template, streamlining the workflow for performance analysis. This tool is invaluable for developers looking to identify performance bottlenecks, memory leaks, or excessive energy usage in their native Rust code.
Key Features:
  • Seamless integration as a Cargo subcommand
  • Automated setup of Instruments with appropriate templates
  • Support for profiling both binaries and test suites
  • Simplifies the collection of detailed performance and memory traces
Use Cases:
  • Diagnosing performance bottlenecks in a Rust application on macOS
  • Investigating memory leaks or allocation patterns in a Rust library
  • Analyzing the energy impact of a Rust command-line tool
Alternatives:
  • cargo-flamegraph – Generates flame graphs for performance analysis, typically on Linux, offering a different visualization of profiling data.
  • Xcode Instruments (manual) – The native GUI tool, which requires manual project setup and configuration, whereas cargo-instruments automates this for Rust projects.
License: MIT
Dependencies: openssl@3
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, sonoma, ventura
Version History
Detected Version Rev Change Commit