<filename>easier/memory.py<gh_stars>1-10
def mem_get():
    import psutil
    py_proc = psutil.Process()
    return int(py_proc.memory_full_info().uss / float(2 ** 20))


def mem_show(tag=''):
    print('__memory__: {}M  {}'.format(mem_get(), tag))

<filename>easier/memory.py<gh_stars>1-10
def mem_get():
    import psutil
    py_proc = psutil.Process()
    return int(py_proc.memory_full_info().uss / float(2 ** 20))


def mem_show(tag=''):
    print('__memory__: {}M  {}'.format(mem_get(), tag))
