Hi Marius,

Thanks for taking the time to write the examples.

I will experiment some more and think about changing my code.

On a side note, where exactly did the rationale for a generic query engine
come from? It does feel rather complex for the simple problems I want to
solve. Is it actually being used much to do clever complex queries?

Cheers,
Neil



On 3/23/07, Marius Slavescu <[EMAIL PROTECTED]> wrote:


Hi Neil,

Please extract org.eclipse.hyades.use.cases project (from
test-results/platform/org.eclipse.hyades.use.cases)

and take a look at:


/org.eclipse.hyades.use.cases/src/org/eclipse/hyades/use/cases/junit/models/test/ProfilingTraceSearchTest.java

In that class you'll find sample queries for the TRCMethod objects, please
let me know if you need other cases and I will add them there.

Basically you'll need to get the JDT package name, class name and method
and put them in a query like the one in
testFind_mypackage10_HelloWorld$HelloWorldInnerClass_run().

You can run queries against one or more TRCPackages (I use only one in my
example, see query.getSources()), or any other object, for example if you
have the TRCPackage and you want to look only in that package you can add
just that one in the query.getSources() list.

Thanks !

Marius Slavescu
IBM Tivoli Autonomic Computing - Toronto Lab
Phone: 905-413-3610





 *"Neil Dunn" <[EMAIL PROTECTED]>*
Sent by: [EMAIL PROTECTED]

03/17/2007 11:46 AM  Please respond to
TPTP Tracing and Profiling Tools Project developer discussions        <
tptp-tracing-profiling-tools-dev@eclipse.org>

  To
"TPTP Tracing and Profiling Tools Project developer discussions" <
tptp-tracing-profiling-tools-dev@eclipse.org >  cc

 Subject
[tptp-tracing-profiling-tools-dev] Relating JDT IMethod to TRCMethod






Hi everyone,

I'd like to relate JDT IMethod objects to TRCMethod objects of the
trace model so that I can easily say "given this IMethod give me the
TRCMethod" so that I can do rule analysis about data in a TRCMethod
object.

Does anyone have any suggestions on how to do this? It looks like I'm
going to have to traverse the model in search of the matching Java
package and then the matching  class then the matching method using
the FilteringUtil class. Does this sound about right?

Thanks,
Neil
_______________________________________________
tptp-tracing-profiling-tools-dev mailing list
tptp-tracing-profiling-tools-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev


_______________________________________________
tptp-tracing-profiling-tools-dev mailing list
tptp-tracing-profiling-tools-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev


_______________________________________________
tptp-tracing-profiling-tools-dev mailing list
tptp-tracing-profiling-tools-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev

Reply via email to