Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-releng-dev] performance tests launching a 2nd instance of Eclipse



The old PerformanceMonitor (still in org.eclipse.perfmsr.core) used to
support getting snapshot of performance counters. This is different than
the regular startTimer()/doSomeWork()/stopTimer(). You don't start the
timing. It is as if someone had called startTimer() in my behalf at the
moment the process was created (even before the VM started), and snapshot()
(which I have to call) would be similar to stop()/commit(). So I guess we
need a snapshot() API somewhere (in PerformanceMeter)?

Rafael

September 1, 2004 6:26 AM
To: platform-releng-dev@xxxxxxxxxxx
cc:
From: Christof Marti <christof_marti@xxxxxxxxxx>
Subject: Re: [platform-releng-dev] performance tests launching a 2nd
instance of Eclipse








We currently do not have a solution for measuring startup time. A
suggestion that does not involve starting a second instance would be to
'somehow' invoke meter.start() right at the start (plugin activation of
o.e.test.performance is probably a problem?) and then meter.stop(),
.commit(), etc. in the first test that runs. A further suggestion would be
to, instead of invoking this as a usual plugin test from test.xml, call
start() in a special Java application that then directly invokes the
startup (within the same VM) of a plugin test like in the first suggestion.

Is this a possible way to go? Is there additional support you would need
from the performance plugin?

Christof


Wednesday, September 01, 2004 12:20 AM
To: platform-releng-dev@xxxxxxxxxxx
cc:
From: Rafael Chaves <Rafael_Chaves@xxxxxxxxxx>
Subject: [platform-releng-dev] performance tests launching a 2nd instance
of Eclipse







Platform/Core is working on startup performance tests. This requires being
able to launch a second instance of Eclipse whose startup time will be
measured (session test).

We could imagine two different approaches for that: the test case launches
a second instance, some code running in this second instance does the
measurements, and somehow communicates the results back to the test case,
running in the first instance. The test case would then make assertions on
the resulting data. Another would be to do all the measuring and assertions
in this 2nd instance, the test case in the first instance being only
responsible for spawning the second instance.

What is the vision for session tests?  I know the performance test
framework is an ongoing work, but how could one achieve that now (using
internal API if needed)?

Thanks,

Rafael

_______________________________________________
platform-releng-dev mailing list
platform-releng-dev@xxxxxxxxxxx
 http://dev.eclipse.org/mailman/listinfo/platform-releng-dev

_______________________________________________
platform-releng-dev mailing list
platform-releng-dev@xxxxxxxxxxx
 http://dev.eclipse.org/mailman/listinfo/platform-releng-dev



Back to the top