File tree Expand file tree Collapse file tree
internal_filesystem/apps/com.example.memtest/assets Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,15 +84,15 @@ def stress_test_thread():
8484 while keep_running :
8585 buffer_size = 2 ** n
8686 summary += f"{ buffer_size :>12} | "
87- # lv.async_call(lambda l: status.set_text(summary), None)
87+ lv .async_call (lambda l : status .set_text (summary ), None )
8888 # Run allocation test
8989 gc .collect ()
9090 max_buffers = test_allocation (buffer_size , n )
9191 # Check if we allocated 0 buffers (indicates we can't allocate this size)
9292 if max_buffers == 0 :
9393 print (f"Cannot allocate buffers of size { buffer_size } bytes. Stopping test." )
9494 summary += f"{ max_buffers :>14} \n "
95- # lv.async_call(lambda l: status.set_text(summary), None)
95+ lv .async_call (lambda l : status .set_text (summary ), None )
9696 break
9797 # Clean up memory before next test
9898 gc .collect ()
You can’t perform that action at this time.
0 commit comments