How to compute the total size of RAM and the usage size for ESP32?

Run time, or compile time?