Provide an API in Java to dump stack traces from Java programmatically.
The stack trace output should be in a standard well-defined format
so it can be parsed by third party tools.
An array of stack trace elements can be returned for a specific thread or
a map of stack trace array elements are returned for all threads.