Page MenuHome

blender_memory_usage.py

blender_memory_usage.py

# Tamito KAJIYAMA <4 December 2010>
import win32pdh, win32pdhutil, pywintypes, time
try:
found = False
while True:
attr = win32pdhutil.FindPerformanceAttributesByName(
"blender-app", bRefresh=1,counter="Working Set", format=win32pdh.PDH_FMT_LARGE)
if not attr:
if found:
break
attr = [-1]
else:
found = True
print time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(time.time())), attr[0]
time.sleep(0.1)
except pywintypes.error:
pass
except KeyboardInterrupt:
pass

File Metadata

Mime Type
text/x-python
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
6d/9e/ebb9f2dfa15c65e824ec2b02756b

Event Timeline