Thread.currentThread().getStackTrace();

Read more of this post