eclipseoprofile-devel Mailing List for Eclipse-OProfile
Brought to you by:
jhandcock
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
---|
From: <ae...@we...> - 2006-12-15 15:25:38
|
Hi, I am trying to get the plugin working under Gentoo with Eclipse 3.2.1, CDT 3.1.1, Sun JRE 1.5. In principle, the plugin works but I cannot profile anything :( 1. I setup opcontrol to work with sudo. I changed the opcontrol wrapper script (somewhere in eclipse/plugins/oprofile.core.linux) to use sudo (there is no consolehelper app in Gentoo): exec sudo /usr/bin/opcontrol ${1+"$@"} This works perfectly if I start this script from a console (e.g. opcontrol --reset). However, I cannot change any parameters from within the launch configuration in Eclipse. The configuration shows me the correct Counters but if a change any parameter it does not affect oprofile (opcontrol --status does not show anything different). I put the opcontrol wrapper script in the $PATH but it seems not to be called. What I am doing wrong? 2. I parametrized then oprofile manually from the console and started profiling an application within Eclipse (start/stop as well dump works well). I open then the System Profile and Sample View in Eclipse to have a look at the profiler data. The results look reasonable at first glance. The counted samples are exactly as shown by the command opreport image:APPLICATION -l but the wrong functions are shown !! The same holds then if I dive deeper into the functions to examine the source code lines. Any hints? |
From: Jeremy H. <je...@ap...> - 2006-05-12 19:22:22
|
On Fri, May 12, 2006 at 07:00:15PM +0200, Viktor Gal wrote: > >Maybe try ecj to build instead of gcj? For RPM-based systems, that's the > >eclipse-ecj package. I don't know if ubuntu packages ecj separately or > >not. You're basically looking for /usr/bin/ecj and associated eclipse > >stuff for that to work. > > ::: you're helping more than anything, since i couldn't find _any_ > information out there about the plugin. Yeah, I think the best we've got is at http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.cdt-contrib/org.eclipse.cdt.oprofile-home/developer/info.html?cvsroot=Tools_Project Sorry about the sad state of documentation. I really need to post some more information about this stuff. > ecj -cp /usr/lib/eclipse/startup.jar org.eclipse.core.launcher.Main \ ^^^ > -application org.eclipse.ant.core.antRunner \ > -DbaseLocation=/usr/lib/eclipse \ > -Dpde.build.scripts=/usr/lib/eclipse/plugins/org.eclipse.pde.build_3.1.0/scripts\ > -Dconfigs=linux,gtk,x86 You should be invoking the build as a Java runtime process; you don't invoke the build directly with a Java compiler. The following build command uses your standard Java runtime to launch the Eclipse plug-in builder. The plug-in builder uses the internal ecj installation that comes with the Eclipse distribution that you have installed at ECLIPSE_HOME. So behind the scenes, you're actually building the plug-ins with ecj, but you need to start the build process in a plain old Java runtime environment. $ cd /path/to/org.eclipse.cdt.oprofile.releng $ export ECLIPSE_HOME=/path/to/eclipse/dir $ java -cp $ECLIPSE_HOME/startup.jar \ org.eclipse.core.launcher.Main \ -application org.eclipse.ant.core.antRunner \ -DbaseLocation=$ECLIPSE_HOME \ -Dpde.build.scripts=$ECLIPSE_HOME/plugins/org.eclipse.pde.build_3.1.0/scripts \ -Dconfigs=linux,gtk,x86 Hope that helps. Let me know if you have problems - hopefully I can have a look at this on the weekend. My Eclipse build hacking skills are a little rusty right now. Jeremy |
From: <je...@ap...> - 2006-04-06 23:58:05
|
[moving to eclipseoprofile-devel list] Hi Mariano, > Is there an Eclipse Oprofiler for windows? If there is where can I > download it and if there isn't is there plans to develop one for windows? Eclipse-OProfile is really just a front-end on top of the OProfile profiling tool [1]. OProfile is a Linux-only tool, so Eclipse-OProfile is really only useful on a Linux system. If you're looking for a profiling tool for Windows applications, then Eclipse-OProfile (nor OProfile) won't work for you. It may be possible in the future to use Eclipse-OProfile on a Windows machine that acts as a front-end to OProfile on a remote Linux system, but this isn't currently supported. Thanks for your interest, Jeremy [1] http://oprofile.sourceforge.net/ |