public static String formatThreadInfo(ThreadInfo threadInfo, String indent) {
    StringBuilder sb = new StringBuilder();
    appendThreadInfo(sb, threadInfo, indent);
    return sb.toString();
  }
Format the given ThreadInfo object as a String.
@param indent a prefix for each line, used for nested indentation
hbase-server/src/main/java/org/apache/hadoop/hbase/monitoring/ThreadMonitoring.java