Most menu and toolbar commands are the same for both the stand-alone version and the integrated version, with a few differences. Below is a presentation of all the commands available from within Visual Studio:
Commands on the File menu:
|
|
Open->File |
The Open->File command in Visual Studio can be used to open a previously saved session file. Currently there is no entry for Profiler Sessions in the Files of Type dropdown list. To select a profiler session, select All files in the list. |
Commands on the Edit menu:
|
|
Copy |
Copies data from the selected item in the currently selected control to the clipboard. For more information see Copying Data to the Clipboard. |
|
|
Copy All |
Copies all data from the currently selected control to the clipboard. For more information see Copying Data to the Clipboard. |
Commands on the View menu:
|
|
Show Allocs and Bytes per Second |
This command affects all columns and fields that present the number of allocations performed and bytes allocated. If this command is checked, the values of those fields and columns will be divided by the elapsed time between the snapshots. Otherwise the actual allocation- and byte-count will be presented. |
|
|
Show Heap Utilization as Percent |
This command affects all columns and fields that present information about the heap utilization. If this command is checked, those fields and numbers will be presented as percentages of the total number of allocations performed between snapshots. Otherwise, the way they are presented is determined by the Show Allocs and Bytes per Second setting. This command is only available if heap utilization tracking is enabled. For more information, see Heap Utilization Tracker. |
|
|
Show [Field set] |
Allows you to select how the heap information should be presented. It will affect which columns are shown in the tables and how the fields in the info panels are presented. For more information see Field Sets. |
|
|
Show ignored analysis issues |
Opens the Ignored Analysis Issue window, which can be used to view and modify the ignored analysis issues. For more information, see Modifying Ignored Issues. |
|
|
Ignore framework issues |
Ignores analysis issues that are caused by the .NET Framework. For more information, see Ignoring Framework Issues. |
|
|
Show Failed Memory Assertions |
If at least one memory assertion has failed, this command will bring up a dialog that allows you to view information about the failed memory assertions. |
|
|
Manage filters |
Opens the Manage filters window. For more information, see Saving and Managing Filters. |
|
|
Details Back |
Steps back to the previously shown information. This can, for instance, be useful if you want to look at the details of a referrer of an instance and then get back to the original instance. |
|
|
Details Forward |
Steps forward through details information previously left using Details Back. |
|
|
Show Details |
Shows details about the selected item. If the selected item is a type or resource, the type/resource details page will be shown, if it is an instance, the instance details page will be shown. If the selected item is a method (in a call stack) and source file information is available, this command will be named Show source and will show the source of the method when selected. |
|
|
Call stack functions |
Defines which functions/methods should be included when viewing call stacks. The available options are: Source, Publically visible, and All. |
|
|
Profiler Layout->Column chooser |
Opens the column chooser window. For more information, see Column Layout and Customization. |
|
|
Profiler Layout->Auto-adjust column widths |
Toggles auto-adjustment of table columns. For more information, see Column Layout and Customization. |
|
|
Profiler Layout->Reset layout |
Resets the layout of columns and tool windows. For more information, see Column Layout and Customization. |
Command on the View->Other Windows menu
|
|
Profiler Projects Explorer |
Shows the Profiler Projects Explorer window. For more information, see Profiler Projects. |
Commands on the Profiler menu:
|
|
Start Memory Profiler |
Starts profiling the startup project of the loaded solution. For more information, see Start Profiling a Project. |
|
|
Start using Profiler Project |
Starts profiling using the settings from the currently active profiler project. For more information, see Profiler Projects and the “How to…” topic Start Profiling using a Profiler Project. |
|
|
Profile Application |
Starts a wizard that helps you profile a stand-alone application. For more information, see Start Profiling an Application. |
|
|
Profile ASP.NET |
Starts a wizard that helps you profile an ASP.NET application. For more information, see Start Profiling ASP.NET. |
|
|
Profile Silverlight application |
Start profiling a Silverlight application with the help of a wizard. For more information, see Start Profiling a Silverlight Application. |
|
|
Profile Windows Service |
Starts a wizard that allows you to profile a Windows Service. For more information, see Start Profiling a Windows Service. |
|
|
Attach Profiler to Process |
Starts a wizard that allows you to attach the profiler to a running .NET process. For more information, see Attach to a Process. |
|
|
Import Memory Dump |
Starts a wizard that allows you to import memory dump files as heap snapshots. For more information, see Import Memory Dump Files. |
|
|
Start |
Restarts a profiler session. This command is only available after an active session has been stopped. |
|
|
Stop |
Stops the currently active profiler session. |
|
|
Collect Heap Snapshot |
Collects a snapshot of the GC heap and native memory. The results will be presented under the snapshot pages. |
|
|
Collect Gen #0 Heap Snapshot |
Collects a snapshot of the GC heap and native memory by only doing a generation #0 garbage collect. This command is only available if heap utilization tracking or low impact profiling is enabled. For more information, see Heap Utilization Tracker. |
|
|
Save Snapshot |
Saves the latest collected snapshot in a temporary profiler session file. |
|
|
Collect peak snapshot |
Collects the current peak snapshot. If a higher peak is detected after the current peak has been collected, an additional peak snapshot will be collected when the session ends. For more information, see Peak Snapshots. |
|
|
Reset peak |
Resets the current peak snapshot. New peak snapshot information will be collected at the next garbage collection. For more information, see Peak Snapshots. |
|
|
Track peak snapshots |
Enables and disables peak snapshot collection. When enabled, temporary snapshot information will be stored each time a new peak has been detected and a peak snapshot will be collected when the session ends. For more information, see Peak Snapshots. |
|
|
Rename Snapshot |
Renames a previously saved snapshot. This command is only available if the selected snapshot has been saved and you are currently profiling a process. |
|
|
Associate Memory with
Resource |
Associates unmanaged memory with related resources. For more information, see Associated Memory. |
Commands on the Profiler->Project menu:
|
|
New Profiler Project |
Starts a wizard that allows you to create a new profiler project. For more information, see Profiler Projects and the “How to…” topic Create or Load a Profiler Project. |
|
|
Load Profiler Project |
Opens a profiler project and includes it in the profiler projects explorer window. For more information, see Profiler Projects and the “How to…” topic Create or Load a Profiler Project. |
|
|
Save Profiler Project |
Saves the project that is currently selected in the profiler projects explorer. |
|
|
Save Profiler Project As |
Saves the project that is currently selected in the profiler projects explorer to a new file. |
In order to reduce the number of commands in the menus of Visual Studio, several of the profiler commands are only visible when a profiler session is shown in the active document window.
The most commonly used commands are also available in two Visual Studio toolbars: Memory Profiler Control and Memory Profiler Launcher.