Community
Participate
Working Groups
In CDO project for which we have standalone performance tests, we would like to use "org.eclipse.test.performance" bundle to record memory/cpu measures in local files. For that we provide our own PerformanceMeterFactory through system property : -DPerformanceMeterFactory=org.eclipse.emf.cdo.tests.performance.framework.CDOPerformanceMeterFactory but it doesn't works in standalone.
Created attachment 250975 [details] Patch I have attached a patch to have org.eclipse.test.performance bundle usable in standalone.
Thanks, I've not looked at your patch "in context", but glancing at the 'diff', seems one of the biggest changes was to remove if (Platform.isRunning()) { ... So, my immediate question is ... does it still work "from the workbench" with your patch? (That the usual reason for checking "Platform.isRunning()".
It is not a removal but an addition and in the else clause I call "Class.forName(className)" to work in standalone.
(In reply to Esteban DUGUEPEROUX from comment #3) > It is not a removal but an addition and in the else clause I call > "Class.forName(className)" to work in standalone. Ah, ok ... I'll take a look in context then. Thanks.
I've applied the patch from comment 1. And, also increased the 'minor' version so is not 3.11.0. I do so tentatively, since I've not tested in *our* normal performance runs. Seems like it should work the same ... but ... not 100% positive. Also, I'd like to be more specific about "standalone". I believe your patch is for "non OSGi" environments, right? I'll change title with that assumption, if I have misunderstood, let me know.
(In reply to David Williams from comment #5) > I believe your patch is for "non OSGi" environments, right? > > I'll change title with that assumption, if I have misunderstood, let me know. I'll also add, I am assuming this one change is "all that's needed", that you've tested it, etc. I say this since there are some things, such as the "windows fragment" which I do not know if it is even possible to use that in a "non-OSGi" environment (say, by just adding to the classpath?) ... so ... if I had to guess, I'd guess there could be other changes needed ... in theory. If that is true, I'd hope next time to get a "complete solution". (Plus, would be nice if you updated the "how to" wiki with some info, examples, or pointers to the work you are doing). Much thanks, hope you can now accomplish what you need to ... and, teach me a thing or two in the process. :)
Hi David, Thanks for your help. About the windows fragment, I have not tested being on Linux, I suppose also that adding to the classpath should be sufficient. Yes by standalone I mean in a non OSGI environment. Ok I'll update wiki once my performance tests will be ok. Best Regards.