probe targets and filters [message #123803] |
Fri, 22 February 2008 23:52 |
Del Myers Messages: 82 Registered: July 2009 |
Member |
|
|
Hi,
I'm trying to do a combination of beforeCall/afterCall/entry/exit probes for
watching when methods are called. I'm having a little bit of a problem with
filters and targets, though.
Here is my problem. I don't want the probe to instrument any classes in
java.lang*, sun*, etc. classes because that can screw up the runtime and prevent
the program from even launching. However, I _do_ want to be notified when
methods like Printstream.println() are being called from within my code. So, I
set the targets of the probes to include nearly everything, and the filters of
the profiling to exclude things like java*, sun*, com.ibm*, etc...
But, when I do this, I'm not getting notified of messages such as
System.out.println(). For example, the simple HelloWorld program:
package mypackage;
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
will notify me when main enters and exits, but it won't tell me about the
before/after calls on the PrintStream.println() method. I need, however, to
know when such calls are made. Any clues on how to fix my problem? Thanks.
Del
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02495 seconds