Title :
Move code refactoring with dynamic analysis
Author :
Kimura, Shunji ; Higo, Y. ; Igaki, Hiroshi ; Kusumoto, Shinji
Author_Institution :
Grad. Sch. of Inf. Sci. & Technol., Osaka Univ., Suita, Japan
Abstract :
In order to reduce coupling and increase cohesion, we refactor program source code. Previous research efforts for suggesting candidates of such refactorings are based on static analysis, which obtains relations among classes or methods from source code. However, these approaches cannot obtain runtime information such as repetition count of loop, dynamic dispatch and actual execution path. Therefore, previous approaches might miss some refactoring opportunities. To tackle this problem, we propose a technique to find refactoring candidates by analyzing method traces. We have implemented a prototype tool based on the proposed technique and evaluated the technique on two software systems. As a result, we confirmed that the proposed technique could detect some refactoring candidates, which increase code quality.
Keywords :
program diagnostics; software maintenance; software quality; system monitoring; code quality; dynamic analysis; dynamic dispatch; method traces; program source code refactoring; runtime information; static analysis; Cloning; Conferences; Data visualization; Image color analysis; Performance analysis; Software maintenance; Move Method refactoring; dynamic analysis; refactoring; software maintenance;
Conference_Titel :
Software Maintenance (ICSM), 2012 28th IEEE International Conference on
Conference_Location :
Trento
Print_ISBN :
978-1-4673-2313-0
DOI :
10.1109/ICSM.2012.6405324