Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getAvailablePhysicalMemory (0.69 sec)

  1. platforms/core-runtime/process-services/src/test/groovy/org/gradle/process/internal/health/memory/WindowsOSMemoryInfoTest.groovy

            when:
            def snapshot = WindowsOsMemoryInfo.snapshotFromMemoryInfo(info)
    
            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:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 20 23:56:19 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/health/memory/WindowsOsMemoryInfo.java

                WindowsMemoryInfo windowsMemoryInfo = (WindowsMemoryInfo) memoryInfo;
                return new OsMemoryStatusSnapshot(
                    memoryInfo.getTotalPhysicalMemory(), memoryInfo.getAvailablePhysicalMemory(),
                    // Note: the commit limit is usually less than the hard limit of the commit peak, but I think it would be prudent
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 20 23:56:19 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/health/memory/NativeOsMemoryInfo.java

                MemoryInfo memoryInfo = memory.getMemoryInfo();
                return new OsMemoryStatusSnapshot(memoryInfo.getTotalPhysicalMemory(), memoryInfo.getAvailablePhysicalMemory());
            } catch (NativeException ex) {
                throw new UnsupportedOperationException("Unable to get system memory", ex);
            } catch (NativeIntegrationException ex) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 1.6K bytes
    - Viewed (0)
Back to top