- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for ofGigaBytes (0.95 sec)
-
platforms/core-runtime/process-services/src/test/groovy/org/gradle/process/internal/health/memory/WindowsOSMemoryInfoTest.groovy
1 * info.getTotalPhysicalMemory() >> MemoryAmount.ofGigaBytes(32).bytes 1 * info.getAvailablePhysicalMemory() >> MemoryAmount.ofGigaBytes(16).bytes 2 * info.getCommitLimit() >> MemoryAmount.ofGigaBytes(64).bytes 1 * info.getCommitTotal() >> MemoryAmount.ofGigaBytes(48).bytes and: snapshot.getPhysicalMemory().getTotal() == MemoryAmount.ofGigaBytes(32).bytes
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Dec 20 23:56:19 UTC 2023 - 2.5K bytes - Viewed (0) -
platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/WorkerDaemonExpirationTest.groovy
def expiration = new WorkerDaemonExpiration(clientsManager, MemoryAmount.ofGigaBytes(OS_MEMORY_GB).bytes) def "expires least recently used idle worker daemon to free system memory when requested to release some memory"() { given: def client1 = reserveNewClient(twoGbOptions)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 21 14:56:11 UTC 2024 - 7.6K bytes - Viewed (0) -
platforms/core-runtime/process-services/src/test/groovy/org/gradle/process/internal/health/memory/DefaultMemoryManagerTest.groovy
memoryManager.addMemoryHolder(holder2) when: memoryManager.requestFreeMemory(MemoryAmount.ofGigaBytes(5).bytes) then: 1 * holder1.attemptToRelease(_) >> MemoryAmount.ofGigaBytes(2).bytes 1 * holder2.attemptToRelease(_) >> MemoryAmount.ofGigaBytes(2).bytes cleanup: memoryManager.stop() }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Dec 20 23:56:19 UTC 2023 - 9.6K bytes - Viewed (0) -
platforms/core-runtime/process-services/src/test/groovy/org/gradle/process/internal/health/memory/MemoryAmountTest.groovy
} def "of kilo mega giga tera bytes"() { expect: MemoryAmount.ofKiloBytes(23) == MemoryAmount.of('23k') MemoryAmount.ofMegaBytes(23) == MemoryAmount.of('23m') MemoryAmount.ofGigaBytes(23) == MemoryAmount.of('23g') MemoryAmount.ofTeraBytes(23) == MemoryAmount.of('23t') }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:10:02 UTC 2023 - 2.7K bytes - Viewed (0) -
platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/health/memory/MemoryAmount.java
} public static MemoryAmount ofMegaBytes(long megaBytes) { long bytes = megaBytes * MEGA_FACTOR; return new MemoryAmount(bytes, bytes + "m"); } public static MemoryAmount ofGigaBytes(long gigaBytes) { long bytes = gigaBytes * GIGA_FACTOR; return new MemoryAmount(bytes, bytes + "g"); } public static MemoryAmount ofTeraBytes(long teraBytes) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:10:02 UTC 2023 - 4.1K bytes - Viewed (0)