measure per-token qps; report memory usage every second