cachetest: add CPU profiling and memstats