[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.hyades] Re: api for parsing trcxml file

Hi Marius,

Marius Slavescu wrote:
Hi Luca,

You are using the right approach.
Regarding internal classes you could either replicate that functionality in
your application or depend on the internal code and open a feature request
to transform that piece of code in API.

The Coverage class gives you method level coverage, by TRCMethod coverage do
you mean line level coverage ?

The line level coverage support is just in the model, we don't have yet
producers or loaders in Hyades.

Thanks,
Marius

ok, all clear!

thanks again,

Luca


"Luca Di Stefano" <luca.distefano@xxxxxxxxxxxxxxxxxx> wrote in message news:cmsu7u$obj$1@xxxxxxxxxxxxxx

Hi,

I use your class and navigate the trace model without problems. Now is
very easy get trace data!


Some questions about coverage, only to be sure: to get coverage info I

used

      CoverageAnalysis coverage = new
CoverageAnalysis(agent.getAgentProxy());

        List list = coverage.getClassLevel().getChilds();
        for (int i = 0; i < list.size(); i++) {
            Coverage element = (Coverage) list.get(i);
            System.out.println("" + ((TRCClass)
element.getTraceObj()).getName() + " " + getPercentage(element) );
            List list2 = element.getChilds();
            for (int j = 0; j < list2.size(); j++) {
                Coverage element2 = (Coverage) list2.get(j);
                System.out.println(" " +
((TRCMethod)element2.getTraceObj()).getName()+"

"+getPercentage(element2));

            }
        }


but classes CoverageAnalysis and Coverage are in org.eclipse.hyades.trace.views.util.internal package.

There is another way avoiding to use internal classes?


another question: Coverage at TRCMethod level is implemented?

Thanks ,

Luca