Format a stack trace, taking the prefix span satisfying a predicate.
Format a stack trace, taking the prefix span satisfying a predicate.
The format is similar to the typical case described in the Javadoc for java.lang.Throwable#printStackTrace. If a stack trace is truncated, it will be followed by a line of the form ... 3 elided, by analogy to the lines ... 3 more which indicate shared stack trace segments.