Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python system performance

import os
import psutil
pid = os.getpid()
py = psutil.Process(pid)
memoryUse = py.memory_info()[0]/2.**30  # memory use in GB...I think
print('memory use:', memoryUse)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #system #performance
ADD COMMENT
Topic
Name
2+5 =