Class ProfilingRuntimeDebugClientTarget

java.lang.Object
org.eclipse.core.runtime.PlatformObject
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:

  • Constructor Details

    • ProfilingRuntimeDebugClientTarget

      public ProfilingRuntimeDebugClientTarget(org.eclipse.debug.core.ILaunch launch, org.eclipse.debug.core.model.IProcess process, ScriptVariant scriptVariant)
      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
  • Method Details

    • 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.
    • 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 interface IRuntimeEventProcessor
      Overrides:
      handleDebugTargetStart in class RuntimeDebugClientTarget
      Parameters:
      runtimeDebugTarget - started 1C:Enterprise Runtime debug target, cannot be null
      Throws:
      org.eclipse.debug.core.DebugException - if handling fails
    • 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:
    • terminate

      public void terminate()
      Specified by:
      terminate in interface org.eclipse.debug.core.model.ITerminate
      Overrides:
      terminate in class RuntimeDebugClientTarget
    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class RuntimeDebugClientTarget