Comments (4)
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.
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.
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.
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)
- replace --open with --no-open?
- Inconsistent behaviour for the --template option HOT 1
- Failure to parse manifest file HOT 5
- "Failed to gain authorization" HOT 5
- Instruments can't seem to read the trace files HOT 21
- Not working with Big Sur? HOT 10
- Cannot install on Apple M1 HOT 6
- Unknown error related to Rosetta translation HOT 6
- Here's a nix-shell invocation that builds cargo-instruments on my system HOT 2
- Support `-p`/`--package` argument HOT 1
- List available targets HOT 1
- Can't open profiling data HOT 1
- Many Instrument video links in Readme don't work HOT 2
- Make a new release HOT 2
- Mention feature `vendored-openssl` in installation instructions HOT 1
- Fails to link libstd on macOS HOT 1
- Support --manifest-path? HOT 2
- Failed to execute loader thread for liboainject.dylib HOT 8
- xcrun: error: unable to find utility "xctrace" HOT 7
- cargo instruments hanging after OS upgrade HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo-instruments.