Python for Engineers
Solve Problems by Coding Solutions - A Complete solution for python programming
Blog Pages
(Move to ...)
Code
Top 10 Blogs
NumPy Tutorials
Distributions
Self Learning
IDE
Packages
About
▼
Top 20 Job Sites for Python Programmers
Indeed.com
Python.org
Naukri.com
Remote Python
Python Jobs
Toptal
Hired
GitHub
Stack Overflow
Upwork
Gun
Weworkremotely
Anaconda
X-Team
Authentic
Peopleperhour
Guru
Linkedin
Freelancer
Simplyhired
Python program to print memory and processor usage
import os import psutil pid = os.getpid() py = psutil.Process(pid) mu = (py.memory_info()[0] / 2.**30) * 1000 print('Memory Use(MB):', mu, 'of process id:', pid) print('CPU Use:',psutil.cpu_percent())
‹
›
Home
View web version