Filtering memory information (Part 2)
Last week's tip told about simplifying the information that the Memory Debugger displays in its Leak Detection and Heap Status views. Here again is the dialog boxes that you use to create a filter:

This is showing a filter that removes all references to the strdup() function.
The way in which you create a filter is similar to the way in which you create a filter within the Mozilla or Thunderbird mail systems.
- Within the Add Filter or Edit Filter Dialog Boxes, select the Add button to add a new condition line.
- Use the pulldown lists in the first and second columns of the newly added line to select what action you want to occur.
- Finally, enter what you want filtered in the third column.
Notice that you can change the order in which the Memory Debugger will apply a condition. While changing the order shouldn't change the result, you would want to move a condition that removes the most information higher in the list.
Here are the values you can select in the first two columns:
Property
The object that the Memory Debugger will look for:
Process/Library Name
Source File Name
Class Name
Function Name
Line Number
Size (bytes)
Count
PC
Operator
The operator indicates the relationship the value has to the property. Select one of the items from the pulldown list. If the property you've selected is a string, the Memory Debugger displays the following list:
contains
not contains
starts with
ends with
equals
not equals
If the item is numeric, it displays the following list:
<=
<
=
!=
>
>=
You can find tips that we've already sent out in our Tip Archive
Help us improve these tips!