
SETTRACE Verb – BBj
For this topic's original documentation, see SETTRACE Verb - Set Line Tracing.
BBj-Specific Information
Description
BBj traces Java calls by listing:
>JAVA: new fully.qualified.classname(arglist) >JAVA: fully.qualified.methodname(arglist) |
MODE |
Description |
---|---|
FLUSH |
Send all pending client-side operations to the client, and wait for the client to report completion, before logging execution time for the line of code and proceeding to the next line. This significantly slows down overall performance, but can be useful when trying to identify performance issues with client-side code. |
PREC=int |
Specifies the timer precision (number of decimal places). The default precision is 2 decimal places; the maximum is 6. |
LEVEL=int | Specifies the call level to be traced. The default is to trace all call levels. |
Version History
Examples
Example 1
0001 SETTRACE 0040 FOR d=1 TO 7 0050 day!.add(DATE(JUL(2001,7,d):"%Dl")) >JAVA: java.util.ArrayList.add((java.lang.Object)"Sunday") returns boolean 0060 NEXT d 0050 day!.add(DATE(JUL(2001,7,d):"%Dl")) >JAVA: java.util.ArrayList.add((java.lang.Object)"Monday") returns boolean 0060 NEXT d 0050 day!.add(DATE(JUL(2001,7,d):"%Dl")) >JAVA: java.util.ArrayList.add((java.lang.Object)"Tuesday")
returns boolean |
Example 2
BBj emits ">JAVA:" trace output even for console-mode commands:
>SETTRACE |
|
Example 3
Increased timer precision:
0010 SETTRACE (0,MODE="timed,prec=3") |