[eclipseoprofile-devel] Does not work as expected
Brought to you by:
jhandcock
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? |