@@ -0,0 +1,916 @@
+%0Apackage test.runtimeCallStack;%0A%0Aimport java.io.PrintWriter;%0Aimport java.io.StringWriter;%0A%0Apublic class Test %7B%0A    public static void main(String%5B%5D args) %7B%0A        new Test().f();%0A    %7D%0A%0A    public static String getStackTraceString(Throwable tr) %7B%0A        if (tr == null) %7B%0A            return %22%22;%0A        %7D%0A%0A        StringWriter sw = new StringWriter();%0A        PrintWriter pw = new PrintWriter(sw);%0A        tr.printStackTrace(pw);%0A        return sw.toString();%0A    %7D%0A%0A    private void a() %7B%0A        // eg. how to use, add the below code the the method you want to trace%0A        Throwable t = new Throwable();%0A        t.fillInStackTrace();%0A        System.out.println(getStackTraceString(t));%0A    %7D%0A%0A    private void b() %7B%0A        a();%0A    %7D%0A%0A    private void c() %7B%0A        b();%0A    %7D%0A%0A    private void d() %7B%0A        c();%0A    %7D%0A%0A    private void e() %7B%0A        d();%0A    %7D%0A%0A    private void f() %7B%0A        e();%0A    %7D%0A%0A%7D%0A

add get call stack trace test