lkml.org 
[lkml]   [2009]   [Dec]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 5/5] perf diff: Fix support for all --sort combinations
    Em Mon, Dec 28, 2009 at 10:48:36PM -0200, Arnaldo Carvalho de Melo escreveu:
    > From: Arnaldo Carvalho de Melo <acme@redhat.com>
    >
    > When we finish creating the hist_entries we _already_ have them sorted "by
    > name", in fact by what is in --sort, that is exactly how we can find the pairs
    > in perf_session__match_hists as 'comm', 'dso' & 'symbol' all are strings we
    > need to find the matches in the baseline session.
    >
    > So only do the sort by hits followed by a resort by --sort if we need to find
    > the position for shwowing the --displacement of hist entries.
    >
    > Now all these modes work correctly:
    >
    > Example is a simple 'perf record -f find / > /dev/null' ran twice then followed
    > by the following commands:
    >
    > $ perf diff -f --sort comm
    > # Baseline Delta Command
    > # ........ .......... .......
    > #
    > 0.00% +100.00% find

    Dammit, of course this one needs some more love... will work on it
    tomorrow, the others, humm, _should_ be right.

    Its late, I should be having some rest already, I guess, or whatever
    :-)

    - Arnaldo


    \
     
     \ /
      Last update: 2009-12-29 01:57    [W:0.022 / U:29.940 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site