University of Southern California Center for Systems and Software Engineering Software Metrics and Measurements Supannika Koolmanojwong CS577 1.

Slides:



Advertisements
Similar presentations
Software Metrics and Measurements
Advertisements

Automated Software Testing: Test Execution and Review Amritha Muralidharan (axm16u)
Software Engineering CSE470: Process 15 Software Engineering Phases Definition: What? Development: How? Maintenance: Managing change Umbrella Activities:
Computer Engineering 203 R Smith Project Tracking 12/ Project Tracking Why do we want to track a project? What is the projects MOV? – Why is tracking.
Degree and Graduation Seminar Scope Management
Sixth Hour Lecture 10:30 – 11:20 am, September 9 Framework for a Software Management Process – Artifacts of the Process (Part II, Chapter 6 of Royce’ book)
Using UML, Patterns, and Java Object-Oriented Software Engineering Royce’s Methodology Chapter 16, Royce’ Methodology.
© Copyright Richard W. Selby and Northrop Grumman Corporation. All rights reserved. 0 Process Synchronization and Stabilization February 2007 Rick.
Metrics Project and Process Metrics. Why do we measure? Assessing project status Allows us to track risks Before they go critical Adjust workflow See.
Copyright © 2001, Software Productivity Consortium NFP, Inc. SOFTWAR E PRODUCTIVITY CONSORTIUM Integrating Information Models: the essential element of.
Project Measurement Source: Practical Software Measurement John McGarry, et.al.
COSO Framework A company should include IT in all five COSO components: –Control Environment –Risk Assessment –Control activities –Information and communication.
Project Management Methodology (PMM)
Software Process and Product Metrics
Software Engineering Institute Capability Maturity Model (CMM)
Technical Integrity Assurance For Product Development W. Henson Graves Lockheed Martin Aeronautics Company Russ Campbell.
Cost Management Week 6-7 Learning Objectives
Pre-Project Activities Text Chapters 5 and 6. Pre-Project Activities 1.Contract Review 2.Development Plan 3.Quality Plan.
Test Organization and Management
Dillon: CSE470: SE, Process1 Software Engineering Phases l Definition: What? l Development: How? l Maintenance: Managing change l Umbrella Activities:
Software Quality Assurance Activities
Software Project Management Lecture # 8. Outline Earned Value Analysis (Chapter 24) Topics from Chapter 25.
Fourteenth Lecture Hour 9:30 – 10:20 am, Sunday, September 16 Software Management Disciplines Project Control and Process Automation (from Part III, Chapter.
1 Software Quality CIS 375 Bruce R. Maxim UM-Dearborn.
ARINC PROPRIETARY Measurement and Analysis JD Rosser SC-SPIN January 2008.
Software Engineering Software Process and Project Metrics.
Chapter 6 : Software Metrics
CSI - Introduction General Understanding. What is ITSM and what is its Value? ITSM is a set of specialized organizational capabilities for providing value.
Service Transition & Planning Service Validation & Testing
Software Project Management Lecture # 7. What are we studying today? Chapter 24 - Project Scheduling  Effort distribution  Defining task set for the.
Software Measurement & Metrics
IT Requirements Management Balancing Needs and Expectations.
Measuring Managed Services 0 IT Infrastructure Partnership Team December 9, 2008.
Software Project Management With Usage of Metrics Candaş BOZKURT - Tekin MENTEŞ Delta Aerospace May 21, 2004.
Product Metrics An overview. What are metrics? “ A quantitative measure of the degree to which a system, component, or process possesses a given attribute.”
Software process improvement Framework for SPI SPI support groups, maturity and immaturity models Assessment and gap analysis Education and training Selection.
Quality Activity Matrix Presented by Sandra Toalston President, SanSeek 1.
Software Project Management Lecture # 3. Outline Chapter 22- “Metrics for Process & Projects”  Measurement  Measures  Metrics  Software Metrics Process.
OHTO -99 SOFTWARE ENGINEERING “SOFTWARE PRODUCT QUALITY” Today: - Software quality - Quality Components - ”Good” software properties.
Software Quality Metrics
University of Southern California Center for Systems and Software Engineering Barry Boehm, USC CS 510 Software Planning Guidelines.
Fifth Lecture Hour 9:30 – 10:20 am, September 9, 2001 Framework for a Software Management Process – Life Cycle Phases (Part II, Chapter 5 of Royce’ book)
Process Improvement. It is not necessary to change. Survival is not mandatory. »W. Edwards Deming Both change and stability are fundamental to process.
Software Product Line Material based on slides and chapter by Linda M. Northrop, SEI.
Service Level Agreements Service Level Statements NO YES The process of negotiating and defining the levels of user service (service levels) required.
University of Southern California Center for Systems and Software Engineering Software Metrics and Measurements Supannika Koolmanojwong CS577 1.
CSCI 521 Final Exam Review. Why Establish a Standard Process? It is nearly impossible to have a high quality product without a high quality process. Standard.
SOFTWARE METRICS. Software Process Revisited The Software Process has a common process framework containing: u framework activities - for all software.
Computing and SE II Chapter 15: Software Process Management Er-Yu Ding Software Institute, NJU.
BSBPMG501A Manage Project Integrative Processes Manage Project Integrative Processes Project Integration Processes – Part 1 Diploma of Project Management.
Cmpe 589 Spring 2006 Lecture 2. Software Engineering Definition –A strategy for producing high quality software.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 21 Slide 1 Software evolution 1.
University of Southern California Center for Systems and Software Engineering Software Metrics and Measurements Supannika Koolmanojwong CS577 1.
SOFTWARE PROCESS AND PROJECT METRICS. Topic Covered  Metrics in the process and project domains  Process, project and measurement  Process Metrics.
Ch-1 Introduction The processes used for executing a software project have major effect on quality of s/w produced and productivity achieved in project…
Metrics "A science is as mature as its measurement tools."
Software Engineering (CSI 321) Software Process: A Generic View 1.
Class-oriented metrics – Weighted methods per class, depth of the inheritance tree, number of children, coupling, response for class, lack of cohesion.
CS223: Software Engineering Lecture 21: Unit Testing Metric.
Cmpe 589 Spring Fundamental Process and Process Management Concepts Process –the people, methods, and tools used to produce software products. –Improving.
ISQB Software Testing Section Meeting 10 Dec 2012.
Chapter 11 Project Management.
CS 577b: Software Engineering II
Software Metrics 1.
CS4311 Spring 2011 Process Improvement Dr
Chapter 18 Maintaining Information Systems
د. حنان الداقيز خريف /28/2016 Software Quality Assurance ضمان جودة البرمجيات ITSE421 5 – The components of the SQA.
Software Project Sizing and Cost Estimation
Progression of Test Categories
Software metrics.
Presentation transcript:

University of Southern California Center for Systems and Software Engineering Software Metrics and Measurements Supannika Koolmanojwong CS577 1

University of Southern California Center for Systems and Software Engineering Outline General Concepts about Metrics Example of Metrics Agile Metrics Case Studies –Metrics from Empirical Data – Northrop Grumman –Metrics in IT services – Lockheed Martin 2

University of Southern California Center for Systems and Software Engineering Measurements in daily life 3

University of Southern California Center for Systems and Software Engineering Why do we measure? 4

University of Southern California Center for Systems and Software Engineering 5

University of Southern California Center for Systems and Software Engineering Objectives of software measurement “You can not control what you cannot measure.” – Tom DeMarco “Not everything that counts can be counted. Not everything that is counted counts.” – Albert Einstein 6

University of Southern California Center for Systems and Software Engineering Software Metrics Numerical data related to software development Strongly support software project management activities Can be directly observable quantities or can be derived from one 7

University of Southern California Center for Systems and Software Engineering A simplified measurement information model 8 Ref: Ebert and Dumke 2007 Decisions / Actions Measurements ProcessWork Products Information products Information needs Attributes Results Information Needs, Objectives, Control

University of Southern California Center for Systems and Software Engineering How the software measurements are used? Understand and communicate Specify and achieve objectives Identify and resolve problems Decide and Improve 9

University of Southern California Center for Systems and Software Engineering Measurement Standard 10 ISO/IEC Software Life Cycle Processes ISO/IEC System Life Cycle processes SWEBOK Software Engineering Body of Knowledge PMBOK Project Management Body of Knowledge CMMI Capability Maturity Model Integration ISO Software Process Capability Determination ISO 9001 Quality Management System ISO/IEC 9126 Software Product Quality TL 9000, AS 9100, etc. Objectives adaptations How to do How to do better ISO/IEC 15939:2002 Software Measurement Process How to measure what you are doing

University of Southern California Center for Systems and Software Engineering Ground rules for a Metrics Metrics must be –Understandable to be useful –Economical –Field tested –Highly leveraged –Timely –Must give proper incentives for process improvement –Evenly spaced throughout all phases of development –Useful at multiple levels 11

University of Southern California Center for Systems and Software Engineering Measurements for Senior Management Easy and reliable visibility of business performance Forecasts and indicators where action is needed Drill-down into underlying information and commitments Flexible resource refocus 12

University of Southern California Center for Systems and Software Engineering 13

University of Southern California Center for Systems and Software Engineering Measurements for Project Management Immediate project reviews Status and forecasts for quality, schedule, and budget Follow-up action points Report based on consistent raw data 14

University of Southern California Center for Systems and Software Engineering Metrics for Senior Management 15

University of Southern California Center for Systems and Software Engineering Project management supporting metrics 1.Planning - Metrics serve as a basis of cost estimating, training planning, resource planning, scheduling, and budgeting. 2.Organizing - Size and schedule metrics influence a project's organization. 3.Controlling - Metrics are used to status and track software development activities for compliance to plans. 4.Improving - Metrics are used as a tool for process improvement and to identify where improvement efforts should be concentrated and measure the effects of process improvement efforts. 16

University of Southern California Center for Systems and Software Engineering Measurements for Engineers Immediate access to team planning and progress Get visibility into own performance and how it can be improved Indicators that show weak spots in deliverables Focus energy on software development 17

University of Southern California Center for Systems and Software Engineering 18

University of Southern California Center for Systems and Software Engineering The E4-Measurement Process 19 Objectives, needs Business Process Environment, resources 1. Establish2. Extract3. Evaluate4. Execute Decisions, re- direction, updated plans Ref: Ebert and Dumke 2007

University of Southern California Center for Systems and Software Engineering Aggregation of information 20 Cycle time, quality, cost, productivity, customer satisfaction, resources, skills Sales, cost reduction, innovative products, level of customization Cost reduction, Sales, margins, Customer Service Cash flow, Shareholder value, Operations cost

University of Southern California Center for Systems and Software Engineering SMART goals S pecific - precise M easurable - tangible A ccountable – in line with individual responsibilities R ealistic - achievable T imely – suitable for the current needs 21

University of Southern California Center for Systems and Software Engineering What do you want to measure? Processes –Software-related activities Products –Artifacts, deliverables, documents, capacity Resources –The items which are inputs to the process 22

University of Southern California Center for Systems and Software Engineering Components of software measurements 23

University of Southern California Center for Systems and Software Engineering Example of Metrics Progress / Effort / Cost Indicator Earned value management Requirements / Code Churn Defect-related metrics Test-related metrics System-related metrics 24

University of Southern California Center for Systems and Software Engineering Size How big is the healthcare.gov website? – ons/million-lines-of-code/ 25

University of Southern California Center for Systems and Software Engineering Size Earth System Modeling Framework Project 26

University of Southern California Center for Systems and Software Engineering Progress Indicator 27

University of Southern California Center for Systems and Software Engineering Effort Indicator 28

University of Southern California Center for Systems and Software Engineering Cost Indicator 29

University of Southern California Center for Systems and Software Engineering Earned value management Planned Value (PV) or Budgeted Cost of Work Scheduled (BCWS) Earned Value (EV) or Budgeted Cost of Work Performed (BCWP) 30

University of Southern California Center for Systems and Software Engineering Burndown Chart 31

University of Southern California Center for Systems and Software Engineering Requirements Churn/ Requirements Creep/ Requirements Volatility number of changes to system requirements in each phase/week/increment 32

University of Southern California Center for Systems and Software Engineering Code Churn Software change history Large / recent changes Total added, modified and deleted LOC Number of times that a binary was edited Number of consecutive edits 33

University of Southern California Center for Systems and Software Engineering Code Complexity 34 Gathered from code itself Multiple complexity values Cyclomatic complexity Fan-In / Fan-Out of functions Lines of Code Weighted methods per class Depth of Inheritance Coupling between objects Number of subclasses Total global variables

University of Southern California Center for Systems and Software Engineering Code coverage Degree to which the source code is tested Statement coverage –Has each node in the program been executed? Branch coverage –Has each control structure been evaluated both to true and false? 80% coverage for all general code 90% coverage for critical software component items 35

University of Southern California Center for Systems and Software Engineering Code Coverage 36

University of Southern California Center for Systems and Software Engineering JUnit Code Coverage Tool instruments byte code with extra code to measure which statements are and are not reached. 37 Package Level Converage A Code Coverage Report Line Level Coverage

University of Southern California Center for Systems and Software Engineering Defect reporting metric Can be categorized by –Status Remaining / Resolved / Found –Defect Sources Requirements / Design / Development –Defect found Peer review / unit testing / sanity check –Time Defect arrival rate / Defect age 38

University of Southern California Center for Systems and Software Engineering Defect Status 39

University of Southern California Center for Systems and Software Engineering Defect Density 40

University of Southern California Center for Systems and Software Engineering Test Pass Coverage 41

University of Southern California Center for Systems and Software Engineering Defect Density 42

University of Southern California Center for Systems and Software Engineering Defect Per LOC 43

University of Southern California Center for Systems and Software Engineering Developer Code Review 44 After 60 ‒ 90 minutes, our ability to find defects drops off precipitously

University of Southern California Center for Systems and Software Engineering 45 As the size of the code under review increases, our ability to find all the defects decreases. Don’t review more than 400 lines of code at a time.

University of Southern California Center for Systems and Software Engineering Memory utilization CPU utilization, memory utilization (%) 46

University of Southern California Center for Systems and Software Engineering Network performance 47

University of Southern California Center for Systems and Software Engineering Website-business process-related metrics No. of visitors: new/unique/repeating Referrals: where do they come from? –blog, search engine Bounce rate : immediately click back button Top pages, average time on page 48

University of Southern California Center for Systems and Software Engineering Storage and bandwidth Bandwidth: rate of data movement per time : KB/s, Gbit/s Throughput: work units per time : # accesses/s, IO/s, request/s 49 PRODUCT Throughput PROCESS Throughput

University of Southern California Center for Systems and Software Engineering Top 6 Agile Metrics 50 Ref: Measuring Agility, Peter Behrens

University of Southern California Center for Systems and Software Engineering 51 Ref: Measuring Agility, Peter Behrens Velocity = Work Completed per sprint

University of Southern California Center for Systems and Software Engineering 52

University of Southern California Center for Systems and Software Engineering Case studies Metrics from Empirical Data – Northrop Grumman Metrics in IT services – Lockheed Martin 53

University of Southern California Center for Systems and Software Engineering 54 Richard W. Selby, Northrop Grumman Space Technology, ICSP '09 Title: "Synthesis, Analysis, and Modeling of Large-Scale Mission-Critical Embedded Software Systems"

University of Southern California Center for Systems and Software Engineering 55

University of Southern California Center for Systems and Software Engineering 56

University of Southern California Center for Systems and Software Engineering Case studies Lockheed Martin Consolidated Information Technology Infrastructure Contract (CITIC) Customer: Centers for Medicare & Medicaid Services (CMS) –day-to-day IT Operations & Maintenance (O&M) functions (high availability – 24/7) Service Desk, Mainframe Support (Tier 1), Mid-Tier Support (Tier 2), Desktop Support (Tier 3), Voice, Data, NOC, etc. Performance, Request, Incident, Configuration, Asset, and Change management Security and Disaster Recovery –modernization of the IT infrastructure 57

University of Southern California Center for Systems and Software Engineering Service Measurement Plans & SLAs 58

University of Southern California Center for Systems and Software Engineering 59

University of Southern California Center for Systems and Software Engineering 60

University of Southern California Center for Systems and Software Engineering 61

University of Southern California Center for Systems and Software Engineering 62

University of Southern California Center for Systems and Software Engineering Measurements for progress vs predictions Project PhaseFor MeasurementsFor Predictions Project Management -Effort and Budget Tracking - Requirements Status -Task Status -Top 10 risks - Cost to complete - Schedule evolution Quality Management -Code Stability -Open defects -Review status and follow up -Residual defects -Reliability -Customer satisfaction Requirements Management -Analysis status -Specification progress -Requirements volatility / completeness Construction-Status of documents - Change requests -Review status -Design progress of reqm - Cost to complete -Time to complete TestTest progress (defects, coverage, efficiency, stability - Residual defects - reliability Transition, deployment -Field performance (failure, corrections) - maintenance effort -Reliability -Maintenance effort 63 Ref: Ebert and Dumke, 2007

University of Southern California Center for Systems and Software Engineering Recommended books 64 Software Measurement: Establish - Extract - Evaluate – Execute by Christof Ebert, Reiner Dumke (2010) Practical Software Measurement: Objective Information for Decision Makers by John McGarry, David Card, Cheryl Jones and Beth Layman (Oct 27, 2001)

University of Southern California Center for Systems and Software Engineering References Fenton NE, Software Metrics: A Rigorous Approach, Chapman and Hall, Christof Ebert, Reiner Dumke, Software measurement: establish, extract, evaluate, execute, Springer Richard W. Selby, Northrop Grumman Space Technology, ICSP '09 Title: "Synthesis, Analysis, and Modeling of Large-Scale Mission-Critical Embedded Software Systems“ Measuring Agility, Peter Behrens [Nikora 91] Nikora, Allen P. Error Discovery Rate by Severity Category and Time to Repair Software Failures for Three JPL Flight Projects. Software Product Assurance Section, Jet Propulsion Laboratory, 4800 Oak Grove Drive, Pasadena, CA , November 5,