|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.util.Profiler
public class Profiler
A simple CPU profiling tool similar to java -Xrunhprof.
| Constructor Summary | |
|---|---|
Profiler()
|
|
| Method Summary | |
|---|---|
int |
getInterval()
|
java.lang.String |
getTop(int max)
Get the top stack traces. |
void |
run()
|
void |
setInterval(int interval)
|
void |
startCollecting()
Start collecting profiling data. |
void |
stopCollecting()
Stop collecting. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Profiler()
| Method Detail |
|---|
public void startCollecting()
public void stopCollecting()
public void run()
run in interface java.lang.Runnablepublic java.lang.String getTop(int max)
max - the maximum number of results
public int getInterval()
public void setInterval(int interval)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||