evaluate how much a python program memory
ps -m -o %cpu,%mem,command
evaluate how much a python program memory
ps -m -o %cpu,%mem,command
python memory usage
import sys
a, b, c,d = "abcde" ,"xy", 2, 15.06
print(sys.getsizeof(a))
print(sys.getsizeof(b))
print(sys.getsizeof(c))
print(sys.getsizeof(d))
#Running the above code gives us the following result
38
35
24
24
python memory usage
import sys
variable = 30
print(sys.getsizeof(variable)) # 24
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us