comment obtenir la trace de pile d'une fonction en java

Thread.currentThread().getStackTrace();
Pixel Freak