Академический Документы
Профессиональный Документы
Культура Документы
1
© Oxford University Press 2011. All rights reserved.
Chapter 10
Software Metrics
2
© Oxford University Press 2011. All rights reserved.
Chapter 10
Software Metrics
Objectives
• Software projects need measurement to quantify things for better
monitoring and control over software development
• Software metrics are quantitative measurements
• Various types of software metrics
• Entities to be measured for the software: process, product, and
resource
• Recognition of attributes
• Line-of-code metrics
• Halstead metrics
• Function point analysis metrics
3
© Oxford University Press 2011. All rights reserved.
Evolution
Need ofof Software
Software Testing
Measurement
• Understanding
• Control
• Improvement
4
© Oxford University Press 2011. All rights reserved.
Evolution Software
of Software
Metrics Testing
5
© Oxford University Press 2011. All rights reserved.
Entities to be Measured
• Processes
• Product
• Resource
6
© Oxford University Press 2011. All rights reserved.
Size Metrics
Program Vocabulary
n = n1 + n2
where n = program vocabulary
n1 = number of unique operators
n2 = number of unique operands
Program Length
N = N1 + N2
Where N = program length
N1 = all operators appearing in the implementation
N2 = all operands appearing in the implementation
7
© Oxford University Press 2011. All rights reserved.
Token Count
Program Volume
V = N log2 n
where V = Program volume
N = Program length
n = Program vocabulary
8
© Oxford University Press 2011. All rights reserved.
Function Point Analysis
9
© Oxford University Press 2011. All rights reserved.
Software Testing
Function Myths
Point Analysis
10
© Oxford University Press 2011. All rights reserved.
Function Point Analysis
11
© Oxford University Press 2011. All rights reserved.