perf annotate: Calculate instruction overhead using hashmap