rust_tracy_client icon indicating copy to clipboard operation
rust_tracy_client copied to clipboard

Cache buffers, allow omitting span names, options for not formatting KVs all the time

Open nagisa opened this issue 2 years ago • 1 comments

With this plain error!("banana") can take as little as 200ns (~0 overhead) but it will also lead to no meaningful messages if you have error!(someotherkey), and it will also drop all the KVs too.

Similarly, emitting a span can happen in “just” 1.2µs which is also pretty nice.

Finally, tracy_client::span!() “just works” and produces meaningful trace outputs, which is very nice. I think this one is likely uncontroversial and can be landed as is (see 2nd commit).

Otherwise this is just a code/brain dump to which I don't anticipate returning for a foreseeable future. If somebody/anybody wants to finish this up somehow, I encourage you to do so ^^.

nagisa avatar Jun 12 '22 18:06 nagisa