Is there a way to keep tracy dormant (not open a socket)
I have integrated Tracy in a central library of our engine. This library gets linked into every application. However, that means that now the OS is asking for Firewall permissions every time it sees such an app try to open a socket. I already use TRACY_ON_DEMAND, but obviously Tracy needs to be reachable from the outside. The majority of our apps don't need Tracy support, so I would like to have an on-switch to fully enable Tracy at runtime in those apps that do want to support it.
However, my attempts to implement this have failed. I can use TRACY_MANUAL_LIFETIME to dynamically enable Tracy, but in apps that don't do this, they will crash when they call any Tracy API. Unfortunately, since most APIs are scope based, I can't wrap them with an "if initialized", since that introduces another scope.
It would be great, if I could simply deactivate or delay the opening of the network socket. So Tracy would be initialized like normal, and scopes etc work normally, but the Tracy client could simply not see it on the network and therefore cannot connect.
Does that make sense? Any idea whether that's already possible somehow?
Source: wolfpld/tracy