Exit Print View

Java Platform Micro Edition Software Development Kit Version 3.0

Get PDF Book Print View

Document Information

Getting Started

Java ME Platform SDK Features

Using Sample Projects

Creating and Editing Projects

Viewing and Editing Project Properties

Running Projects in the Emulator

Searching the WURFL Device Database

Finding Files in the Multiple User Environment

Profiling Applications

Saving Profiler Data

Loading Profiler Data

Viewing Profiler Data

Saving Customized Snapshots and Images

Loading a Customized Snapshot

Monitoring Network Traffic

Lightweight UI Toolkit

Security and MIDlet Signing

BD-J Support

CLDC Emulation on a Windows Mobile Device

Installing CLDC Emulation on a Windows Mobile Emulator

On-device Debugging

Command Line Reference


JSR Support

JSR 75: PDA Optional Packages

JSR 82: Bluetooth and OBEX Support

JSR 135: Mobile Media API Support

JSR 172: Web Services Support

JSR 177: Smart Card Security (SATSA)

JSR 179: Location API Support

JSRs 184, 226, and 239: Graphics Capabilities

JSR 205: Wireless Messaging API (WMA) Support

JSR 211: Content Handler API (CHAPI)

JSR 238: Mobile Internationalization API (MIA)

JSR 229: Payment API Support

JSR 256: Mobile Sensor API Support


Viewing Profiler Data

This procedure views data collected with the Profiler. See Saving Profiler Data. The data can be seen immediately after it is collected, as described in Saving Profiler Data, or when it is imported, as described in Loading Profiler Data.

Note - The profiling values obtained from the emulator do not reflect actual values on a real device.

Profiler tab

You can change the granularity of the results. In the toolbar at the top of the tab, make a selection from the View menu.

Method Level View (default). Results are displayed according to the fully-qualified method names.

Class Level View. Results for all methods of the same class are aggregated in a single entry.

Package Level View. All methods of classes that belong to the same package are aggregated.

Click any column label to sort based on its values. To remove a column from the display, click the table icon above the scroll bar and uncheck the column name.

The above screenshot shows a view that combines the Call Tree and Hot Spots. Click the tabs along the bottom to see different views:

Call Tree. This tab displays a call tree showing the method call chain and the time/number of invocations for executing threads and methods in each context. (A context is a unique chain of method calls leading to the method’s invocation.)

Hot Spots. This tab shows the total execution time and number of invocations for each method, irrespective of the context. It also includes the Method Name Filter Field, which filters based on the first column. To select the filtering parameters, click the filter icon and choose from the menu.

filter parameter choices

Enter a search string in the filter field. You can enter multiple values separated by spaces. To apply the filter, click the green check. To restore the unfiltered data, clear the filter field by clicking the red symbol.

Combined.This tab displays the Call Tree information in the upper part of the window and the Hot Spot data in the lower part.

Info. This tab displays the time the snapshot was taken, where it is saved, and the configuration of the profiling session.

You can right-click a profiling result to access additional utilities. The actions you see depend upon the currently selected view.

See Saving Profiler Data, Loading Profiler Data and Saving Customized Snapshots and Images.