print('psutil.virtual_memory(): ', psutil.virtual_memory())
print('psutil.swap_memory(): ', psutil.swap_memory())
# print(sys.getsizeof(sm) / 1024 / 1024, 'MB')
print(u'Process(os.getpid()).memory_info: %.4f GB' % (psutil.Process(os.getpid()).memory_info().rss / 1024 / 1024 / 1024) )
python virtual_memory swap_memory
最新推荐文章于 2024-05-03 00:34:10 发布