Software analytics and how to draw conclusions out of data Presenting the sw-analytics toolkit! Commercial in Confidence | © Ericsson AB 2015 | 2015-10-14 | Page 1 ( 18 ) context What are software metrics? Which metric is the best? LOC, #defects, #contributors, cyclomatic complexity, ... None? Can SW metrics be used to draw conclusions about software? Commercial in Confidence | © Ericsson AB 2015 | 2015-10-14 | Page 2 ( 18 ) sw-analytics toolkit Scrapes VCS & issue tracker Analyzes everything on function granularity Stores in RDBMS Web-based “Exploratory visualization” Subsystem – file - function Commercial in Confidence | © Ericsson AB 2015 | 2015-10-14 | Page 3 ( 18 ) Treemap - Overview Commercial in Confidence | © Ericsson AB 2015 | 2015-10-14 | Page 4 ( 18 ) Treemap - Overview Commercial in Confidence | © Ericsson AB 2015 | 2015-10-14 | Page 5 ( 18 ) Treemap - subsystems Commercial in Confidence | © Ericsson AB 2015 | 2015-10-14 | Page 6 ( 18 ) Treemap - files Commercial in Confidence | © Ericsson AB 2015 | 2015-10-14 | Page 7 ( 18 ) Treemap - functions Commercial in Confidence | © Ericsson AB 2015 | 2015-10-14 | Page 8 ( 18 ) Chart – file & function Commercial in Confidence | © Ericsson AB 2015 | 2015-10-14 | Page 9 ( 18 ) Chart – file & function Commercial in Confidence | © Ericsson AB 2015 | 2015-10-14 | Page 10 ( 18 ) Chart – file & function Commercial in Confidence | © Ericsson AB 2015 | 2015-10-14 | Page 11 ( 18 ) Coming attractions Defect predictions Automatic redesign/refactoring identification Subsystem – file – function Effort distribution …. Commercial in Confidence | © Ericsson AB 2015 | 2015-10-14 | Page 12 ( 18 ) Defect prediction Sum of all defects Defects 30000 20000 2009 Commercial in Confidence | © Ericsson AB 2015 | 2015-10-14 | Page 13 ( 18 ) 2012 2015 Defect prediction R2 over time 0.55 0.3 2009 2012 Commercial in Confidence | © Ericsson AB 2015 | 2015-10-14 | Page 14 ( 18 ) 2015 Defect prediction per file for 2014 RandomForestRegressor Ground truth Predicted Commercial in Confidence | © Ericsson AB 2015 | 2015-10-14 | Page 15 ( 18 ) predicted/truth conclusions No single metric exists that will tell you what your problem is! SW-analytics toolkit helps you analyze your code in a robust way SW-analytics toolkit have some really cool features coming up! =) Commercial in Confidence | © Ericsson AB 2015 | 2015-10-14 | Page 16 ( 18 ) SW-Analytics toolkit: http://www.github.com/jderehag/swat Commercial in Confidence | © Ericsson AB 2015 | 2015-10-14 | Page 17 ( 18 ) Commercial in Confidence | © Ericsson AB 2015 | 2015-10-14 | Page 18 ( 18 )
© Copyright 2026 Paperzz