Inspired by ThreadInfo.toString
ThreadInfo.toString
fun ThreadInfo.asString(maxFrames: Int = 256): String