Page Menu
Home
Search
Configure Global Search
Log In
Files
F149505
blender_memory_usage.py
Tamito Kajiyama (kjym3)
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Tamito Kajiyama (kjym3)
Mar 10 2015, 3:05 PM
Size
603 B
Subscribers
None
blender_memory_usage.py
View Options
# 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
Details
Attached
Mime Type
text/x-python
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
6d/9e/ebb9f2dfa15c65e824ec2b02756b
Attached To
T43575: Freestyle - bad images in animation + long time render
Event Timeline
Log In to Comment