ViewRanger records distance gone and height gain. It also provides elevation profiles, speed v time and distance v time graphs.
The problem with all such apps is they use gps data which is not that reliable for altitude although VR isn’t that bad at smoothing it.
A non Android method is to import your gps trace into GoogleEarth. Right click on the trace in the overlay window will enable you to bring up an elevation profile plus associated stats.