Skip to content

Tracing release builds #480

Closed Answered by hds
tthmic asked this question in Q&A
Oct 20, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote
  1. Should I be able to build a release version while the tokio tracing feature is enabled, and the tokio_unstable flag is set?

This should work without any issue. If you have the tokio_unstable cfg flag set and the tracing feature enabled in tokio, the console-subscriber should be receiving the tracing based instrumentation it needs to make tokio-console function. Being in release mode won't change this, so I imagine that there is a difference in your cargo set up between debug and release.

  1. Will my threads execute notably faster in a release build?

They will be faster, how much faster depends on a few factors and the sort of code that you're running. For example, serde is a lot slowe…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tthmic
Comment options

Answer selected by hds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants