Giter VIP home page Giter VIP logo

Comments (4)

rohitjoshi avatar rohitjoshi commented on May 28, 2024 3

I set the release profile as below but do not see any function name symbols.

[profile.release]
opt-level = 3
lto = true
debug=true

from cargo-instruments.

cmyr avatar cmyr commented on May 28, 2024 1

yes, this issue is very confusing, I'm going to close it.

When I use --release on a binary with no profile, I currently do get a profile that includes some mangled names. Having debug=true in the profile doesn't seem to change anything.

The major problem for me, though, is that it seems like maybe the rate of sample collection has changed significantly? Maybe with the move to M1, or maybe with an instruments rewrite? For relatively short programs I'm regularly seeing executions that complete but produce almost empty profiles. If I do something like run the program in a loop, then I see some number of symbols.

In any case, I'm closing this, and if anyone has specific issues regarding --release we can discuss them in new issues.

from cargo-instruments.

corneliusroemer avatar corneliusroemer commented on May 28, 2024

I'm confused by this issue's title and description.

I have the same problem as @rohitjoshi, adding what's recommended in the readme to the release profile doesn't help.

Do I need to do anything else? Like set stripping off? Or splitting?

How can I test if debug symbols are generated? How do I debug this?

from cargo-instruments.

corneliusroemer avatar corneliusroemer commented on May 28, 2024

This currently works for me after some experimentation:

[profile.release]
debug = true
incremental = true
split-debuginfo = 'packed'
strip = 'none'

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.