-
Notifications
You must be signed in to change notification settings - Fork 37
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
Logging a span without allocating #26
Comments
I would not mind something like this all that much. From my perspective Perhaps most disappointing to me is that this doesn't help with fixing a similar problem in
From a quick look, I would say that these features are avoidable; at least if we are fine with falling back to populating the function name field with a |
I'd love to see the regular |
Nope, I believe that Tracy requires a |
Another option would be to stash the formatted data inside a |
This has been added in #33 |
Hello! I was profiling a very performance sensitive app, and I wanted to get tracing overhead as low as possible. The implementation of
Span
calls___tracy_alloc_strloc_name
and___tracy_emit_zone_begin_alloc_callstack
, which were too expensive for my usecase.In my fork (https://github.com/sujayakar/rust_tracy_client), I've added a
static_span!
macro that avoids dynamic allocation by using&'static str
s for the function name and file name. The implementation (https://github.com/sujayakar/rust_tracy_client/blob/main/tracy-client/src/lib.rs#L67) uses some pretty gnarly nightly features. Would you be interested in my upstreaming this?The text was updated successfully, but these errors were encountered: