Java Profiler 7.5 Help
Getting started
Running applications with profiler
Profiling J2ME applicationsProfiling of Java 2 Platform, Micro Edition (J2ME) applications is an experimental feature of YourKit Java Profiler.
Currently, only memory profiling is available.
Requirements
We have tested this feature with Sun's Wireless Toolkit 2.2 emulator. The approach should work with other emulators as well, and even with real devices, if JDWP proxy is available. We would much appreciate any comments, suggestions and reports in this regard. Please send them to support@yourkit.com.
To profile a J2ME application, perform the following steps:
Step 1: Start emulator with appropriate options
For example, the following string:
emulator -Xdescriptor:Demo3D.jad
should be modified to look as follows:
In this example, port 10000 is chosen. You can choose a different port if necessary. In the next step, you will be asked for this chosen port number.
Note: The profiled application will be suspended until you connect to it from the profiler.
Step 2: Connect to profiled application
On the Welcome screen (or via File | Open Profiling Session...), select "Connect to J2ME application...".
Step 3: Capture snapshots when necessary
Capture and open memory snapshots as and when necessary.
Note: If you close a J2ME profiling session, you will not be able to connect to the same application again until it is restarted.