Class 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.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com._1c.g5.v8.dt.internal.debug.core.model.RuntimeDebugClientTarget

        com._1c.g5.v8.dt.internal.debug.core.model.RuntimeDebugClientTarget.State
    • Field Summary

      • Fields inherited from class com._1c.g5.v8.dt.internal.debug.core.model.RuntimeDebugClientTarget

        TRACE_OPTION
      • Fields inherited from class com._1c.g5.v8.dt.internal.debug.core.model.RuntimeDebugElement

        target
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canProfile()
      Determines whether this target can be profiled.
      org.eclipse.core.resources.IProject getProfiledProject​(BSLModuleIdInternal moduleId)
      Gets IProject being profiled.
      void terminate()  
      void toggleProfiling​(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, 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 interface org.eclipse.debug.core.model.IDebugElement

        getModelIdentifier
    • Constructor Detail

      • ProfilingRuntimeDebugClientTarget

        public ProfilingRuntimeDebugClientTarget​(org.eclipse.debug.core.ILaunch launch,
                                                 org.eclipse.debug.core.model.IProcess process,
                                                 ScriptVariant scriptVariant)
                                          throws org.eclipse.core.runtime.CoreException
        Parameters:
        launch - the associated launch, cannot be null
        process - the the associated process, cannot be null
        scriptVariant - the script variant of the target debug server configuration, cannot be null
        Throws:
        org.eclipse.core.runtime.CoreException
    • Method Detail

      • canProfile

        public boolean canProfile()
        Description copied from interface: IProfileTarget
        Determines whether this target can be profiled.
        Specified by:
        canProfile in interface IProfileTarget
        Returns:
        true if target can be profiled, false otherwise.
      • toggleProfiling

        public void toggleProfiling​(UUID uuid)
                             throws org.eclipse.debug.core.DebugException
        Description copied from interface: IProfileTarget
        Switches profiling on if it's off or turns it off if it's on.
        Specified by:
        toggleProfiling in interface IProfileTarget
        Parameters:
        uuid - UUID of profiling session to be switched on or IDebugConstants.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:
        IDebugConstants
      • terminate

        public void terminate()
                       throws org.eclipse.debug.core.DebugException
        Specified by:
        terminate in interface org.eclipse.debug.core.model.ITerminate
        Overrides:
        terminate in class com._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: IProfileTarget
        Gets IProject being profiled.
        Specified by:
        getProfiledProject in interface IProfileTarget
        Parameters:
        moduleId - the BSL module ID to get project for, cannot be null.
        Returns:
        Profiled project or null if profiling is toggled off.
        Throws:
        org.eclipse.core.runtime.CoreException - if this method fails.