View previous topic :: View next topic |
Author |
Message |
kda406
Joined: 17 Sep 2003 Posts: 97 Location: Atlanta, GA, USA
|
Program Metrics |
Posted: Thu Jun 28, 2007 11:54 am |
|
|
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)!
Thanks,
Kyle |
|
![](templates/subSilver/images/spacer.gif) |
tavioman
Joined: 22 Feb 2006 Posts: 65
|
|
Posted: Thu Jun 28, 2007 2:42 pm |
|
|
Yeah!!!
What the hell is "cyclomatic complexity"??? |
|
![](templates/subSilver/images/spacer.gif) |
tavioman
Joined: 22 Feb 2006 Posts: 65
|
|
![](templates/subSilver/images/spacer.gif) |
kda406
Joined: 17 Sep 2003 Posts: 97 Location: Atlanta, GA, USA
|
Begging CCS for units or explanation |
Posted: Mon Jul 09, 2007 9:38 am |
|
|
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 |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah Guest
|
|
Posted: Mon Jul 09, 2007 10:07 am |
|
|
The figure is obviously swapped with the 'effort to implement' figure then!....
Best Wishes |
|
![](templates/subSilver/images/spacer.gif) |
tavioman
Joined: 22 Feb 2006 Posts: 65
|
|
Posted: Mon Jul 09, 2007 1:00 pm |
|
|
man, this is crap. trim the sta file. ![Smile](images/smiles/icon_smile.gif) |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
![](templates/subSilver/images/spacer.gif) |
Konrad
Joined: 15 Sep 2003 Posts: 34
|
Program metrics |
Posted: Tue Jul 10, 2007 3:16 pm |
|
|
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. |
|
![](templates/subSilver/images/spacer.gif) |
|