def print_memory_stats(location_tag="undef"):
    """ Printout memory usage statistics. """
    try:
        import psutil
        p = psutil.Process(os.getpid())
        rm, vm = p.get_memory_info()
        print "MEM_STAT (%s) rm=%s, vm=%s" % (location_tag, rm, vm)
    except ImportError:
        print "psutil module not available"
dataset/ETHPy150Open livenson/vcdm/src/vcdm/utils.py/print_memory_stats/original