Understanding Application Structure
Visual Studio Analyzer makes it easier to understand the structure and behavior of distributed, multi-tier applications by:
Showing all the components that interact.
Plotting them in a diagram.
Annotating the diagram with the Visual Studio Analyzer events that each component generates.
Your team can use Visual Studio Analyzer to record typical sessions of an application and save the resulting event logs; new members of your team can then replay these logs to learn about the application.
Helping a New Developer Understand an Application
You can take advantage of Visual Studio Analyzer's ability to log event interactions to help new team members understand your team's applications. For example, suppose a new developer has joined your project team to work on a distributed application. You are the project lead. You can use Visual Studio Analyzer to capture a typical run of your team's application and then sit down with your new team member to review the run's event log within Visual Studio Analyzer. You might proceed as follows:
Start Visual Studio and open the Visual Studio Analyzer project that contains the event log.
Select the event log and open the Component Diagram view, which shows a graphical representation of all the components in the application, and then replay events and watch as the events are presented.
As playback progresses, you might note a confusing interaction. Stop playback, step backward event by event, and then step forward through the confusing sequence.
When you are satisfied that you understand the interactions, resume playback.
Investigating Change Impact
You can use Visual Studio Analyzer to investigate the impact of changes before you make the changes final by checking in the affected code. For example, suppose you are working on a component that is part of a distributed application. You are familiar with your component, but not with the rest of the application. You have made some performance optimizations to your component, but you want to evaluate the possible impact to the rest of the application before you check in your changes to the master source code control system.
Here is how you could use Visual Studio Analyzer to investigate the impact of your changes:
Start by creating a Visual Studio Analyzer project, connecting to your development machine, and creating a filter and event log.
Edit the filter to collect all interactions between your component and the other components in the application, and then set the filter as the recording filter and start recording events into the event log.
Start your application and switch back to Visual Studio Analyzer when the application finishes. Stop recording events into the event log.
Open the Component Diagram view and replay the event log. You might notice that although usually your component is called from the same system, sometimes it is called from a remote system, so you might decide to optimize your component in a different way. You can use this method to perform a "what if" analysis of your changes as often as you would like. Investigating the impact of changes before check-in can save you time because you can spot potential problems at a time when it is easy to fix them. See Analyzing Performance for more information on using Visual Studio Analyzer to analyze various aspects of application performance.
For More Information This section mentions Visual Studio Analyzer events, event logs, projects, and filters. All of these items are tools that Visual Studio Analyzer provides to help you in your analyses. For more information about these tools, see: