|
JProfiler API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ControllerMBean
This is JProfiler's MBean interface. For direct calls from your code in
the same JVM, rather use the Controller class.
| 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 |
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 |
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 onlyRecorded,
boolean primitiveData,
boolean calculateRetainedSizes)
Triggers a heap dump. |
| Method Detail |
|---|
void startCPURecording(boolean reset)
reset - if true, any previously accumulated CPU profiling
data will be discarded. If false, CPU data will be accumulated
accross pairs of invocations of startCPURecording() and
stopCPURecording().void stopCPURecording()
void startAllocRecording(boolean reset)
reset - 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.void stopAllocRecording()
void addBookmark(java.lang.String description)
description - the name of the bookmark, may also be null
void triggerHeapDumpWithOptions(boolean fullGc,
boolean onlyRecorded,
boolean primitiveData,
boolean calculateRetainedSizes)
fullGc - if true, a full garbage collection will be performed.onlyRecorded - if true, only objects recorded between startAllocRecording and
stopAllocRecording will be inlucded 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.void triggerHeapDump()
triggerHeapDumpWithOptions(boolean, boolean, boolean, boolean)void saveSnapshot(java.lang.String file)
file - the file to which the snapshot should be saved.void startThreadProfiling()
void stopThreadProfiling()
void startVMTelemetryRecording()
void stopVMTelemetryRecording()
void saveSnapshotOnExit(java.lang.String file)
file - the file to which the snapshot should be saved.
void enableTriggerGroup(boolean enabled,
java.lang.String groupId)
throws java.lang.IllegalArgumentException
enabled - if the triggers should be enabledgroupId - the group ID
java.lang.IllegalArgumentException - if no trigger with the specified group ID existsvoid enableTriggers(boolean enabled)
enabled - if the triggers should be enabled
|
JProfiler API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||