1 from memory
import Memory
9 Total: 2.0G Available: 912.5M Percent: 55.3 Used: 1.1G Free: 912.5M
23 a,b,c,d,e = mem.getVirtualMemory()
25 print(
"Total: {0} Available: {1} Percent: {2} Used: {3} Free: {4}".format(a,b,c,d,e))
31 Total: 4.0G Used: 1.7G Free: 2.3G Percent: 42.3 Sin: 0B Sout: 0B
40 d = swap memory percent
41 d = the number of bytes the system has swapped in from disk
42 e = the number of bytes the system has swapped out from disk
46 a,b,c,d,e,f = mem.getSwapMemory()
47 print(
"Total: {0} Used: {1} Free: {2} Percent: {3} Sin: {4} Sout: {5}".format(a,b,c,d,e,f))
59 a = RSS(Resident Set Size)
60 b = VMS(Virtual Memory Size)
64 a,b = mem.getMemoryInfo()
65 print(
"RSS: {0} VMS: {1}".format(a,b))
74 peak_paged_pool: 98.6K
76 peak_nonpaged_pool: 4.4K
91 f = peak_nonpaged_pool
97 http://pythonhosted.org/psutil/#psutil.Process.memory_info_ex
101 a,b,c,d,e,f,g,h,i,j = mem.getMemoryInfoEx()
103 print(
"num_page_faults: {0}\npeak_wset: {1}\nwset: {2}\npeak_paged_pool: {3}\n" \
104 "paged_tool: {4}\npeak_nonpaged_pool: {5}\nnonpaged_pool: {6}\n" \
105 "pagefile: {7}\npeak_pagefile: {8}\nprivate: {9}".format(a,b,c,d,e,f,g,h,i,j))
112 Memory Percent: 0.3964004619891539
116 mpercent = mem.getMemoryPercent()
117 print(
"Memory Percent: {0}".format(mpercent))
126 Path: C:\Windows\System32\apisetschema.dll
134 RSS: Resident Set Size
135 Permission: Process Permission
136 Path: Process Api Path
137 Total RSS: Total Resident Set Size
142 a,b,c,d,e,f = mem.getMemoryMap(5128)
143 print(
"PID: {0}\nName: {1}\nRSS: {2}\nPermission: {3}\nPath: {4}\nTotal RSS: {5}".format(a,b,c,d,e,f))