For memory usage you can add GC
or HS_GC
profiler using the addProfiler
method when building runner options.
As for CPU usage, benchmarks usually and naturally consume 100% of available CPU. However you should check other available profiles to see whether they will produce information useful to you.