Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 375291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:29:17+00:00 2026-05-12T14:29:17+00:00

We’ve got a product that’s made up of C++ and Java parts. The C++

  • 0

We’ve got a product that’s made up of C++ and Java parts. The C++ stuff is build using make and the java projects are made up of some ant projects and some maven2 projects.

I’m looking for a tool that will help me get useful metrics out of the build system over time. examples include

* Total build time
* C++ project build time
* Java build time
* Number of compiler warnings
* Number of unit tests (run/passed/failed/errors). (Tests are written in cxxTest and JUnit)
* Acceptance test metrics (run/passed/failed/errors)
* Total number of files
* LOC (to keep the managers happy)

There’s probably loads of other metrics I could think of, but you get the idea.

Getting these metrics for a once-off report is pretty simple. What I really need is a simple tool that will let me plot these metrics over time.

A simple use case where this would be pretty useful would be compiler warnings as we could see the number of warnings trending towards zero over time. (we can’t fix them all at once as it’s a pretty big project and we just don’t have the time for a big-bang approach). It would also help us quickly spot new warnings as they’re introduced.

I’ve seen this question Monitoring code metrics in Java over longer time period, but I’m looking for something a little more language agnostic

So, to sum up. I’m looking for something that reports metrics over time, that’s easily extensible, has a web-based reporting gui and preferably cheap. (not asking for much huh!)

Edit: Just to be clear, we’re using CruiseControl as our CI server. I just haven’t seen an easy way to add metrics or time-based metrics to it’s output. Maybe I’m missing something obvious. I’ve seem this page about adding custom metrics, but it’s a little clunky for me.

Ideally I’d love to write out the metrics to a file in a simple format and have something generate the metrics dynamically. Ideally I’d like to turn something like the output below into a simple chart

Build Id | Build Time | Metric       | Value 
00000001 10:45 TestPassRate 95
00000001 10:45 BuildTime 300
00000001 10:45 C++BuildTime 200
00000001 10:45 JavaBuildTime 50
00000001 10:45 TestTime 50
00000002 11:45 ......
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T14:29:18+00:00Added an answer on May 12, 2026 at 2:29 pm

    If you’re using the Java CruiseControl you can get the kind of metrics you want easily. You can include arbitrary .xml in the log file with and then reference any of the values in the reporting .jsp pages. That’s exactly how the trend chart for PMD, and checkstyle and Javadoc errors is done. From metrics.jsp:

    <jsp:useBean id="xpathData" class="net.sourceforge.cruisecontrol.chart.XPathChartData" />
    <%
        xpathData.add("CheckStyle", "count(/cruisecontrol/checkstyle/file/error)");
        xpathData.add("PMD", "count(/cruisecontrol/pmd/file/violation)");
        xpathData.add("Javadoc", "count(/cruisecontrol/build//target/task[@name='javadoc']/message[@priority='warn' or @priority='error'])");
    %>
    <cewolf:chart id="chart" title="Coding violations" type="timeseries"  xaxislabel="date" yaxislabel="violations">
        <cewolf:data>
            <cewolf:producer id="xpathData">
              <cewolf:param name="build_info" value="<%=build_info%>" />
            </cewolf:producer>
        </cewolf:data>
        <cewolf:chartpostprocessor id="xpathData" />
    </cewolf:chart>
    <cewolf:img chartid="chart" renderer="cewolf" width="400" height="300"/>
    

    You can just paste this into the metrics.jsp replace the xpath queries w/the xpath to your metrics and you’re good to go.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I have thousands of HTML files to process using Groovy/Java and I need to
I have just tried to save a simple *.rtf file with some websites and
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.