ws icon indicating copy to clipboard operation
ws copied to clipboard

Instrument core structs with gtrace for easy debug

Open gobwas opened this issue 4 years ago • 2 comments

gobwas avatar Feb 05 '21 11:02 gobwas

What about overhead? Regarding dependencies, allocations, cpu time. I think there is no right answer at the moment, but what are your expectations?

cristaloleg avatar Feb 05 '21 13:02 cristaloleg

I believe there will be no overhead if you don't use it -- there is an option of the gtrace to generate tracing code only if some build tag was given. So it will overhead for sure only if you pass that build tag.

gobwas avatar Feb 05 '21 13:02 gobwas