Windows: output pagefile size on AppVeyor (compiler out of heapspace)

This commit is contained in:
bergwerkgis 2015-12-16 10:56:05 +00:00
parent e1498deaa8
commit d75fd12eab
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,13 @@
$SystemManaged = Get-WmiObject -Class Win32_ComputerSystem | % {$_.AutomaticManagedPagefile}
$total_physicalmem = gwmi Win32_ComputerSystem | % {[Math]::round($_.TotalPhysicalMemory/1MB,0)}
$physical_mem = get-ciminstance -class 'cim_physicalmemory' | % { $_.Capacity/1024/1024}
$PF =gwmi Win32_PageFileUsage
$PageFileLocation = $PF.Name;
$PageFileSize = $PF.AllocatedBaseSize
Write-Host "physical memory : $physical_mem"
Write-Host "total physical memory : $total_physicalmem"
Write-Host "page file system managed : $SystemManaged"
Write-Host "page file location : $PageFileLocation"
Write-Host "page file size : $PageFileSize"

View file

@ -8,6 +8,7 @@ ECHO NUMBER_OF_PROCESSORS^: %NUMBER_OF_PROCESSORS%
ECHO RAM [MB]^:
powershell "get-ciminstance -class 'cim_physicalmemory' | %% { $_.Capacity/1024/1024}"
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
powershell .\scripts\appveyor-system-info.ps1
::only build on AppVeyor, if explicitly stated
ECHO APPVEYOR_REPO_COMMIT_MESSAGE^: %APPVEYOR_REPO_COMMIT_MESSAGE%