[PATCH 2/7] perf diff: Make hist_entry_diff fields union

2015-04-20 Thread Namhyung Kim
The period_ratio_delta, period_ratio and wdiff are never by used at the same time. Instead, Just one of them is accessed according to a comparison method. So make it union to reduce memory footprint. Signed-off-by: Namhyung Kim --- tools/perf/util/sort.h | 15 --- 1 file changed,

[PATCH 2/7] perf diff: Make hist_entry_diff fields union

2015-04-20 Thread Namhyung Kim
The period_ratio_delta, period_ratio and wdiff are never by used at the same time. Instead, Just one of them is accessed according to a comparison method. So make it union to reduce memory footprint. Signed-off-by: Namhyung Kim namhy...@kernel.org --- tools/perf/util/sort.h | 15

[PATCH 2/7] perf diff: Make hist_entry_diff fields union

2015-04-18 Thread Namhyung Kim
The period_ratio_delta, period_ratio and wdiff are never by used at the same time. Instead, Just one of them is accessed according to a comparison method. So make it union to reduce memory footprint. Signed-off-by: Namhyung Kim --- tools/perf/util/sort.h | 15 --- 1 file changed,

[PATCH 2/7] perf diff: Make hist_entry_diff fields union

2015-04-18 Thread Namhyung Kim
The period_ratio_delta, period_ratio and wdiff are never by used at the same time. Instead, Just one of them is accessed according to a comparison method. So make it union to reduce memory footprint. Signed-off-by: Namhyung Kim namhy...@kernel.org --- tools/perf/util/sort.h | 15