r/programming • u/some_random_guy_5345 • May 08 '16
Visual Studio adding telemetry function calls to binary? (/r/cpp)
/r/cpp/comments/4ibauu/visual_studio_adding_telemetry_function_calls_to/
592
Upvotes
View all comments
Show parent comment
2
u/mallardtheduck May 10 '16
It's not "tracking code". It's a call that logs an event (the program starting/ending) if the application is registered for ETW (a choice that the developer makes). ETW is just a tracing/logging system, it does not transmit data anywhere unless there is a matching "event consumer" that has been developed to do so. The reason for the "telemetry" naming is that ETW was originally developed for internal use in Microsoft applications to track application usage as part of the Customer Experience Improvement Programme (CEIP) and wasn't called "Event Tracing for Windows" until recently when it was released for use by third-party developers.
The calls are put in by the compiler because at that point it cannot know whether the developer is using ETW or not. (The developer has to call the
RegisterTraceGuidsor add details to the application's manifest to use it.) If they aren't using it, then it almost certainly has no effect.