Giter VIP home page Giter VIP logo

Comments (7)

bswinnerton avatar bswinnerton commented on May 28, 2024 3

I was able to get this working by installing xcode and then running:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

from cargo-instruments.

cmyr avatar cmyr commented on May 28, 2024 2

Ah yea you need to install Xcode to get the instruments app, I think the standard route is now via the Mac App Store.

from cargo-instruments.

rafaelbeckel avatar rafaelbeckel commented on May 28, 2024 1

I have the same issue. Also installed via Homebrew, and I have the devtools installed.

MacOS Ventura 13.0, ARM-Based Mac M2.

# Checking Instruments app
❯ open /Applications/Xcode.app/Contents/Applications/Instruments.app
(this command correctly opens the Instruments app)

# Checking developer tools 
❯ xcode-select -p
/Library/Developer/CommandLineTools
❯ which xcrun
/usr/bin/xcrun
❯ which xctrace
/usr/bin/xctrace

# Trying to run it like in the README
❯ cargo instruments -t Allocations
   Finished dev [unoptimized + debuginfo] target(s) in 0.10s
   Profiling target/debug/myapp with template 'Allocations'
     Failed instruments errored: xcrun: error: unable to find utility "xctrace", not a developer tool or in PATH

from cargo-instruments.

cmyr avatar cmyr commented on May 28, 2024

Does anything here solve this for you? #42

from cargo-instruments.

cdstanford avatar cdstanford commented on May 28, 2024

I saw that thread before, but it doesn't seem to be the solution. People were pointing to some things in XCode settings, but either something is wrong with my installation of xcode or it isn't shipped in mac as a separate program anymore. I've noticed that xcode-select -p suggests it's installed:
/Library/Developer/CommandLineTools
but that there's no XCode program listed in Applications or system preferences

from cargo-instruments.

cdstanford avatar cdstanford commented on May 28, 2024

At any rate, I didn't end up getting a Rust profiler to work and I'm not sure I will have time to investigate this further on my setup, so I'll close this issue unless you want to look into it further. Thanks for responding!

from cargo-instruments.

corneliusroemer avatar corneliusroemer commented on May 28, 2024

I had xcode-beta installed - apparently that also doesn't work. Need to install xcode itself, not the beta.

Good way to install is using xcodes

from cargo-instruments.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.