CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Program Metrics

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
kda406



Joined: 17 Sep 2003
Posts: 97
Location: Atlanta, GA, USA

View user's profile Send private message

Program Metrics
PostPosted: Thu Jun 28, 2007 11:54 am     Reply with quote

I have been wondering about this for some time. I have searched the forum, the documentation, CCS's site, and even Googled for "Program metrics" CCS compiler with no results.

Here is a snippet from one of my program's statistics (.sta) output file, after compiling on PCH:
Code:
Program metrics:
    Functions               169
    Statements              4765
    Comments                14790
    Volume (V)              432827
    Difficilty (D)          902.3
    Effort to implement (E) 390557488
    Time to implement (T)   6027 hours, 7 minutes
    Est Delivered Bugs (B)  178
    Cyclomatic Complexity   1093
    Maintainability (MI)    121


The first 3 are obvious. Can anyone shed any light on what the other information means? More specifically, I would like to know more about what they mean by (B)! Shocked

Thanks,
Kyle
tavioman



Joined: 22 Feb 2006
Posts: 65

View user's profile Send private message

PostPosted: Thu Jun 28, 2007 2:42 pm     Reply with quote

Yeah!!!
What the hell is "cyclomatic complexity"???
tavioman



Joined: 22 Feb 2006
Posts: 65

View user's profile Send private message

PostPosted: Thu Jun 28, 2007 2:44 pm     Reply with quote

Found the answer.
http://en.wikipedia.org/wiki/Cyclomatic_complexity
kda406



Joined: 17 Sep 2003
Posts: 97
Location: Atlanta, GA, USA

View user's profile Send private message

Begging CCS for units or explanation
PostPosted: Mon Jul 09, 2007 9:38 am     Reply with quote

You know, CCS should really define this stuff if they are going to give it to us.

If I tell you "Speed 30", I might mean 30 mm/hr which is fast for plant growth, but slow if I'm walking. I might mean miles per hour. I might mean km/s, which is quite fast by most measures.

Without definition and units, quantification is useless information. Perhaps we can ignore it, but when the useless information is named with words like "Bugs" it begs the developers to find out what it means.

178 BUGS!?!? Does it mean they think there are this many bugs in my code?

No, I think it means this code has unearthed 178 bugs in the CCS compiler.

-Kyle
Ttelmah
Guest







PostPosted: Mon Jul 09, 2007 10:07 am     Reply with quote

The figure is obviously swapped with the 'effort to implement' figure then!....

Best Wishes
tavioman



Joined: 22 Feb 2006
Posts: 65

View user's profile Send private message

PostPosted: Mon Jul 09, 2007 1:00 pm     Reply with quote

man, this is crap. trim the sta file. Smile
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Jul 09, 2007 1:19 pm     Reply with quote

You can find it all with Google. The "delivered bugs" metric is here:
http://www.verifysoft.com/en_halstead_metrics.html
Konrad



Joined: 15 Sep 2003
Posts: 34

View user's profile Send private message

Program metrics
PostPosted: Tue Jul 10, 2007 3:16 pm     Reply with quote

I knew the meaning of cyclomatic complexity but did wonder what the others were. Thanks PCM programmer.
If Darren reads this post, copy and paste the link into the help files.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group