[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.hyades] Trouble w/ Probekit
|
Hi,
I'm experimenting with ProbeKit, following the directions and sample
probekit in Eclipse help and not getting any instrumentation.
I have two Classes:
- Dummy.java - class with one method called doMethod()
- Driver.java - main method that creates an instance d of Dummy, calls
d.doMethod(), terminates
I want to instrument the dummy app to the sample probe file in
Eclipse's help:
<?xml version="1.0" encoding="ASCII"?>
<probekit>
<probe>
<fragmentAtClassScope>
static public int entry_counter = 0;
</fragmentAtClassScope>
<fragment type="entry">
<data type="className" name="_class" />
<data type="methodName" name="_method" />
<data type="args" name="_args" />
<code>
if ((entry_counter % 1000) == 0)
System.out.println("Counter value " + entry_counter +
" at a call to " + _class + "." + _method);
entry_counter++;
</code>
</fragment>
</probe>
</probekit>
I compile the probe file ok and then instrument successfully using:
ProbeInstrumenter Example.probescript Dummy.class Driver.class
When I run the app in Eclipse the section in <code> does not run. Can
someone advise me on what I'm doing wrong? Do I have to specify a
target? If so, how do we target a class file in the default package?
Also, how are we to call ProbeInstrumenter on a directory? I try:
ProbeInstrumenter Example.probescript ..\bin
and get the following error:
Probe test exception: Can't open class file
Any ideas? Using Eclipse 3.0M5 and Hyades 3.0
Thanks for your help.
Ernesto