• Anton Blanchard's avatar
    perf stat: Add branch performance metric · 11018201
    Anton Blanchard authored
    When we count both branches and branch-misses it is useful to
    print out the percentage of branch-misses:
    
     # perf stat -e branches -e branch-misses /bin/true
    
     Performance counter stats for '/bin/true':
    
             401684  branches                 #      0.000 M/sec
              23301  branch-misses            #      5.801 %
    Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
    Cc: paulus@samba.org
    Cc: a.p.zijlstra@chello.nl
    LKML-Reference: <20091018112923.GQ4808@kryten>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    11018201
builtin-stat.c 12.4 KB