util: simplify cpu/memory stats collector