Research possible improvements for cpu/mem measurement
Initial development of cpu/mem measurement happened in #8841 (closed), and some initial benchmark research was made. We should evaluate current approach of cpu/mem measurement, compare with alternatives, and decide if it needs to be changed or improved.