public class ThreadsProfiler extends Object implements ComparableProfiler, InstantProfiler
Constructor and Description |
---|
ThreadsProfiler() |
Modifier and Type | Method and Description |
---|---|
long |
compare(long start,
long end)
Compare two values, the value returned will then be used by
Profiler.printValue(long) . |
long |
getCurrentValue()
Gets the current value.
|
String |
getName()
Gets the profiler's name.
|
boolean |
isBiggerPrinted(long v1,
long v2)
Checks whether a value will appear bigger than another once printed.
|
static void |
printStackTraces()
Prints the stack traces to the logger.
|
String |
printValue(long value)
Prints a value with its unit.
|
static String |
vmDump()
Dumps the running thread's stacks.
|
public long compare(long start, long end)
ComparableProfiler
Profiler.printValue(long)
.compare
in interface ComparableProfiler
start
- the initial value.end
- the final value.public long getCurrentValue()
Profiler
getCurrentValue
in interface Profiler
public String getName()
Profiler
public boolean isBiggerPrinted(long v1, long v2)
Profiler
isBiggerPrinted
in interface Profiler
v1
- the first valuev2
- the second valuetrue
if v1 will look > v2.Profiler.printValue(long)
public static void printStackTraces()
vmDump()
public String printValue(long value)
Profiler
printValue
in interface Profiler
value
- the value received from Profiler.getCurrentValue()
.