Class ProfilingUIUtils
java.lang.Object
com._1c.g5.v8.dt.internal.profiling.ui.ProfilingUIUtils
Utilities class for profiling UI.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final double
Public constant of the compare result default threshold value. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
fullCompareStatisticsAvailable
(Object element) Checks if full durability statistics for compare results are computed properly and can be shown.static final boolean
isClientType
(DebugTargetType type) Checks whether the passed debug target type is client-side.
Client-side debug target types includeDebugTargetType.CLIENT
,DebugTargetType.MOBILE_CLIENT
,DebugTargetType.MANAGED_CLIENT
andDebugTargetType.WEB_CLIENT
.static final boolean
Checks whether the passed debug target type is standalone-server-side.static final boolean
isNamed
(IProfilingResult result) Checks whether the profiling result is named or not.
Result is named whenresult.getName()
andresult.getUuid().toString()
are not equal.static final boolean
isServerType
(DebugTargetType type) Checks whether the passed debug target type is server-side.
-
Field Details
-
DEFAULT_THRESHOLD
public static final double DEFAULT_THRESHOLDPublic constant of the compare result default threshold value. Value is 1.0E-4.- See Also:
-
-
Method Details
-
isNamed
Checks whether the profiling result is named or not.
Result is named whenresult.getName()
andresult.getUuid().toString()
are not equal.- Parameters:
result
- Result to check. Cannot benull
.- Returns:
true
if result is named,false
otherwise.
-
isClientType
Checks whether the passed debug target type is client-side.
Client-side debug target types includeDebugTargetType.CLIENT
,DebugTargetType.MOBILE_CLIENT
,DebugTargetType.MANAGED_CLIENT
andDebugTargetType.WEB_CLIENT
. All other debug target types are considered to be server-side or standalone-server-side.- Parameters:
type
- Type to check. Cannot benull
.- Returns:
true
if passed debug target type is client-side,false
otherwise.
-
isServerType
Checks whether the passed debug target type is server-side.- Parameters:
type
- Type to check. Cannot benull
.- Returns:
true
if passed debug target type is server-side,false
otherwise.
-
isMobileManagedServerType
Checks whether the passed debug target type is standalone-server-side.- Parameters:
type
- Type to check. Cannot benull
.- Returns:
true
if passed debug target type is server-side,false
otherwise.
-
fullCompareStatisticsAvailable
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, ifelement
isnull
,false
is returned.
-