Post Reply 
Python Free Memory?
05-16-2023, 11:13 AM
Post: #3
RE: Python Free Memory?
(05-16-2023 09:07 AM)Thomas_Sch Wrote:  
(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 )

Thanks, but that's an example of what I was talking about. There's no gc library on the Prime. All the routines I've found use libraries or routines not available on Prime.

Tom L
Cui bono?
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: 2 Guest(s)