Hello. Is there a way to print memory consumption (within the streamlit interface itself) as an app runs? Thanks!
That’s a capability of python itself with the
sys package, so yes you can.
import sys import streamlit as st my_list = [x for x in range(0, 10000)] st.write(sys.getsizeof(my_list)) st.write(list)