Sun Studio 12: Performance Analyzer

Filtering Data

By default, data is shown in each tab for all experiments, all samples, all threads, all LWPs, and all CPUs. A subset of data can be selected using the Filter Data dialog box.

The Filter Data dialog box has a Simple tab and an Advanced tab. In the Simple tab, you can select the experiments for which you want to filter data. You can then specify the samples, threads, LWPs, and CPUs for which to display metrics. In the Advanced tab, you can specify a filter expression that evaluates as true for any data record you want to include in the display. For information on the grammar to use in a filter expression, see Expression Grammar.

When you have made a selection in the Functions tab, DataLayout tab, DataObjects tab, or a MemoryObject tab in the Analyzer, clicking the Compose Filter Clause button on the toolbar opens the Advanced tab of the Filter Data dialog box and loads the Filter clause text box with a clause that reflects the selection.

For details about using the Filter Data dialog box, refer to the online help.

Experiment Selection

The Analyzer allows filtering by experiment when more than one experiment is loaded. The experiments can be loaded individually, or by naming an experiment group.

Sample Selection

Samples are numbered from 1 to N, and you can select any set of samples. The selection consists of a comma-separated list of sample numbers or ranges such as 1–5.

Thread Selection

Threads are numbered from 1 to N, and you can select any set of threads. The selection consists of a comma-separated list of thread numbers or ranges. Profile data for threads only covers that part of the run where the thread was actually scheduled on an LWP.

LWP Selection

LWPs are numbered from 1 to N, and you can select any set of LWPs. The selection consists of a comma-separated list of LWP numbers or ranges. If synchronization data is recorded, the LWP reported is the LWP at entry to a synchronization event, which might be different from the LWP at exit from the synchronization event.

On Linux systems, threads and LWPs are synonymous.

CPU Selection

Where CPU information is recorded (Solaris OS), any set of CPUs can be selected. The selection consists of a comma-separated list of CPU numbers or ranges.