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
ILaunch
asRuntimeDebugClientTarget.getLaunch()
- to
IProject
asRuntimeDebugClientTarget.getProject()
- to
URL
asRuntimeDebugClientTarget.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
monitoringManager
Fields 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 TypeMethodDescriptionboolean
Determines whether this target can be profiled.org.eclipse.core.resources.IProject
getProfiledProject
(BSLModuleIdInternal moduleId) Gets IProject being profiled.void
handleDebugTargetStart
(DebugTargetId runtimeDebugTarget) Notifies the target, that debug session has the 1C:Enterprise Runtime debug target started.void
void
toggleProfiling
(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, 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, wait, wait, wait
Methods inherited from interface org.eclipse.debug.core.model.IDebugElement
getModelIdentifier
Methods 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 benull
process
- the the associated process, cannot benull
scriptVariant
- the script variant of the target debug server configuration, cannot benull
-
-
Method Details
-
canProfile
public boolean canProfile()Description copied from interface:IProfileTarget
Determines whether this target can be profiled.- Specified by:
canProfile
in interfaceIProfileTarget
- Returns:
true
if target can be profiled,false
otherwise.
-
handleDebugTargetStart
public void handleDebugTargetStart(DebugTargetId runtimeDebugTarget) throws org.eclipse.debug.core.DebugException Description copied from interface:IRuntimeEventProcessor
Notifies the target, that debug session has the 1C:Enterprise Runtime debug target started.- Specified by:
handleDebugTargetStart
in interfaceIRuntimeEventProcessor
- Overrides:
handleDebugTargetStart
in 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:IProfileTarget
Switches profiling on if it's off or turns it off if it's on.- Specified by:
toggleProfiling
in interfaceIProfileTarget
- Parameters:
uuid
- UUID of profiling session to be switched on orIDebugConstants.NULL_UUID
if 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:
terminate
in interfaceorg.eclipse.debug.core.model.ITerminate
- Overrides:
terminate
in classRuntimeDebugClientTarget
-
getProfiledProject
public org.eclipse.core.resources.IProject getProfiledProject(BSLModuleIdInternal moduleId) throws org.eclipse.core.runtime.CoreException Description copied from interface:IProfileTarget
Gets IProject being profiled.- Specified by:
getProfiledProject
in interfaceIProfileTarget
- Parameters:
moduleId
- the BSL module ID to get project for, cannot benull
.- Returns:
- Profiled project or
null
if profiling is toggled off. - Throws:
org.eclipse.core.runtime.CoreException
- if this method fails.
-
toString
- Overrides:
toString
in classRuntimeDebugClientTarget
-