gobwas / ws

Tiny WebSocket library for Go.
MIT License
6.14k stars 376 forks source link

Instrument core structs with gtrace for easy debug #129

Open gobwas opened 3 years ago

cristaloleg commented 3 years ago

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

gobwas commented 3 years ago

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.