perf hists: Allow limiting the number of rows and columns in fprintf