mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
18 lines
525 B
Python
18 lines
525 B
Python
import renderdoc as rd
|
|
import rdtest
|
|
|
|
|
|
class GL_Leak_Check(rdtest.TestCase):
|
|
demos_test_name = 'GL_Leak_Check'
|
|
demos_frame_cap = 50000
|
|
demos_frame_count = 10
|
|
demos_timeout = 120
|
|
|
|
def check_capture(self):
|
|
memory: int = rd.GetCurrentProcessMemoryUsage()
|
|
|
|
if memory > 500*1000*1000:
|
|
raise rdtest.TestFailureException("Memory usage of {} is too high".format(memory))
|
|
|
|
rdtest.log.success("Capture {} opened with reasonable memory ({})".format(self.demos_frame_cap, memory))
|