You can display memory information in
realme UI 3.0 and above versions: Settings > Home screen & Lock screen > Recent tasks manager > Turn on Display RAM / Memory information for recent tasks.
realme UI 1.0 & 2.0: Settings > Additional settings > Recent tasks manager > Turn on Display RAM / Memory information for recent tasks.
realme UI R Edition: Support it by default
realme UI Go & T & S & U Edition: Not supported