Post Reply 
Python Free Memory?
05-16-2023, 09:07 AM
Post: #2
RE: Python Free Memory?
(05-16-2023 04:15 AM)toml_12953 Wrote:  Is there a routine that can tell me how much memory Python has?
I'd like both total and free memory if possible. All the solutions I've seen online are for Linux and call routines not available on the Prime.
You could try:
Code:
import gc
gc.collect()
gc.mem_free()
(found at https://forum.micropython.org/viewtopic.php?t=1747 )
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Python Free Memory? - toml_12953 - 05-16-2023, 04:15 AM
RE: Python Free Memory? - Thomas_Sch - 05-16-2023 09:07 AM
RE: Python Free Memory? - toml_12953 - 05-16-2023, 11:13 AM
RE: Python Free Memory? - roadrunner - 05-16-2023, 02:41 PM
RE: Python Free Memory? - Thomas_Sch - 05-16-2023, 06:40 PM
RE: Python Free Memory? - toml_12953 - 05-16-2023, 06:44 PM



User(s) browsing this thread: 1 Guest(s)