sophia: add branch histogram profiling