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 RuntimeDebugClientTarget
implements IProfileTarget
1C:Enterprise Runtime Debug client target.
Overrides the standard one and adds profiling functionality.
Instances can be adapted as the following:
- to
ILaunchasRuntimeDebugClientTarget.getLaunch() - to
IProjectasRuntimeDebugClientTarget.getProject() - to
URLasRuntimeDebugClientTarget.getDebugServerUrl()
-
Nested Class Summary
Nested classes/interfaces inherited from class com._1c.g5.v8.dt.internal.debug.core.model.RuntimeDebugClientTarget
RuntimeDebugClientTarget.State -
Field Summary
Fields inherited from class com._1c.g5.v8.dt.internal.debug.core.model.RuntimeDebugClientTarget
monitoringManagerFields inherited from class com._1c.g5.v8.dt.internal.debug.core.model.RuntimeDebugElement
target -
Constructor Summary
ConstructorsConstructorDescriptionProfilingRuntimeDebugClientTarget(org.eclipse.debug.core.ILaunch launch, org.eclipse.debug.core.model.IProcess process, ScriptVariant scriptVariant) Constructor ofProfilingRuntimeDebugClientTarget. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines whether this target can be profiled.org.eclipse.core.resources.IProjectgetProfiledProject(BSLModuleIdInternal moduleId) Gets IProject being profiled.voidhandleDebugTargetStart(DebugTargetId runtimeDebugTarget) Notifies the target, that debug session has the 1C:Enterprise Runtime debug target started.voidvoidtoggleProfiling(UUID uuid) Switches profiling on if it's off or turns it off if it's on.toString()Methods inherited from class com._1c.g5.v8.dt.internal.debug.core.model.RuntimeDebugClientTarget
addRunToLineBreakpoint, addThreadGroupListener, attachRuntimeDebugTarget, breakpointAdded, breakpointChanged, breakpointRemoved, canConfigure, canDisconnect, canResume, canSuspend, canTerminate, changeExceptionBreakpoint, changeLineBreakpoint, checkTerminating, configure, configureDebugArea, connect, createRuntimeEventDispatcher, createThreadForDebugTarget, detachRuntimeDebugTarget, disconnect, dispose, eraseThreadNameSuffix, eraseThreadsNameSuffixes, findThreadGroup, getAdapter, getApplication, getAutoconnectDebugTargets, getBreakpoints, getDebugAreaName, getDebugAreas, getDebugServerUrl, getEvaluationEngine, getExceptionPresentation, getExtensionProject, getExternalObjectProject, getLaunch, getLineBreakpoint, getMemoryBlock, getModuleInformation, getModuleLocator, getModulesBreakpoints, getName, getProcess, getProject, getProject, getResourceBreakpoints, getRuntimeDebugClient, getRuntimeDebugTargets, getScriptVariant, getThread, getThreadGroups, getThreads, getValuesFactory, getVariablesFactory, getVersion, handleCallStackFormed, handleDebugTargetTerminate, handleShowErrorRequest, handleShowMetadataObjectRequest, handleSuspensionByConditionalException, handleSuspensionByException, hasThreads, init, installDeferredBreakpoints, isDisconnected, isSuspended, isTerminated, isTerminating, openMetadataObject, removeThread, resume, resumed, resumeThread, runtimeDebugTargetDisconnected, runtimeDebugTargetsResumed, setAutoconnectDebugTargets, setDebugAreas, stepInto, stepOver, stepReturn, stopEventProceeding, supportsBreakpoint, supportsStorageRetrieval, suspend, suspendedMethods inherited from class com._1c.g5.v8.dt.internal.debug.core.model.RuntimeDebugElement
fireChangeEvent, fireCreationEvent, fireEvent, firePreTerminateEvent, fireResumeEvent, fireSuspendEvent, fireTerminateEvent, getDebugTarget, getModelIdentifierMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.debug.core.model.IDebugElement
getModelIdentifierMethods inherited from interface com._1c.g5.v8.dt.debug.core.model.IRuntimeDebugElement
getDebugTarget
-
Constructor Details
-
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 Details
-
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.
-
handleDebugTargetStart
public void handleDebugTargetStart(DebugTargetId runtimeDebugTarget) throws org.eclipse.debug.core.DebugException Description copied from interface:IRuntimeEventProcessorNotifies the target, that debug session has the 1C:Enterprise Runtime debug target started.- Specified by:
handleDebugTargetStartin interfaceIRuntimeEventProcessor- Overrides:
handleDebugTargetStartin classRuntimeDebugClientTarget- Parameters:
runtimeDebugTarget- started 1C:Enterprise Runtime debug target, cannot benull- Throws:
org.eclipse.debug.core.DebugException- if handling fails
-
toggleProfiling
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:
-
terminate
public void terminate()- Specified by:
terminatein interfaceorg.eclipse.debug.core.model.ITerminate- Overrides:
terminatein classRuntimeDebugClientTarget
-
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.
-
toString
- Overrides:
toStringin classRuntimeDebugClientTarget
-