Troubleshooting guide

256
BlackBerry Java Development Environment Development Guide
3. Click the Colors tab to change the colors of the source code highlighting.
Generate profile data
1. Set a breakpoint at the start of the section of code that you want to profile.
2. Set a breakpoint at the end of the section of code that you want to profile.
3. On the Debug menu, click Go.
4. In the BlackBerry® device simulator, run the application. The debugger pauses the application when it
reaches the first breakpoint.
5. On the View menu, click Profile.
6. In the profile pane, click Options.
7. Select the type of method attribution, a sorting method, and the type of information that you want to profile.
8. Click OK.
9. In the profile pane, click Clear. This action removes the profiler data and sets the running time of Java™ code
to 0.
10. On the Debug menu, click Go.
11. In the BlackBerry device simulator, run the application. The debugger pauses the application when it reaches
the second breakpoint.
12. If the profile pane is not visible, on the View menu, click Profile.
Sort method by Count The profiler tool sorts methods in the profile pane by the number
of times the application executed the item.
Profiled data (select in “What to profile”) The profiler tool sorts methods in the profile pane by the data you
choose to profile.
What to profile Time (clock ticks) The profiler tool considers execution time (measured in clock
ticks).
Number of objects created The profiler tool considers the number of objects that the
application created.
Size of objects created The profiler tool considers the size of the objects that the
application created.
Number of objects committed The profiler tool considers the number of objects that the
application committed.
Size of objects committed The profiler tool considers the size of the objects that the
application committed.
Number of objects moved to RAM The profiler tool considers the number of objects that the
application moved into memory.
Size of objects moved to RAM The profiler tool considers the size of the objects that the
application moved into memory.
User Counting The profiler tool considers user counting.
Drop-down list Option Description