perf session: Change perf_session post processing functions to take histogram tree