added histogram mechanism and paraprof view (currently not scalable, max depth as around 5)