Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can trace rust? #127

Open
Future2100 opened this issue Oct 7, 2020 · 1 comment
Open

can trace rust? #127

Future2100 opened this issue Oct 7, 2020 · 1 comment

Comments

@Future2100
Copy link

Is there any tutorial about how to use it in rust?

@adelbertc
Copy link
Contributor

@Future2100 I have used kubectl-trace to trace Rust, usual rules of thumb apply:

  • if you are trying to trace something compiled under --release make sure to keep debug symbols
  • If your stack traces have missing frames, make sure you have frame pointers on with RUSTFLAGS=-Cforce-frame-pointers=yes
  • Rust mangles symbols as it has to map a more complex feature set onto a simpler one - if you know a-priori what functions/symbols you may be interested in inspecting try the #[no_mangle] attribute

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants