[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

 

Chapter 5.

 

ZoneRanger Menus



This reference chapter discusses the functionality of each menu item in ZoneRanger.


ZoneRanger Menus Overview

There are six menus:


Apple menu

The Apple menu contains one command for ZoneRanger, About ZoneRanger. This command displays copyright and author information about the application.

The Apple Menu:

File menu

The File menu contains commands to open, close, and save windows, and to quit the application.

The File menu:

Open

Displays the Heap Hierarchy window. In the window, you may open a Graphical and/or a Summary window for selected heap zones.


See also

"Opening a Graphical or Summary Display."


Open Selection

Opens whatever is currently selected. This item text is dynamic and identifies what you are opening. For example, if you select a block in a Graphical window or Block List window, this item becomes Open Block @ address, where address is the address of the block. In this example, if you choose this item ZoneRanger opens a Block window for the block.


Close

Closes the frontmost window.


Save As Text

Saves the contents of the frontmost window or the currently selected text to a text file.


Save As Picture

Saves the contents of a Graphical window to a PICT file. The picture contains the entire contents of the heap zone, and not just the currently visible portion. This command is active only if a Graphical window is frontmost.


Quit

Quits the ZoneRanger application.


Edit menu

The Edit menu contains commands to perform both standard editing and find operations.

The Edit Menu:
þ

Undo

Is not implemented.


Cut

This command is not appropriate for ZoneRanger.


Copy

This command functions differently depending on which window is front-most. If a Block Window is front-most, this command copies the visible area of the window to the clipboard. If any other ZoneRanger window is front-most, this command copies the current selection to the clipboard. The Copy command cannot be used with the Histogram Display.


Paste

This command is not appropriate for ZoneRanger.


Clear

Clears (deselects) the current selection in the active Graphical window.


Select All

Performs the standard editing operation. This command is only available in the Block List Window.


Scroll To Selection

Scrolls the selected block into view, if it is not already in view. This command is enabled when you select a block from the heap (in graphical view).


Find

Opens the Find dialog box. This dialog lets you find blocks based on their content, type, or size.


See also

"Searching for Blocks."


Configure menu

The Configure menu contains commands to configure the frontmost Graphical window, and to set how often ZoneRanger refreshes window contents. Except for the Refresh commands, each of the Configure menu items is enabled only if the frontmost window is a ZoneRanger Graphical window.

The Configure menu:
þ

Use Color

Displays the frontmost Graphical window in color.


Use Monochrome

Displays the frontmost Graphical window in monochrome.


Show/Hide Block Outlines

Show Block Outlines sets the frontmost Graphical window to display the boundaries of each block in the zone. If block outlines are currently being shown, then this menu item becomes Hide Block Outlines.


See also

"Displaying different types of handles."

In a Graphical window, handles are displayed in a particular color or pattern. The next three items-Show Locked Handles, Show Purgeable Handles, and Show Resource Handles-allow you to highlight one particular type of handle in its own color or pattern. A check mark next to the item indicates which type of handle, if any, is highlighted. Only one of these three items may be active at any time.


See also

"Changing the Graphical windows' colors."


Increase Resolution

Doubles the resolution of the frontmost Graphical window by halving the number of bytes that each square represents. The highest resolution is 8 bytes per square. This command is available only if the resolution is not already at the maximum.


Decrease Resolution

Halves the resolution of the frontmost Graphical window by doubling the number of bytes that each square represents. The lowest resolution is 1 megabyte per square. This command is available only if the resolution is not already at the minimum.


Zoom In

Increase the size of each grid square in the display. The allowable zoom factors are 1x1, 4x4, and 8x8 pixel grid squares. The 1x1 pixel zoom factor is not available if you've selected Show Block Outlines, because a one pixel square is not large enough to draw the outline of the block. The Zoom In command is available only if the zoom factor is not already at the maximum.


Zoom Out

Decrease the size of each grid square in the display. The allowable zoom factors are 1x1, 4x4, and 8x8 pixel grid squares. The 1x1 pixel zoom factor is not available if you've selected Show Block Outlines, because a one pixel square is not large enough to draw the outline of the block. The Zoom Out command is available only if the zoom factor is not already at the minimum.


Fit To Window

Changes the resolution in the Graphical window such that the entire heap is displayed within the current size of the window. The Fit To Window command is available only if the resolution is higher than the window can currently display.

The Refresh Foreground and Refresh Background menu items each present a submenu with which you can specify how often the application will refresh the contents of windows when the application is in the foreground or background, respectively. You can choose a value in the range from 1 to 5 seconds, as well as Always or Never.

The Refresh Foreground hierarchical menu:

If you choose Always, ZoneRanger refreshes the contents of its windows as often as possible.

If you choose Never, ZoneRanger still refreshes the contents of its windows. However, it only does so when actually drawing the particular window-for example, if you move a foreground window and expose the ZoneRanger window.


Refresh Now

Updates a window immediately. Choose this command if you do not want to wait for the refresh interval to elapse. This command is particularly useful if you've set the refresh rate to Never.


Special menu

The Special menu contains commands that perform special operations on a heap zone.

The Special menu:
þ

Compact

Compacts the heap zone by moving unlocked handles toward the bottom of the heap, and merging free blocks together. This command is available only if a Summary or Graphical window is frontmost.


See also

"Compacting and Purging Heaps."


Purge

Purges the heap zone by changing unlocked, purgeable handles to free blocks. This command is available only if a Summary or Graphical window is frontmost.


Compact and Purge

Purges the heap zone and then compacts it. This command is available only if a Summary or Graphical window is frontmost.


Debugger

Puts you into the installed low-level debugger. If there is no debugger installed or running, the Debugger command is disabled-you don't have to worry about crashing.

To return to ZoneRanger, use the appropriate go command for the debugger. If you are using MacsBug, type g and press Return. If you are using The Debugger from Jasik Designs, choose Exit To Program from the Go menu.


See also

"Going To and Returning From a Debugger."


Watch For Tides

Watch For Tides expands the Summary Display to show your applications high and low memory usage (high tide and low tide). This command becomes Stop Watching For Tides if you are already in watch mode. When you choose Watch For Tides with one of the Graphical Windows front-most, ZoneRanger brings the corresponding Summary Display to the front and begins watching for high and low memory usage in that heap zone.

This command and Watch For Leaks are mutually exclusive. Only one of these commands can be active at a time.


See also

"Finding Memory Requirements."


Watch For Leaks

Watch For Leaks expands the Summary Display to show a comparison between blocks at one point in time and blocks at another. If you are already in watch mode, this item becomes Stop Watching For Leaks. When you choose Watch For Leaks with one of the Graphical Windows frontmost, ZoneRanger brings the corresponding Summary Display to the front, and begins watching for leaks in that heap zone.

This command and Watch For Tides are mutually exclusive. Only one of these commands can be active at a time.


See also

"Finding Memory Leaks."


Window menu

The Window menu contains one menu item for each open window (graphical, summary, block list, and block windows). When you choose a window from this menu, ZoneRanger activates the window. ZoneRanger adds windows to the list in the order in which they were opened. The first nine windows have the command key equivalents 1 through 9 respectively.

The Window menu:

 

 


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: July 21, 2000