Supports collecting the stack trace of the current thread, another thread in the same process, or a thread in a different process (using ptrace). Change-Id: Ica2594e4436edde4ceb7bcc3d78e6c31a7902cbf