SMO has several chunks of code tracking things like time to execute queries and the total number of queries run blocked off by #if INCLUDE_PERF_COUNT.
We could replace that ifdef with a factory of some sort that only measures and collects the data when an application initializes it or if an environment variable is set. It could log it using actual performance counters on Windows.