This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS: Are there any tools to crunch Code Coverage data from .csv files to make reports?

Tool/software: Code Composer Studio

I'm trying to turn my 1070 line file code coverage output into:

(a) an HTML (or color-coded) view of each line, and its frequency of execution.  Green would be good, Pink means never executed (must analyze). 

(b) A way to put up statistics (easy in Excel, I know) on how many lines not executed/executed to report total code coverage. 

Is there any tools/scripts that exist for the csv file that is generated from the pdat/prf file dumped/processed ? 

e.g., a Coburtura-type "Coverage Report" view where packages could be filename or function name.   

Cobertura

  • William,

    How was the coverage information generated?

    John
  • Using the target hardware and the profiling tab under the build properties for my project. It generates a pdat file, which gets converted to PRF and re-processed when I recompile.

    Ive started something in Excel, but more mature tools are always welcome.

    -Will
  • Will,

    Have you tried running Tools->Profile->Process CodeGen Code Coverage

    There is an older training lab on how to use this in CCS: processors.wiki.ti.com/.../CCS_Modules_Library

    Start with the lab on slide 21.

    I am trying this in CCSv7.4 but I am getting an error regarding not having an active project. I am not sure which version of CCS you are using.

    When you select that menu item after having run and collected data it should open a couple of new windows with the coverage info displayed.

    Regards,
    John
  • Will,

    Were you able to try this out? I am getting an error on CCSv7.4 but this did work on older versions. I have filed a defect to track the issue in CCSv7.4. What version of CCS are you running?

    Regards,
    John
  • I am going to close off this thread as we haven't had any responses for a while. The reality is I think your excel solution is going to be the way to go. There is something in CCS but it is not working in the latest versions.
  • JohnS,

    Yes, I've followed through with the Excel Solution. I actually automatically bring in the source code into a worksheet and highlight each line with green or red now.  Hyperlinks are automatically added to the lines in another sheet in excel to those highlighted lines, per the CSV output of the CCS tools. 
     
    I am running CCS 5.1, btw.

    Thanks for the help

    Will