how to use perf record effectively