Exercise: Using Performance Counters
In the last section, we discussed a way to measure the execution time of program functions. However, when optimizing the program there may be other factors that determine your optimization steps. For example, it is also helpful to know which functions are executed most frequently. Suppose you have an application used for data entry. If it takes 10 seconds to initially load the application and sign on, but another 10 seconds every time you press the Save button—you definitely should place a higher priority on optimizing the code behind the Save button. Another factor that may impact application performance is the computer on which your program is running. Extra high memory usage or a network bottleneck can ...
Get Special Edition Using Microsoft® Visual Basic® .NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.