aclysma / profiling

Provides a very thin abstraction over instrumented profiling crates like puffin, optick, tracy, and superluminal-perf.
Apache License 2.0
320 stars 39 forks source link

Use `tracy-client` directly #2

Closed Imberflur closed 3 years ago

Imberflur commented 3 years ago

As mentioned in the readme there is overhead with going through tracing. Iirc when I measured it, it was on the order of hundreds of ns.

Of course, I think it would make sense to keep the tracing backend since that allows the instrumentation to be used for other things using tracing.

aclysma commented 3 years ago

I think that would be a good change too! I think the main reason I didn't do it that way was because all the examples I saw from the crate went through tracing. Would be happy to accept a PR for this, or might get around to doing it myself at some point.

aclysma commented 3 years ago

I'll leave this open until 0.1.6 is published

aclysma commented 3 years ago

This is published now in 0.1.6 though I re-published as 0.1.7 because I forgot to bump the procmacro crate version