ESP8266 get RAM Details

Hi,

i want to Serial.print() out the Total / Used / Available RAM of my ESP8266 and my ESP32. I just found ESP.getFreeHeap()

Is there a function to get the MAX RAM?