intel/perf: move get_metric_id to perf