
538 Chapter 11 • Optimizing, Debugging, and Testing
Trace
For applications where performance is vital, it would be convenient to be able to
trace their performance as the end users were using them.Visual Studio.NET
provides a mechanism that allows us to do just that.We can place code
throughout our application that can log events and steps of execution to a con-
sole window, log file, or any other available output. For example, we may want to
examine database connectivity in a multiuser environment in order to determine
why some users are experience longer lags then others.
In Figure 11.6, we saw how to define conditional compilation constants.The
dialog ...