Print the correct system memory in use with +RTS -s (#17158)

Use `stats.max_mem_in_use_bytes` to print the memory usage instead of
`stats.max_live_bytes` which prints maximum residency.

Fixes (#17158).
21 jobs for master in 392 minutes and 52 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Lint
passed #154315
lint
lint-linters

00:00:20

passed #154318
lint
lint-submods-branch

00:00:16

passed #154316
lint
lint-testsuite

00:00:15

passed #154317
lint
typecheck-testsuite

00:00:14

 
  Build
passed #154320
x86_64-linux
hadrian-ghc-in-ghci

00:13:58

passed #154322
x86_64-linux
release-x86_64-linux-deb9-dwarf

01:15:47

passed #154321
x86_64-linux
validate-x86_64-linux-deb9-debug

01:56:58

passed #154319
x86_64-linux
validate-x86_64-linux-deb9-hadrian

02:56:24

 
  Full Build
failed #154324
aarch64-linux allowed to fail
validate-aarch64-linux-deb9

00:59:03

passed #154325
x86_64-linux
validate-i386-linux-deb9

01:44:23

passed #154323
x86_64-darwin
validate-x86_64-darwin

01:32:48

passed #154326
x86_64-linux
validate-x86_64-linux-deb9-integer-simple

00:41:51

passed #154327
x86_64-linux
validate-x86_64-linux-deb9-unreg

03:04:10

passed #154328
x86_64-linux
validate-x86_64-linux-fedora27

00:47:47

failed #154330
x86_64-windows allowed to fail
validate-x86_64-windows

00:00:09

failed #154329
x86_64-windows allowed to fail
validate-x86_64-windows-hadrian

00:00:05

 
  Cleanup
passed #154331
x86_64-darwin
cleanup-darwin

00:00:06

 
  Packaging
failed #154332
x86_64-linux allowed to fail
doc-tarball

00:01:46

 
  Testing
manual #154333
x86_64-linux allowed to fail manual
hackage
passed #154334
x86_64-linux
perf-nofib

00:29:33

 
  Deploy
failed #154335
x86_64-linux allowed to fail
pages

00:00:14

 
Name Stage Failure
failed
validate-aarch64-linux-deb9 Full Build
$ cp -Rf $HOME/.cabal cabal-cache
Uploading artifacts...
WARNING: ghc-*.tar.xz: no matching files
WARNING: junit.xml: no matching files
ERROR: No files to upload
Uploading artifacts...
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
validate-x86_64-windows-hadrian Full Build
Runtime platform                                    arch=amd64 os=windows pid=2936 revision=1f513601 version=11.10.1
WARNING: ghc.tar.xz: no matching files
WARNING: junit.xml: no matching files
ERROR: No files to upload
Uploading artifacts...
Runtime platform
arch=amd64 os=windows pid=1684 revision=1f513601 version=11.10.1
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit status 1
failed
doc-tarball Packaging
Synchronizing submodule url for 'utils/hsc2hs'
$ git submodule update --init --recursive
$ git checkout .gitmodules
$ git fetch https://gitlab.haskell.org/ghc/ghc-performance-notes.git refs/notes/perf:refs/notes/perf || true
From https://gitlab.haskell.org/ghc/ghc-performance-notes
6de9948576..47affa6629 refs/notes/perf -> refs/notes/perf
$ if [ ! -f "$LINUX_BINDIST" ]; then # collapsed multi-line command
Error: ghc-x86_64-mingw32.tar.xz does not exist. Did the 64-bit Windows job fail?
ERROR: Job failed: exit code 1
failed
validate-x86_64-windows Full Build
Runtime platform                                    arch=amd64 os=windows pid=3324 revision=1f513601 version=11.10.1
WARNING: ghc-*.tar.xz: no matching files
WARNING: junit.xml: no matching files
ERROR: No files to upload
Uploading artifacts...
Runtime platform
arch=amd64 os=windows pid=1228 revision=1f513601 version=11.10.1
WARNING: junit.xml: no matching files
ERROR: No files to upload
ERROR: Job failed: exit status 1
failed
pages Deploy
$ git checkout .gitmodules
$ git fetch https://gitlab.haskell.org/ghc/ghc-performance-notes.git refs/notes/perf:refs/notes/perf || true
From https://gitlab.haskell.org/ghc/ghc-performance-notes
78c36f2d21..47affa6629 refs/notes/perf -> refs/notes/perf
$ mkdir -p public/doc
$ tar -xf haddock.html.tar.xz -C public/doc
tar: haddock.html.tar.xz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
ERROR: Job failed: exit code 1