Visual Studio Analyzer
Applying Filters to Views

When you open a Visual Studio Analyzer view, it is automatically filtered, or autofiltered; that is, the filter that is applied to the view is the same filter applied to any other open views. If no filter is applied to any other open view, or if there are no other views open, the view is unfiltered, and all data from the current event log is displayed.

You can change the filter that is applied to a view using the AutoFilter button. AutoFilter takes the recording filter that has been applied to a view and links it with all other views on an event log. If you apply the same filter to multiple views, any changes you make to the filter are reflected immediately in each view, unless you disable automatic updates by turning AutoFilter off for a particular view and clearing the filter applied to that view. When you disable AutoFilter on one view, you can change the filter on that view without any other view being affected by your changes.

You can apply the recording filter to the view, or you can apply a different filter — or modify the applied filter — to change the events shown in the view. To apply filters to views, use the Apply Filter to View command on the shortcut menu or on the Analyzer menu. If you have more than one open view, you can:

  • Apply the same filter to all views.

    Any changes you make to the filter are reflected immediately in each view.

  • Apply a different filter to each view.
  • Edit a view-specific filter.

    If you choose the View Filter Editor command on a view's shortcut menu, you edit the filter for that view (and for any other views that are linked to that filter).

To apply a filter to a Visual Studio Analyzer view

  1. Click the view that you want to apply the filter to.
  2. In Solution Explorer, right-click the filter you want to apply, and then click Apply Filter to View.

To clear a filter from a view

  1. Click the view where you want to clear the filter.
  2. On the Analyzer menu, click Clear View Filter.

If a view has AutoFilter turned on, it shares its filter settings with other windows. For example, if you clear a filter from one view, all other views with AutoFilter turned on are also cleared of that filter. You can disable updates by turning AutoFilter off. However, if you have applied a filter to a view, any modifications you make to the applied filter always affect the view, independent of the AutoFilter setting.

To disable automatic view updates when filters change

  • Right-click the view for which you want to disable updates, and click AutoFilter.
    Note   To enable automatic updates to views again, click AutoFilter on the view's shortcut menu again.

See Also

Filters | Filter Basics | Creating Filters | Creating Advanced Filters| Adding an Existing Filter | Renaming a Filter | Deleting Filters| Setting Recording Filters | Setting Up Performance Analysis

Page view tracker