Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for MemoryAmount (0.45 sec)

  1. platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/health/memory/MemoryAmount.java

            long bytes = kiloBytes * KILO_FACTOR;
            return new MemoryAmount(bytes, bytes + "k");
        }
    
        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;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  2. platforms/core-runtime/process-services/src/test/groovy/org/gradle/process/internal/health/memory/MaximumHeapHelperTest.groovy

            MemoryAmount.of('512g') | 64      | true   | MemoryAmount.of('32g')
            MemoryAmount.of('8g')   | 64      | true   | MemoryAmount.of('2g')
            MemoryAmount.of('512g') | 64      | false  | MemoryAmount.of('1g')
            MemoryAmount.of('2g')   | 64      | false  | MemoryAmount.of('512m')
            MemoryAmount.of('8g')   | 32      | false  | MemoryAmount.of('1g')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. platforms/core-runtime/process-services/src/test/groovy/org/gradle/process/internal/health/memory/MemoryAmountTest.groovy

            when:
            MemoryAmount.parseNotation('invalid')
    
            then:
            thrown IllegalArgumentException
        }
    
        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')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  4. platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/WorkerDaemonExpirationTest.groovy

            long requestedMemory = Jvm.current().isIbmJvm() ? MemoryAmount.parseNotation("512m") : MemoryAmount.ofGigaBytes(1).bytes
    
            given:
            reportsMemoryUsage = false
            def client1 = reserveNewClient(defaultOptions)
            def client2 = reserveNewClient(defaultOptions)
    
            and:
            clientsManager.release(client1)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 14:56:11 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. platforms/core-runtime/process-services/src/test/groovy/org/gradle/process/internal/health/memory/DefaultMemoryManagerTest.groovy

            given:
            def windowsMemoryInfo = new TestWindowsOsMemoryInfo()
            windowsMemoryInfo.totalMemory =  MemoryAmount.of('8g').bytes
            windowsMemoryInfo.freeMemory =  MemoryAmount.of('7g').bytes
            windowsMemoryInfo.totalVirtual =  MemoryAmount.of('12g').bytes
            windowsMemoryInfo.freeVirtual =  MemoryAmount.of('6g').bytes
            def memoryManager = newMemoryManager(windowsMemoryInfo)
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 20 23:56:19 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  6. platforms/core-runtime/process-services/src/test/groovy/org/gradle/process/internal/health/memory/WindowsOSMemoryInfoTest.groovy

            then:
            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)
  7. subprojects/core/src/main/java/org/gradle/process/internal/worker/DefaultWorkerProcessBuilder.java

                this.delegate = delegate;
                this.memoryResourceManager = memoryResourceManager;
                this.memoryAmount = memoryAmount;
            }
    
            @Override
            public WorkerProcess start() {
                memoryResourceManager.requestFreeMemory(memoryAmount);
                return delegate.start();
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:16:16 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  8. platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/health/memory/MaximumHeapHelper.java

            if (isIbmJvm()) {
                long totalMemoryHalf = osTotalMemory / 2;
                long halfGB = MemoryAmount.parseNotation("512m");
                return totalMemoryHalf > halfGB ? halfGB : totalMemoryHalf;
            }
    
            long totalMemoryFourth = osTotalMemory / 4;
            long oneGB = MemoryAmount.parseNotation("1g");
            switch (getJvmBitMode()) {
                case 32:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/WorkerDaemonExpiration.java

    import org.gradle.api.Transformer;
    import org.gradle.api.logging.Logger;
    import org.gradle.api.logging.Logging;
    import org.gradle.process.internal.health.memory.MaximumHeapHelper;
    import org.gradle.process.internal.health.memory.MemoryAmount;
    import org.gradle.process.internal.health.memory.MemoryHolder;
    
    import java.util.ArrayList;
    import java.util.List;
    
    public class WorkerDaemonExpiration implements MemoryHolder {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  10. testing/architecture-test/src/changes/archunit-store/internal-api-nullability.txt

    Class <org.gradle.process.internal.health.memory.MemoryAmount> is not annotated (directly or via its package) with @org.gradle.api.NonNullApi in (MemoryAmount.java:0)
    Class <org.gradle.process.internal.health.memory.MemoryHolder> is not annotated (directly or via its package) with @org.gradle.api.NonNullApi in (MemoryHolder.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)
Back to top