Package com._1c.g5.v8.dt.debug.profiling
Class ProfilingRuntimeDebugClientTarget
- java.lang.Object
-
- org.eclipse.core.runtime.PlatformObject
-
- com._1c.g5.v8.dt.internal.debug.core.model.RuntimeDebugElement
-
- com._1c.g5.v8.dt.internal.debug.core.model.RuntimeDebugClientTarget
-
- com._1c.g5.v8.dt.debug.profiling.ProfilingRuntimeDebugClientTarget
-
- All Implemented Interfaces:
IDebugTargetsConfigure,IRuntimeDebugClientTarget,IRuntimeDebugElement,IRuntimeEventProcessor,IProfileTarget,org.eclipse.core.runtime.IAdaptable,org.eclipse.debug.core.IBreakpointListener,org.eclipse.debug.core.model.IDebugElement,org.eclipse.debug.core.model.IDebugTarget,org.eclipse.debug.core.model.IDisconnect,org.eclipse.debug.core.model.IMemoryBlockRetrieval,org.eclipse.debug.core.model.ISuspendResume,org.eclipse.debug.core.model.ITerminate
public class ProfilingRuntimeDebugClientTarget extends com._1c.g5.v8.dt.internal.debug.core.model.RuntimeDebugClientTarget implements IProfileTarget
1C:Enterprise Runtime Debug client target. Overrides the standard one and adds profiling functionality.
-
-
Constructor Summary
Constructors Constructor Description ProfilingRuntimeDebugClientTarget(org.eclipse.debug.core.ILaunch launch, org.eclipse.debug.core.model.IProcess process, ScriptVariant scriptVariant)Constructor ofProfilingRuntimeDebugClientTarget.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanProfile()Determines whether this target can be profiled.org.eclipse.core.resources.IProjectgetProfiledProject(BSLModuleIdInternal moduleId)Gets IProject being profiled.voidterminate()voidtoggleProfiling(UUID uuid)Switches profiling on if it's off or turns it off if it's on.-
Methods inherited from class com._1c.g5.v8.dt.internal.debug.core.model.RuntimeDebugClientTarget
addRunToLineBreakpoint, addThread, addThreadGroupListener, attachRuntimeDebugTarget, breakpointAdded, breakpointChanged, breakpointRemoved, canConfigure, canDisconnect, canResume, canSuspend, canTerminate, changeExceptionBreakpoint, changeLineBreakpoint, checkTerminating, configureDebugArea, connect, createRuntimeEventDispatcher, detachRuntimeDebugTarget, disconnect, dispose, eraseThreadNameSuffix, eraseThreadsNameSuffixes, findThreadGroup, getAdapter, getAutoconnectDebugTargets, getBreakpoints, getDebugAreaName, getDebugAreas, getDebugServerUrl, getEvaluationEngine, getExceptionPresentation, getExtensionProject, getExternalObjectProject, getLaunch, getLineBreakpoint, getMemoryBlock, getModuleInformation, getModuleLocator, getModulesBreakpoints, getName, getProcess, getProject, getProject, getResourceBreakpoints, getRuntimeDebugClient, getRuntimeDebugTargets, getRuntimeEventDispatcher, getScriptVariant, getThread, getThreadGroups, getThreads, getValuesFactory, getVariablesFactory, getVersion, handleDebugTargetStart, handleDebugTargetTerminate, handleShowErrorRequest, handleShowMetadataObjectRequest, handleSuspension, handleSuspension, handleSuspensionByConditionalException, handleSuspensionByException, handleTerminate, hasThreads, init, installDeferredBreakpoints, isDisconnected, isSuspended, isTerminated, isTerminating, openMetadataObject, removeThread, resume, resumed, resumeThread, runtimeDebugTargetDisconnected, runtimeDebugTargetsResumed, setAutoconnectDebugTargets, setDebugAreas, stepInto, stepOver, stepReturn, supportsBreakpoint, supportsStorageRetrieval, suspend, suspended
-
Methods inherited from class com._1c.g5.v8.dt.internal.debug.core.model.RuntimeDebugElement
fireChangeEvent, fireCreationEvent, fireEvent, firePreTerminateEvent, fireResumeEvent, fireSuspendEvent, fireTerminateEvent, getDebugTarget, getModelIdentifier
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.dt.debug.core.model.IRuntimeDebugElement
getDebugTarget
-
-
-
-
Constructor Detail
-
ProfilingRuntimeDebugClientTarget
public ProfilingRuntimeDebugClientTarget(org.eclipse.debug.core.ILaunch launch, org.eclipse.debug.core.model.IProcess process, ScriptVariant scriptVariant)Constructor ofProfilingRuntimeDebugClientTarget.- Parameters:
launch- the associated launch, cannot benullprocess- the the associated process, cannot benullscriptVariant- the script variant of the target debug server configuration, cannot benull
-
-
Method Detail
-
canProfile
public boolean canProfile()
Description copied from interface:IProfileTargetDetermines whether this target can be profiled.- Specified by:
canProfilein interfaceIProfileTarget- Returns:
trueif target can be profiled,falseotherwise.
-
toggleProfiling
public void toggleProfiling(UUID uuid) throws org.eclipse.debug.core.DebugException
Description copied from interface:IProfileTargetSwitches profiling on if it's off or turns it off if it's on.- Specified by:
toggleProfilingin interfaceIProfileTarget- Parameters:
uuid- UUID of profiling session to be switched on orIDebugConstants.NULL_UUIDif it is to be turned off. UUID is needed to define the profiling session and avoid mixing results of several profiling sessions.- Throws:
org.eclipse.debug.core.DebugException- if this method fails.- See Also:
IDebugConstants
-
terminate
public void terminate() throws org.eclipse.debug.core.DebugException- Specified by:
terminatein interfaceorg.eclipse.debug.core.model.ITerminate- Overrides:
terminatein classcom._1c.g5.v8.dt.internal.debug.core.model.RuntimeDebugClientTarget- Throws:
org.eclipse.debug.core.DebugException
-
getProfiledProject
public org.eclipse.core.resources.IProject getProfiledProject(BSLModuleIdInternal moduleId) throws org.eclipse.core.runtime.CoreException
Description copied from interface:IProfileTargetGets IProject being profiled.- Specified by:
getProfiledProjectin interfaceIProfileTarget- Parameters:
moduleId- the BSL module ID to get project for, cannot benull.- Returns:
- Profiled project or
nullif profiling is toggled off. - Throws:
org.eclipse.core.runtime.CoreException- if this method fails.
-
-