- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for NumberUtil (0.2 sec)
-
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/util/NumberUtil.java
import static java.math.RoundingMode.FLOOR; import static java.util.Arrays.asList; import static java.util.Collections.unmodifiableList; /** * Utility methods for working with numbers */ public class NumberUtil { public static final int BASE_LOG2 = 10; public static final int KIB_BASE = 1 << BASE_LOG2; private static final int FRACTIONAL_DIGIT_COUNT = 1;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 3.3K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/exec/LogAndCheckHealth.java
if (nextBuildNum == 1) { return String.format("Starting build in new daemon [memory: %s]", NumberUtil.formatBytes(Runtime.getRuntime().maxMemory())); } else { return String.format("Starting %s build in daemon %s", NumberUtil.ordinal(nextBuildNum), stats.getHealthInfo()); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 3K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/health/DaemonHealthStats.java
message.append(format(", heap usage: %s%% of %s", heapStats.getUsedPercent(), NumberUtil.formatBytes(heapStats.getMaxSizeInBytes()))); } GarbageCollectionStats nonHeapStats = gcMonitor.getNonHeapStats(); if (nonHeapStats.isValid()) { message.append(format(", non-heap usage: %s%% of %s", nonHeapStats.getUsedPercent(), NumberUtil.formatBytes(nonHeapStats.getMaxSizeInBytes()))); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun May 05 22:23:18 UTC 2024 - 4.3K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/health/LowMemoryDaemonExpirationStrategy.java
long freeMem = memory.getFree(); if (freeMem < memoryThresholdInBytes) { LOGGER.info("after free system {} memory ({}) fell below threshold of {}", memory.getName(), NumberUtil.formatBytes(freeMem), NumberUtil.formatBytes(memoryThresholdInBytes)); return new DaemonExpirationResult( GRACEFUL_EXPIRE, "to reclaim system " + memory.getName() + " memory" );
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 5K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/util/NumberUtilTest.groovy
* limitations under the License. */ package org.gradle.internal.util import spock.lang.Specification import static org.gradle.internal.util.NumberUtil.formatBytes import static org.gradle.internal.util.NumberUtil.percentOf class NumberUtilTest extends Specification { def "knows percentage"() { expect: percentOf(0, 100) == 0 percentOf(1, 100) == 1
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 5.1K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/internal/resource/transfer/ResourceOperation.java
*/ package org.gradle.internal.resource.transfer; import org.gradle.internal.operations.BuildOperationContext; import static org.gradle.internal.util.NumberUtil.KIB_BASE; import static org.gradle.internal.util.NumberUtil.formatBytes; public class ResourceOperation { public enum Type { download, upload; } private final BuildOperationContext context;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 2.2K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/health/gc/GarbageCollectionStats.java
* limitations under the License. */ package org.gradle.launcher.daemon.server.health.gc; import com.google.common.collect.Iterables; import org.gradle.internal.util.NumberUtil; import java.util.Collection; import java.util.concurrent.TimeUnit; public class GarbageCollectionStats { private final double gcRate; private final int usedPercent;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 4K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/health/HealthExpirationStrategy.java
: "The memory settings for this project must be adjusted to avoid this failure"; String maxHeap = heapStats.isValid() ? NumberUtil.formatBytes(heapStats.getMaxSizeInBytes()) : "unknown"; String maxMetaspace = nonHeapStats.isValid() ? NumberUtil.formatBytes(nonHeapStats.getMaxSizeInBytes()) : "unknown";
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 06:47:38 UTC 2024 - 7.9K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/fingerprint/ConfigurationCacheFingerprintChecker.kt
import org.gradle.internal.extensions.stdlib.uncheckedCast import org.gradle.internal.file.FileType import org.gradle.internal.hash.HashCode import org.gradle.internal.serialize.graph.ReadContext import org.gradle.internal.util.NumberUtil.ordinal import org.gradle.util.Path import java.io.File import java.net.URI import java.util.function.Consumer internal typealias InvalidationReason = String internal
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:30 UTC 2024 - 17.3K bytes - Viewed (0) -
testing/architecture-test/src/changes/archunit-store/internal-api-nullability.txt
Class <org.gradle.internal.util.NumberUtil> is not annotated (directly or via its package) with @org.gradle.api.NonNullApi in (NumberUtil.java:0) Class <org.gradle.internal.util.PropertiesUtils> is not annotated (directly or via its package) with @org.gradle.api.NonNullApi in (PropertiesUtils.java:0)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 11 09:51:15 UTC 2024 - 967.9K bytes - Viewed (0)