Method Summary |
|
public synchronized boolean | cpuResultsExist() |
public boolean | currentInstrTypeIsMemoryProfiling() |
public boolean | currentInstrTypeIsRecursiveCPUProfiling() |
public void | deinstrumentMemoryProfiledClasses(boolean[] unprofiledClassStatusArray) Removes instrumentation for classes with ids such that unprofiledClassStatusArray[id] == false. |
public synchronized void | detachFromTargetJVM() |
public boolean | establishConnectionWithServer(int attachMode, boolean calibrationOnlyRun) |
public boolean | forceObtainedResultsDump() Tells the server to send the contents of its data buffer to the tool immediately, no matter whether it's
full or not. |
public boolean | forceObtainedResultsDump(boolean liveResults, int retries) |
public boolean | forceObtainedResultsDump(boolean liveResults) Tells the server to send the contents of its data buffer to the tool immediately, no matter whether it's
full or not. |
public synchronized int[] | getAllocatedObjectsCountResults() Returns the array where element at index I is the total number of allocated objects for the class with I id. |
public synchronized CPUResultsSnapshot | getCPUProfilingResultsSnapshot() |
public synchronized CPUResultsSnapshot | getCPUProfilingResultsSnapshot(boolean dump) |
public synchronized CodeRegionResultsSnapshot | getCodeRegionProfilingResultsSnapshot() |
public int | getCurrentAgentId() |
public int | getCurrentInstrType() |
public synchronized byte[] | getCurrentThreadsLivenessStatus() Determine which of the currently tracked threads are dead or alive. |
public synchronized int | getDefiningClassLoaderId(String className, int initiatingLoaderId) For the class with the given name and the initiating class loader (see Java Language/JVM Spec for definitions),
find out and return the defining class loader. |
public FlatProfileProvider | getFlatProfileProvider() |
public long | getInstrProcessingTime() |
public synchronized InternalStatsResponse | getInternalStats() |
public CCTResultsFilter | getMarkFilter() |
public MemoryCCTProvider | getMemoryCCTProvider() |
public synchronized MemoryResultsSnapshot | getMemoryProfilingResultsSnapshot() |
public synchronized MemoryResultsSnapshot | getMemoryProfilingResultsSnapshot(boolean dump) |
public Marker | getMethodMarker() |
public synchronized String[][] | getMethodNamesForJMethodIds(int[] methodIds) Called to obtain method names for jMethodIds, that we do not know method names of. |
public synchronized MonitoredData | getMonitoredData() |
public ProfilerEngineSettings | getSettings() |
public ObjectInputStream | getSocketInputStream() We are using this essentially to let user know when the longest part of what happens after hitting e.g.
"Instrument Object Allocation", is complete. |
public ProfilingSessionStatus | getStatus() |
public TimeCollector | getTimeCollector() |
public void | initiateCodeRegionInstrumentation(ClientUtils.SourceCodeSelection[] s) This should be called to initiate code region instrumentation for specified code region.
The data is remembered or sent to the server immediately if TA is already running. |
public void | initiateMemoryProfInstrumentation(int instrType) This should be called to initiate memory profiling instrumentation of specified type (object allocation or
object liveness).
The data is remembered or sent to the server immediately if TA is already running. |
public void | initiateRecursiveCPUProfInstrumentation(ClientUtils.SourceCodeSelection[] s) This should be called to initiate CPU profiling instrumentation starting from specified root method(s).
The data is remembered or sent to the server immediately if TA is already running. |
public synchronized boolean | memoryResultsExist() |
public void | registerCPUCCTProvider(CPUCCTProvider provider) |
public void | registerFlatProfileProvider(FlatProfileProvider provider) |
public void | registerMarkFilter(CCTResultsFilter filter) |
public void | registerMemoryCCTProvider(MemoryCCTProvider provider) |
public void | registerTimeCollector(TimeCollector collector) |
public void | removeAllInstrumentation(boolean cleanupClient) |
public void | removeAllInstrumentation() |
public void | resetClientData() If the target VM is terminated, cleans up all localy cached data so that they can be
GCd from the memory. |
public synchronized void | resetProfilerCollectors() |
public synchronized void | resumeTargetAppThreads() |
public synchronized void | runGC() |
public void | sendSetInstrumentationParamsCmd(boolean changeableOnly) |
public void | setCurrentInstrType(int type) |
public boolean | startTargetApp(boolean sendExplicitStartCommand) This method is called both when the application is started by the tool, and when the tool attaches to a running
application. |
public synchronized void | suspendTargetAppThreads() |
public synchronized boolean | takeHeapDump(String outputFile) |
public boolean | targetAppIsRunning() |
public boolean | targetJVMIsAlive() |
public synchronized void | terminateTargetJVM() |