|
JProfiler API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jprofiler.api.agent.mbean.RemoteController
public class RemoteController
This is JProfiler's MBean implementation. For direct calls from your code in
the same JVM, rather use the Controller class.
| Constructor Summary | |
|---|---|
RemoteController()
|
|
| Method Summary | |
|---|---|
void |
addBookmark(java.lang.String description)
Adds a bookmark at the current time. |
void |
enableTriggerGroup(boolean enabled,
java.lang.String groupId)
Enable or disable all triggers with a specified group ID. |
void |
enableTriggers(boolean enabled)
Enable or disable all triggers. |
void |
saveSnapshot(java.lang.String file)
Saves a snapshot of all profiling data to disk. |
void |
saveSnapshotOnExit(java.lang.String file)
Saves a snapshot of all profiling data to disk when the VM shuts down. |
void |
startAllocRecording(boolean reset)
Starts recording of memory allocations. |
void |
startCPURecording(boolean reset)
Starts recording CPU data. |
void |
startMethodStatsRecording()
Starts method statistics recording. |
void |
startMonitorRecording()
Start recording of monitor usage with default thresholds of 100 microseconds for blocking events and 100 ms for waiting events. |
void |
startMonitorRecording(int blockedThreshold,
int waitingThreshold)
Start recording of monitor usage. |
void |
startProbeRecording(java.lang.String probeName,
boolean events)
|
void |
startThreadProfiling()
Starts recording of thread states and monitor usage. |
void |
startVMTelemetryRecording()
Starts recording of VM telemetry data. |
void |
stopAllocRecording()
Stops recording of memory allocations. |
void |
stopCPURecording()
Stops CPU recording. |
void |
stopMethodStatsRecording()
Stops method statistics recording. |
void |
stopMonitorRecording()
Stop recording of monitor usage. |
void |
stopProbeRecording(java.lang.String probeName)
|
void |
stopThreadProfiling()
Stops recording of thread states and monitor usage. |
void |
stopVMTelemetryRecording()
Stops recording of VM telemetry data. |
void |
triggerHeapDump()
Triggers a heap dump. |
void |
triggerHeapDumpWithOptions(boolean fullGc,
boolean selectRecorded,
boolean primitiveData,
boolean calculateRetainedSizes)
Triggers a heap dump. |
void |
triggerThreadDump()
Trigger a thread dump. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteController()
| Method Detail |
|---|
public void startCPURecording(boolean reset)
startCPURecording in interface RemoteControllerMBeanreset - if true, any previously accumulated CPU profiling
data will be discarded. If false, CPU data will be accumulated
across pairs of invocations of startCPURecording() and
stopCPURecording().public void stopCPURecording()
stopCPURecording in interface RemoteControllerMBeanpublic void startAllocRecording(boolean reset)
startAllocRecording in interface RemoteControllerMBeanreset - if true, any previously recorded profiling
data will be discarded. If false, allocations within all
pairs of invocations of startAllocRecording() and
stopAllocRecording() will be recorded.public void stopAllocRecording()
stopAllocRecording in interface RemoteControllerMBeanpublic void addBookmark(java.lang.String description)
addBookmark in interface RemoteControllerMBeandescription - the name of the bookmark, may also be null
public void triggerHeapDumpWithOptions(boolean fullGc,
boolean selectRecorded,
boolean primitiveData,
boolean calculateRetainedSizes)
triggerHeapDumpWithOptions in interface RemoteControllerMBeanfullGc - if true, a full garbage collection will be performed.selectRecorded - if true, only objects recorded between startAllocRecording and
stopAllocRecording will be included in the dump.primitiveData - if true, primitive data will also be recorded. This has no effect for JVMTI 1.0 (Java 5).calculateRetainedSizes - if true, the retained sizes of all objects will be calculated. This requires fullGc=true.public void triggerHeapDump()
triggerHeapDump in interface RemoteControllerMBeanRemoteControllerMBean.triggerHeapDumpWithOptions(boolean, boolean, boolean, boolean)public void saveSnapshot(java.lang.String file)
saveSnapshot in interface RemoteControllerMBeanfile - the file to which the snapshot should be saved.public void startThreadProfiling()
startThreadProfiling in interface RemoteControllerMBeanpublic void stopThreadProfiling()
stopThreadProfiling in interface RemoteControllerMBeanpublic void startVMTelemetryRecording()
startVMTelemetryRecording in interface RemoteControllerMBeanpublic void stopVMTelemetryRecording()
stopVMTelemetryRecording in interface RemoteControllerMBeanpublic void saveSnapshotOnExit(java.lang.String file)
saveSnapshotOnExit in interface RemoteControllerMBeanfile - the file to which the snapshot should be saved.
public void enableTriggerGroup(boolean enabled,
java.lang.String groupId)
throws java.lang.IllegalArgumentException
enableTriggerGroup in interface RemoteControllerMBeanenabled - if the triggers should be enabledgroupId - the group ID
java.lang.IllegalArgumentException - if no trigger with the specified group ID existspublic void enableTriggers(boolean enabled)
enableTriggers in interface RemoteControllerMBeanenabled - if the triggers should be enabledpublic void startMethodStatsRecording()
startMethodStatsRecording in interface RemoteControllerMBeanpublic void stopMethodStatsRecording()
stopMethodStatsRecording in interface RemoteControllerMBeanpublic void startMonitorRecording()
startMonitorRecording in interface RemoteControllerMBean
public void startMonitorRecording(int blockedThreshold,
int waitingThreshold)
startMonitorRecording in interface RemoteControllerMBeanblockedThreshold - the recording threshold for blocking events in microseconds.waitingThreshold - the recording threshold for waiting events in microseconds.public void stopMonitorRecording()
stopMonitorRecording in interface RemoteControllerMBeanpublic void triggerThreadDump()
triggerThreadDump in interface RemoteControllerMBean
public void startProbeRecording(java.lang.String probeName,
boolean events)
startProbeRecording in interface RemoteControllerMBeanpublic void stopProbeRecording(java.lang.String probeName)
stopProbeRecording in interface RemoteControllerMBean
|
JProfiler API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||