for (int i = 0; i < 100; i++) {
if (i >= sorted.size()) {
break;
}
CallStats st = sorted.get(i);
long totalElapsedTime = st.totalElapsedTime;
int count = st.invocationCount;
buf.append("\nCall: " + st.call + " => invocations: " + count +
", total elapsed: " + totalElapsedTime + ", average elapsed: " + (((double) totalElapsedTime) / count) +
", max elapsed: " + st.maxElapsedTime);