Class ProfilingUIUtils

java.lang.Object
com._1c.g5.v8.dt.internal.profiling.ui.ProfilingUIUtils

public final class ProfilingUIUtils extends Object
Utilities class for profiling UI.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final double
    Public constant of the compare result default threshold value.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    Checks if full durability statistics for compare results are computed properly and can be shown.
    static final boolean
    Checks whether the passed debug target type is client-side.
    Client-side debug target types include DebugTargetType.CLIENT, DebugTargetType.MOBILE_CLIENT, DebugTargetType.MANAGED_CLIENT and DebugTargetType.WEB_CLIENT.
    static final boolean
    Checks whether the passed debug target type is standalone-server-side.
    static final boolean
    Checks whether the profiling result is named or not.
    Result is named when result.getName() and result.getUuid().toString() are not equal.
    static final boolean
    Checks whether the passed debug target type is server-side.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT_THRESHOLD

      public static final double DEFAULT_THRESHOLD
      Public constant of the compare result default threshold value. Value is 1.0E-4.
      See Also:
  • Method Details

    • isNamed

      public static final boolean isNamed(IProfilingResult result)
      Checks whether the profiling result is named or not.
      Result is named when result.getName() and result.getUuid().toString() are not equal.
      Parameters:
      result - Result to check. Cannot be null.
      Returns:
      true if result is named, false otherwise.
    • isClientType

      public static final boolean isClientType(DebugTargetType type)
      Checks whether the passed debug target type is client-side.
      Client-side debug target types include DebugTargetType.CLIENT, DebugTargetType.MOBILE_CLIENT, DebugTargetType.MANAGED_CLIENT and DebugTargetType.WEB_CLIENT. All other debug target types are considered to be server-side or standalone-server-side.
      Parameters:
      type - Type to check. Cannot be null.
      Returns:
      true if passed debug target type is client-side, false otherwise.
    • isServerType

      public static final boolean isServerType(DebugTargetType type)
      Checks whether the passed debug target type is server-side.
      Parameters:
      type - Type to check. Cannot be null.
      Returns:
      true if passed debug target type is server-side, false otherwise.
    • isMobileManagedServerType

      public static final boolean isMobileManagedServerType(DebugTargetType type)
      Checks whether the passed debug target type is standalone-server-side.
      Parameters:
      type - Type to check. Cannot be null.
      Returns:
      true if passed debug target type is server-side, false otherwise.
    • fullCompareStatisticsAvailable

      public static boolean fullCompareStatisticsAvailable(Object element)
      Checks if full durability statistics for compare results are computed properly and can be shown.
      Parameters:
      element - Element to check.
      Returns:
      true if full durability statistics are computed properly, false otherwise. Also, if element is null, false is returned.