modify ClassHistogram and PerfDataSampler implementation