发明名称 ENHANCEMENTS TO LOGGING OF A COMPUTER PROGRAM
摘要 Techniques are described for providing recommendations to enhance the logging code in a computer program. In particular, the methods described herein can identify source code locations which lack log printing statements or contain noisy log printing statements. The methods analyze static call graph of the source code, the corresponding commit and bug history, and propose recommendations to enhance logging. The logging behavior in methods whose log printing statements have been significantly modified can be considered to be ideal. The analysis discovers such methods and quantifies their logging behavior. It then compares this logging behavior with the logging behavior of highly critical and/or less critical methods to generate logging enhancement recommendations.
申请公布号 US2015378863(A1) 申请公布日期 2015.12.31
申请号 US201414458279 申请日期 2014.08.13
申请人 VMWARE, INC. 发明人 BALACHANDRAN VIPIN
分类号 G06F11/34;G06F11/30 主分类号 G06F11/34
代理机构 代理人
主权项 1. A method for enhancing logging code in a computer program, said method comprising: under control of one or more computer systems configured with executable instructions, ranking a plurality of methods in the source code of a computer program based on a relative importance value computed for each method;identifying a method that exhibits ideal logging behavior for the computer program, the method identified based at least in part on historical logging code modifications of the method:computing a logging behavior value for each of the plurality of methods;comparing the logging behavior value of a method having a highest relative importance value with the logging behavior value of the method that exhibits ideal logging behavior; andgenerating a recommendation for enhancing the logging code based at least in part on comparing the logging behavior value of the method having the highest relative importance value and the logging behavior value of the method that exhibits ideal logging behavior.
地址 Palo Alto CA US