I have a program to run, say a program that sorts a list of numbers.
How can I know the distribution of the number of each instruction was run (i.e. the fraction of the instructions being run is "add", "sub" and so on)?
I'm using Ubuntu on an i7-3770 processor.