Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Eclipse CDT/C++ for profiling

I'm trying to use perf tool in eclipse CDT(latest) for my application on Ubuntu 14.04.

I'm getting an error when I Right click on project->Profiling Tools-> Profile with Perf. Error within Debug UI: java.lang.reflect.InvocationTargetException None of the profiling tools are working.

Am I missing any specific configuration? Also If i try to simply profile as application it gives error like invalid version "": invalid format

Any help is appreciated.

like image 958
user1658222 Avatar asked Feb 18 '26 04:02

user1658222


1 Answers

Type perf in a terminal and see the error prompt. It should advice you to install a specific version of linux-tools, for instance linux-tools-3.2-75 where “3.2-75” is the version number of your kernel. It solved the problem for me.

Moreover, on Ubuntu 14.04, linux-tools-generic-lts-trusty should do the job.

like image 66
Agmenor Avatar answered Feb 20 '26 18:02

Agmenor



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!