private String getTopTraces(int count) { StringBuilder buff = new StringBuilder(); buff.append("Profiler: top ").append(count).append(" stack trace(s) of "); if (time > 0) { buff.append(" of ").append(time).append(" ms"); } if (threadDumps > 0) { buff.append(" of ").append(threadDumps).append(" thread dumps"); } buff.append(":").append(LINE_SEPARATOR); if (counts.size() == 0) { buff.append("(none)").append(LINE_SEPARATOR); } HashMap<String, Integer> copy = new HashMap<String, Integer>(counts); appendTop(buff, copy, count, total, false); buff.append("summary:").append(LINE_SEPARATOR); copy = new HashMap<String, Integer>(summary); appendTop(buff, copy, count, total, true); buff.append('.'); return buff.toString(); }
private String getTopTraces(int count) { StringBuilder buff = new StringBuilder(); buff.append("Profiler: top ").append(count).append(" stack trace(s) of "); if (time > 0) { buff.append(" of ").append(time).append(" ms"); } if (threadDumps > 0) { buff.append(" of ").append(threadDumps).append(" thread dumps"); } buff.append(":").append(LINE_SEPARATOR); if (counts.size() == 0) { buff.append("(none)").append(LINE_SEPARATOR); } HashMap<String, Integer> copy = new HashMap<String, Integer>(counts); appendTop(buff, copy, count, total, false); buff.append("summary:").append(LINE_SEPARATOR); copy = new HashMap<String, Integer>(summary); appendTop(buff, copy, count, total, true); buff.append('.'); return buff.toString(); }
private String getTopTraces(int count) { StringBuilder buff = new StringBuilder(); buff.append("Profiler: top ").append(count).append(" stack trace(s) of "); if (time > 0) { buff.append(" of ").append(time).append(" ms"); } if (threadDumps > 0) { buff.append(" of ").append(threadDumps).append(" thread dumps"); } buff.append(":").append(LINE_SEPARATOR); if (counts.size() == 0) { buff.append("(none)").append(LINE_SEPARATOR); } HashMap<String, Integer> copy = new HashMap<String, Integer>(counts); appendTop(buff, copy, count, total, false); buff.append("summary:").append(LINE_SEPARATOR); copy = new HashMap<String, Integer>(summary); appendTop(buff, copy, count, total, true); buff.append('.'); return buff.toString(); }