Windows: output pagefile size on AppVeyor (compiler out of heapspace)
This commit is contained in:
parent
e1498deaa8
commit
d75fd12eab
2 changed files with 14 additions and 0 deletions
13
scripts/appveyor-system-info.ps1
Normal file
13
scripts/appveyor-system-info.ps1
Normal 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"
|
|
@ -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%
|
||||
|
|
Loading…
Reference in a new issue