def get_mem_usage():
    denom = 1024 * 1024 * 1024
    unit = 'GB'
    rstr = 'virtual memory: ' % str(memory()/denom) + ' {}\n'.format(unit)
    rstr += 'peak virtual memory: ' + str(peak_Vm()/denom) + ' {}\n'.format(unit)
    rstr += 'resident memory: ' + str(resident()/denom) + ' {}\n'.format(unit)
    rstr += 'peak resident memory: ' + str(peak_resident()/denom) + ' {}\n'.format(unit)
    rstr += 'stacksize: ' + str(resident()/denom) + ' {}\n'.format(unit)

    return rstr
dataset/ETHPy150Open hycis/Mozi/mozi/utils/check_memory.py/get_mem_usage/operator `+` -> `%`