| Constructor and Description |
|---|
Profiler() |
| Modifier and Type | Method and Description |
|---|---|
static Instrumentation |
getInstrumentation()
Get the instrumentation object if started as an agent.
|
String |
getTop(int count)
Get the top stack traces.
|
static void |
premain(String agentArgs,
Instrumentation inst)
This method is called when the agent is installed.
|
void |
run() |
void |
startCollecting()
Start collecting profiling data.
|
void |
stopCollecting()
Stop collecting.
|
public static void premain(String agentArgs, Instrumentation inst)
agentArgs - the agent argumentsinst - the instrumentation objectpublic static Instrumentation getInstrumentation()
public void startCollecting()
public void stopCollecting()
public String getTop(int count)
count - the maximum number of stack tracesCopyright © 2012 JBoss by Red Hat. All Rights Reserved.