Skip to content

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

Changed to use stats.max_mem_in_use_bytes instead of stats.max_live_bytes in rts/Stats.c to print the system memory in use. This is in line with what the RTS prints with -t option.

Also changed the message to print MiB total memory in use instead of MB total memory in use. We are dividing by 1024, so MiB is the correct usage.

  • are either individually buildable or squashed
  • have commit messages which describe what they do (referring to [Notes][notes] and tickets using #NNNN syntax when appropriate)
  • have added source comments describing your change. For larger changes you likely should add a [Note][notes] and cross-reference it from the relevant places.
  • add a testcase to the testsuite.
  • if your MR affects library interfaces (e.g. changes base) please add the ~"user facing" label.
Edited by Pranay Sashank

Merge request reports