State University of New York at Buffalo
The Impact of Code Smell Auto-Refactoring on Application Resource Consumption
Abstract
dc:description.abstractThe unbounded increase in the usage of software in everyday life has prompted software companies to not only increase the production of new software, however, also increase the rates at which this software is designed and developed. In such an environment, the software industries are competing with each other to get their software earlier to the market. Efficient and reliable design and development of software in this widely competitive and fast environment bring new challenges. Faster development and delivery of software offers many advantages, but such speedy design processes also require careful management of the software source code and data, i.e. writing classes correctly, writing method code so they handle only a single operation and the required data, eliminating unnecessary middleman classes, removing unwanted cycles in code, and maintaining proper inter class and inter method communications. Automated refactoring of code is a solution to solving these aforementioned issues. Existing systems closely couple refactoring and code maintainability, and do not consider excess resource consumption as a side effect of code refactoring. Code refactoring is either related to code quality, readability, and maintainability, therefore refactoring is only done when those aforementioned cases are challenged. In this dissertation, we propose a framework that de-couples code refactoring and code maintainability, and treats code refactoring as a full-fledged activity that impacts resource consumption like cpu and memory usage. We regard code smell refactoring as an important part of the end-to-end process, and express this in terms of resource use. Automated batch refactoring has become a de-facto mechanism to restructure software that may have significant design flaws negatively impacting the code quality and main- tainability. Although automated batch refactoring techniques are known to significantly improve overall software quality and maintainability, their impact on resource utilization is not well studied. This thesis investigates 16 code smell types and their joint effect on resource utilization for 31 open source applications. It provides a detailed empirical analysis of the change in application CPU and memory utilization after refactoring specific code smells in isolation and in batches. This analysis is then used to train regression algorithms to predict the impact of batch refactoring on CPU and memory utilization before making any refactoring decisions...
Degree
thesis:*- Grantor dc:publisher
- State University of New York at Buffalo
- Year dc:date.issued
- 2022
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Imran, Asif; 0000-0002-1780-0296
- Contributors dc:contributor
-
- Kosar, Tevfik
- Computer Science and Engineering
Subjects
dc:subject × 1Rights
dc:rights- Statement dc:rights
-
- Copyright retained by author. Users of works found in University at Buffalo Institutional Repository (UBIR) are responsible for identifying and contacting the copyright owner for permission to reuse. University at Buffalo Libraries do not manage rights for copyright-protected works and cannot assist with permissions.
- Language dc:language
- eng
Identifiers
dc:identifier.*- Handle dc:identifier
- http://hdl.handle.net/10477/88613