Question

Does anyone know a good metrics plugin for Eclipse that works with C++ ?

I'm looking for lines of code mainly. Thanks.

Was it helpful?

Solution

There's the open source Eclipse Metrics plugin, but i personally prefer ProjectCodeMeter which integrates with eclipse as external metrics tool.

OTHER TIPS

Eclipse Metrics is very powerful but only works for Java unfortunately.
Project Code Meter is a professional, comprehensive, but also expensive tool.
cccc is an awful, hacked command line tool for Windows only.
However Code Analyzer is a simple, free graphics tool that works great with C and C++.

It took a look at the help to get started though, you need to:

  • select an extension set from the Tools->Extension Set->Select menu (I chose the C set)
  • right click on the "New" Code Set icon and do "Add Branch", then navigate to your source root folder
  • click run, and here you go:

enter image description here

As far as i know there is no code metrics plugin for C++/CDT, but you can use cccc

But i guess you already knew about it :)

Good luck!

We have been working on an Eclipse plug-in called metriculator. Its still under development but some major metrics (e.g. LSLOC, McCabe, EfferentCoupling) are already implemented.

See http://sinv-56013.edu.hsr.ch/redmine/projects/metricular/wiki/Documentation for more details.

EDIT: Above link is dead, you can use https://github.com/ideadapt/metriculator instead.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top