runtime-info: Add memory and cpu information apis