|
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.Controller
public class Controller
This is JProfiler's MBean implementation. For direct calls from your code in
the same JVM, rather use the Controller
class.
Constructor Summary | |
---|---|
Controller()
|
Method Summary | |
---|---|
void |
addBookmark(java.lang.String description)
Adds a bookmark at the current time. |
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(boolean fullGc,
boolean onlyRecorded,
boolean primitiveData)
Triggers a heap dump. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Controller()
Method Detail |
---|
public void startCPURecording(boolean reset)
startCPURecording
in interface ControllerMBean
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().public void stopCPURecording()
stopCPURecording
in interface ControllerMBean
public void startAllocRecording(boolean reset)
startAllocRecording
in interface ControllerMBean
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.public void stopAllocRecording()
stopAllocRecording
in interface ControllerMBean
public void addBookmark(java.lang.String description)
addBookmark
in interface ControllerMBean
description
- the name of the bookmark, may also be nullpublic void triggerHeapDump(boolean fullGc, boolean onlyRecorded, boolean primitiveData)
triggerHeapDump
in interface ControllerMBean
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, also primitive data will be recorded in JVMPI mode.public void saveSnapshot(java.lang.String file)
saveSnapshot
in interface ControllerMBean
file
- the file to which the snapshot should be saved.public void startThreadProfiling()
startThreadProfiling
in interface ControllerMBean
public void stopThreadProfiling()
stopThreadProfiling
in interface ControllerMBean
public void startVMTelemetryRecording()
startVMTelemetryRecording
in interface ControllerMBean
public void stopVMTelemetryRecording()
stopVMTelemetryRecording
in interface ControllerMBean
public void saveSnapshotOnExit(java.lang.String file)
saveSnapshotOnExit
in interface ControllerMBean
file
- the file to which the snapshot should be saved.
|
JProfiler API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |