# Using the ProfilerViewer API while Profiling the Menu Control

In this example, we explore the ues of the ProfilerViewer API to customize the console slightly while taking a thorough look at the performance profile of the YUI Menu Control. Customizations include:

1. The console launcher is reduced in size;
2. The console is draggable via the header;
3. The height of the table and the number of functions profiled in the chart are increased;
4. A filter is used to show only functions that have been called at least once.

Use the button below to show the Menu system, then launch ProfilerViewer to explore the detailed performance profile of Menu and its subcomponents. Note: Because ProfilerViewer uses the same dependencies as Menu, only the first "view" in ProfilerViewer will be isolated to Menu performance data. After the first view, "Refresh Data" actions will begin showing performance information (on the Dom Collection, for example) reflecting both Menu's usage and ProfilerViewer's usage of that component.

- Communication
  - 360°
  - Alerts
  - Avatars
  - Groups
  - Internet Access
  - PIM
    - Yahoo! Mail
    - Yahoo! Address Book
    - Yahoo! Calendar
    - Yahoo! Notepad
  - Member Directory
  - Messenger
  - Mobile
  - Flickr Photo Sharing
- Shopping
  - Auctions
  - Autos
  - Classifieds
  - Flowers & Gifts
  - Real Estate
  - Travel
  - Wallet
  - Yellow Pages
- Entertainment
  - Fantasy Sports
  - Games
  - Kids
  - Music
  - Movies
  - Radio
  - Travel
  - TV
- Information
  - Downloads
  - Finance
  - Health
  - Local
  - Maps & Directions
  - My Yahoo!
  - News
  - Search
  - Small Business
  - Weather