On Fri, Oct 12, 2001 at 10:21:38AM -0700, Avi Cherry wrote: > At 8:55 AM -0700 10/12/01, Peter Graves wrote: > > > is there a possibility to find out where a method has been called? = > > > >> Something like the information given by an exception. > >> = > > > >> Thanks, > >> Rapha > > > >Thread.dumpStack() > > Just to point out, the documentation specifically says: > This method is used only for debugging. > > This means to not rely on the output of this in production code. > Basically, if your code relies on this for its behavior, it's likely > to break at some point. Different VMs will give different output > anyway.
Yep... this is good for dumping info to be read by humans. If you want a data structure usable from software, you'll need to implement a profiler through the JVMPI interface. Nathan > > > ---------------------------------------------------------------------- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- ---------------------------------------------------------------------- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]