How to Get Process Perf Data with brief logic?