danger.util
Class DEBUG
java.lang.Object
|
+--danger.util.DEBUG
- public class DEBUG
- extends java.lang.Object
|
Constructor Summary |
DEBUG()
|
|
Method Summary |
static void |
hexDump(byte[] s,
int offset,
boolean dumpString,
boolean trunc)
|
static void |
p(byte[] b)
|
static void |
p(byte[] b,
int offset,
int length)
|
static void |
p(int i)
|
static void |
p(java.lang.Object o)
|
static void |
p(java.lang.String s)
|
static void |
p(java.lang.String s,
int wrapLength)
|
static void |
profile_begin()
On the device, this will start and stop the profiler for
the running thread. |
static boolean |
profile_empty()
|
static void |
profile_end()
|
static void |
stop()
On the device, this method will cause the running thread to
enter the debugger. |
static int |
timer()
On the device, this will start the microsecond timer,
useful for profiling (if it's not already running) and
return the current value. |
static int |
timer(int lastvalue)
On the device, this will return the elapsed time in
microseconds from 'lastvalue' to the current value
of the microsecond timer. |
static void |
trace_off()
|
static void |
trace_on()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
public DEBUG()
p
public static void p(java.lang.Object o)
p
public static void p(java.lang.String s,
int wrapLength)
p
public static void p(java.lang.String s)
p
public static void p(int i)
p
public static void p(byte[] b,
int offset,
int length)
p
public static void p(byte[] b)
hexDump
public static final void hexDump(byte[] s,
int offset,
boolean dumpString,
boolean trunc)
stop
public static void stop()
- On the device, this method will cause the running thread to
enter the debugger. You can set a breakpoint here to provide
the same behaviour in your favorite IDE
profile_begin
public static void profile_begin()
- On the device, this will start and stop the profiler for
the running thread. Only one thread may be profiled at
a time -- additional profile requests will be ignored
until the active one is stopped
profile_end
public static void profile_end()
profile_empty
public static boolean profile_empty()
timer
public static int timer()
- On the device, this will start the microsecond timer,
useful for profiling (if it's not already running) and
return the current value.
timer
public static int timer(int lastvalue)
- On the device, this will return the elapsed time in
microseconds from 'lastvalue' to the current value
of the microsecond timer.
trace_on
public static void trace_on()
trace_off
public static void trace_off()
Danger Confidential. Copyright © 2000-2003, Danger Inc.