| java.lang.Object org.netbeans.lib.profiler.common.Profiler
Profiler | abstract public class Profiler (Code) | | An abstract superclass representing the entire Profiler. The Profiler class should add a "state" on top of the
underlying JFluid engine, providing easier access to its various functions.
A concrete subclass would implement the abstract methods in a specific way (integrated into an IDE, standalone GUI
tool, non-gui tool, etc.).
This class can also be used by any profiling code to obtain the concrete implementation of the Profiler at any given
moment by calling the getDefault () method. Such parts, if they only need to call methods of the Profiler class
and/or any of the underlying libraries (jfluid.jar, jfluid-ui.jar) would then be independent of a concrete form of
the profiler, whether it if GUI/Non-GUI or Integrated/Standalone.
author: Tomas Hurka author: Ian Formanek |
Method Summary | |
final public void | addProfilingStateListener(ProfilingStateListener profilingStateListener) | abstract public boolean | attachToApp(ProfilingSettings profilingSettings, AttachSettings as) | abstract public boolean | connectToStartedApp(ProfilingSettings profilingSettings, SessionSettings sessionSettings) | public static void | debug(String s) | public static void | debug(Exception e) | abstract public void | detachFromApp() | abstract public void | displayError(String message) Displays a user-level message with error. | abstract public void | displayInfo(String message) Displays a user-level message with information. | abstract public void | displayWarning(String message) Displays a user-level message with warning. | final protected void | fireInstrumentationChanged(int oldInstrType, int currentInstrType) | final protected void | fireProfilingStateChange(int oldProfilingState, int newProfilingState) | final protected void | fireThreadsMonitoringChange() | abstract public int | getAgentState(String host, int port, int agentId) Obtains a state for agent listening on given port, checking whether it has the expected agentId. | abstract public SessionSettings | getCurrentSessionSettings() | public static synchronized Profiler | getDefault() | abstract public DefinedFilterSets | getDefinedFilterSets() | abstract public GlobalFilters | getGlobalFilters() | abstract public GlobalProfilingSettings | getGlobalProfilingSettings() | abstract public ProfilingSettings | getLastProfilingSettings() | abstract public String | getLibsDir() | abstract public int | getPlatformArchitecture(String platformName) | abstract public String | getPlatformJDKVersion(String platformName) | abstract public String | getPlatformJavaFile(String platformName) | abstract public int | getProfilingMode() | abstract public int | getProfilingState() | abstract public TargetAppRunner | getTargetAppRunner() | abstract public ThreadsDataManager | getThreadsManager() | abstract public boolean | getThreadsMonitoringEnabled() | abstract public VMTelemetryDataManager | getVMTelemetryManager() | abstract public void | instrumentSelectedRoots(ClientUtils.SourceCodeSelection[] rootMethods) | abstract public void | log(int severity, String message) Silently log a message. | abstract public void | modifyCurrentProfiling(ProfilingSettings profilingSettings) | abstract public void | notifyException(int severity, Exception e) Notify the user about an internal error. | abstract public void | openJavaSource(String classname, String methodName, String methodSig) | public boolean | prepareInstrumentation(ProfilingSettings profilingSettings) | abstract public boolean | profileClass(ProfilingSettings profilingSettings, SessionSettings sessionSettings) | final public boolean | profilingInProgress() | final public void | removeProfilingStateListener(ProfilingStateListener profilingStateListener) | abstract public boolean | rerunAvaliable() | abstract public void | rerunLastProfiling() | abstract public boolean | runCalibration(boolean checkForSaved, String jvmExecutable, String jdkString, int architecture) | abstract public void | setThreadsMonitoringEnabled(boolean enabled) | abstract public boolean | shutdownBlockedAgent(String host, int port, int agentId) | abstract public void | stopApp() |
ERROR | final public static int ERROR(Code) | | Serious problem, application may be crippled.
|
EXCEPTION | final public static int EXCEPTION(Code) | | Something went wrong, though it can be recovered.
|
INFORMATIONAL | final public static int INFORMATIONAL(Code) | | Message that would be useful for tracing events but which need not be a problem.
|
MODE_ATTACH | final public static int MODE_ATTACH(Code) | | |
MODE_PROFILE | final public static int MODE_PROFILE(Code) | | |
PROFILING_INACTIVE | final public static int PROFILING_INACTIVE(Code) | | |
PROFILING_IN_TRANSITION | final public static int PROFILING_IN_TRANSITION(Code) | | |
PROFILING_PAUSED | final public static int PROFILING_PAUSED(Code) | | |
PROFILING_RUNNING | final public static int PROFILING_RUNNING(Code) | | |
PROFILING_STARTED | final public static int PROFILING_STARTED(Code) | | |
PROFILING_STOPPED | final public static int PROFILING_STOPPED(Code) | | |
USER | final public static int USER(Code) | | Something the user should be aware of.
|
WARNING | final public static int WARNING(Code) | | Something went wrong in the software, but it is continuing and the user need not be bothered.
|
detachFromApp | abstract public void detachFromApp()(Code) | | |
displayError | abstract public void displayError(String message)(Code) | | Displays a user-level message with error. Can be run from any thread.
Parameters: message - The error message to display |
displayInfo | abstract public void displayInfo(String message)(Code) | | Displays a user-level message with information. Can be run from any thread.
Parameters: message - The message to display |
displayWarning | abstract public void displayWarning(String message)(Code) | | Displays a user-level message with warning. Can be run from any thread.
Parameters: message - The warning message to display |
fireInstrumentationChanged | final protected void fireInstrumentationChanged(int oldInstrType, int currentInstrType)(Code) | | |
fireProfilingStateChange | final protected void fireProfilingStateChange(int oldProfilingState, int newProfilingState)(Code) | | |
fireThreadsMonitoringChange | final protected void fireThreadsMonitoringChange()(Code) | | |
getPlatformArchitecture | abstract public int getPlatformArchitecture(String platformName)(Code) | | |
getPlatformJDKVersion | abstract public String getPlatformJDKVersion(String platformName)(Code) | | |
getProfilingMode | abstract public int getProfilingMode()(Code) | | |
getProfilingState | abstract public int getProfilingState()(Code) | | |
getThreadsMonitoringEnabled | abstract public boolean getThreadsMonitoringEnabled()(Code) | | |
log | abstract public void log(int severity, String message)(Code) | | Silently log a message. This is not intended for user-level error notification, but rather for
internal messages that would be logged based on the severity level.
Parameters: severity - The severity of the problem Parameters: message - The message to log |
notifyException | abstract public void notifyException(int severity, Exception e)(Code) | | Notify the user about an internal error. This is not intended for user-level error notification, but rather for
internal unexpected problems that usually represent a bug in our code.
Parameters: severity - The severity of the problem Parameters: e - The exception that occured |
profilingInProgress | final public boolean profilingInProgress()(Code) | | |
rerunAvaliable | abstract public boolean rerunAvaliable()(Code) | | |
rerunLastProfiling | abstract public void rerunLastProfiling()(Code) | | |
runCalibration | abstract public boolean runCalibration(boolean checkForSaved, String jvmExecutable, String jdkString, int architecture)(Code) | | |
setThreadsMonitoringEnabled | abstract public void setThreadsMonitoringEnabled(boolean enabled)(Code) | | |
shutdownBlockedAgent | abstract public boolean shutdownBlockedAgent(String host, int port, int agentId)(Code) | | |
stopApp | abstract public void stopApp()(Code) | | |
|
|