[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.hyades] Re: hyades profile itself?

Hi Luca,

"Luca Di Stefano" <luca.distefano@xxxxxxxxxxxxxxxxxx> wrote in message
news:ckvus3$uh2$1@xxxxxxxxxxxxxx
> Hi Marius,
>
> Marius Slavescu wrote:
> > Hi Luca,
> >
> > Hyades can be used and it is used to profile Eclipse or any other Java
> > application. You will just need to provide the right profiling filters
and
> > options.
> >
> > Basically you could write an Eclipse headless application that will
allow
> > you to profile a nightly build and use the Hyades Trace model to analyze
the
> > profiling traces, although we have something like this in our plans
> > (https://bugs.eclipse.org/bugs/show_bug.cgi?id=74844), currently Hyades
> > doesn't provide such thing yet (you could be the one to contribute it
:).
> > You will just need to plug the runtime components that are involved in
the
> > live profiling scenario and add some offline analysis and reporting
> > mechanism.
>
> Ok, there are samples that shows how to use hyades API to get profiling
> data?
> There is a report in html for hyades data?

There are no samples for automated profiling scenarios, although if you dig
in the code you'll find all the pieces that you'll need, the only problem is
most of them are internal so they can change at any time.

You could automate profiling in two ways:
    -profile the application in standalone mode then load the raw trace into
the trace model using org.eclipse.hyades.loaders.util.XMLLoader
    -profile the application in controlled mode like the UI does and load
the trace events as they are received, check how the
org.eclipse.hyades.trace.ui.internal.piclient.XMLTraceDataProcessor class is
used (involves also
org.eclipse.hyades.trace.ui.internal.piclient.PIProcessListener), you could
also achieve this by driving the Hyades UI with some UI playback tool.

In the Trace views you can take HTML snapshots of the statistical view state
(see
org.eclipse.hyades.trace.views.internal.StatisticView.printColumnsToHTML),
although that is not applicable for headless mode.

> >
> > If you are looking for code coverage, Hyades provides also method level
> > coverage support.
>
> great.
>
> >
> > In the Eclipse (nightly) builds has been added a set of performance
> > testscases, you can get more info by looking at any recent build or
sending
> > a note to webmaster@xxxxxxxxxxx, here is the link from the last
integration
> > build :
> >
http://fullmoon.torolab.ibm.com/downloads/drops/I-I20041013-200410130800/performance.php
>
> I have read the performance tests of eclipse, but they are looking like
> normal JUnit reports of tests and it seems to have nothing to do with
> hyades?

You are right, that was just another example of performance testcases that
were part of the build process.
In Eclipse I think they just have JUnit based testcases tailored to gather
performance info with no Hyades test or profiler infrastructure involved or
at least not in the build.
In Hyades we will continue to add Hyades testcases (see
org.eclipse.hyades.tests, check also the hyades-dev mailing list archive for
more info about this component), so we could also add performance testscases
using profiling data (BCI or JVMPI based).
The intend is to integrate Eclipse JUnit and other JUnit based tools support
with Hyades Test infrastructure (including Hyades JUnit support), see
http://www.eclipse.org/test-and-performance/.

Thanks,
Marius

>
> Have hyades API to execute load tests?
>
> >
> > Thanks,
> > Marius
> >
>
> Thanks,
>
> Luca
>
> > "Luca Di Stefano" <luca.distefano@xxxxxxxxxxxxxxxxxx> wrote in message
> > news:ckil5i$lvo$2@xxxxxxxxxxxxxx
> >
> >>Hi,
> >>
> >>Nobody can help me?
> >>
> >>bye,
> >>
> >>Luca
> >>
> >>Luca Di Stefano wrote:
> >>
> >>>Hi,
> >>>
> >>>What kind of build management use eclipse and eclipse tools for nightly
> >>>builds?
> >>>Is used hydes for profiling of eclipse code?
> >>>There is something like 'nightly-profile' that uses hyades itself ?
> >>>
> >>>Thanks
> >>>
> >>>Luca
> >
> >
> >
>
>