Analyzing Program Performance With Sun WorkShop

Selecting Data Types for Viewing

The Sampling Analyzer allows you to view different types of collected data. You can specify the kind of data that would help you improve your application's performance.

Select one of the following data types from the Data list box:

Process Times 

Summary of process state transitions 

User Time 

Time spent in the user process state from the execution of instructions 

System Wait Time 

Time the process is sleeping in the kernel but is not in the suspend, idle, lock wait, text fault, or data fault state 

System Time 

Time the operating system spends executing system calls 

Text Page Fault Time 

Time spent faulting in text pages 

Data Page Fault Time 

Time spent faulting in data pages 

Program Sizes 

Sizes in bytes of the functions, modules, and segments of your application. Used in conjunction with Address Space data, this lets you examine the size of your application and helps you establish specific memory requirements 

Address Space 

Reference behavior of both text pages and data pages. Used in conjunction with Program Sizes data, it lets you examine the size of your application and helps you establish specific memory requirements 

Execution Statistics 

Overall statistics on the execution of the application 

Data Types and Display Options

Each data type can be viewed only in displays appropriate to its nature. Table 2-1 lists the display options associated with each data type:

Table 2-1 Data Types and Corresponding Display Options

Data Type 

Display Option(s) 

Process Times 

Overview 

User Time 

Histogram; Cumulative 

System Wait Time 

Histogram; Cumulative 

System Time 

Histogram; Cumulative 

Text Page Fault Time 

Histogram; Cumulative 

Data Page Fault Time 

Histogram; Cumulative 

Program Sizes 

Histogram 

Address Space 

Address Space 

Execution Statistics 

Statistics