If you are using Linux, then GCOV springs to mind. Then you want a GUI to display the results, and I Gcovr might be what you want.
Is this what you are after? As you can see, every line except line 7 is executed (1 time).
As you can see here, it shows how many times each line is executed: