Instrumentation method for traceless manageable source code manually-defined mark

A technology of source code and stub insertion, which is applied in the field of dynamic analysis of computer programs, can solve problems such as the inability to guarantee the correctness of the code insertion process, increase the complexity of program logic, and the inability to visualize source code, so as to improve visualization capabilities, improve management capabilities, The effect of improving usability

Inactive Publication Date: 2011-10-12
NANJING UNIV
View PDF3 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Bytecode instrumentation directly modifies the bytecode file, the source code of the inserted bytecode cannot be visualized, and the correctness of the code insertion process cannot be guaranteed
Aspect-oriented stub insertion adds horizontal aspect relationship on the basis of program vertical inheritance relationship, which increases the logical complexity of the program
[0005] At present, the instrumentation technology mainly has the problems of instrumentation point and its code visualization, inserted code management, automatic positioning of instrumentation point, and low performance of automatic instrumentation

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Instrumentation method for traceless manageable source code manually-defined mark
  • Instrumentation method for traceless manageable source code manually-defined mark
  • Instrumentation method for traceless manageable source code manually-defined mark

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0058] The technical solution of the present invention will be further described in detail below through the accompanying drawings.

[0059] The present invention mainly includes two types of plugging solutions: one is to manually define the type of sign plugging, and the other is to automatically plug in different application types.

[0060] The manual piling solution supports the analysts to flexibly define the piling points in the entire project according to the analysis needs and manage the piling points. The inserted instrumentation code will not destroy the original code, and finally you can select several instrumentation points to run with the original file as needed. The complete flow chart of the entire manual instrumentation is as follows figure 1 As shown, including the following steps:

[0061] Step 10: The beginning of the entire manual pile insertion process, at this time a project is opened and ready to be analyzed by pile insertion;

[0062] Step 11: Define the insert...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an instrumentation method for a traceless manageable source code manual defined mark. The method comprises the following steps of: 10, opening a project; 11, defining an instrumentation mark on a source code editor and defining instrumentation points in the entire project; 12, examining all the definitions of all instrumentation points, entering a step 13 for modifying if a wrong instrumentation point is found, and directly entering a step 14 if no wrong instrumentation point is found; 13, modifying the definition of the wrong instrumentation point to be correct; 14, combining the instrumentation points with an original source file to generate a new source file; and 15, compiling the new source file to generate a byte code file. The method has the major characteristics of visible instrumentation codes, centralized management of code instrumentation, traceless instrumentation process, automatic positioning of instrumentation points, expandable automatic instrumentation and efficient automatic instrumentation.

Description

Technical field [0001] The invention relates to a dynamic analysis of a computer program, and mainly relates to a method for manually defining a mark with a traceless and manageable source code. Background technique [0002] Program analysis usually uses static program analysis and dynamic program analysis to automatically analyze program behavior to improve software quality. Dynamic program analysis often uses instrumentation methods to collect dynamic program behaviors. Some program behaviors related to the operating environment can only be collected through instrumentation, while static program analysis cannot be analyzed. In the software development process, the code reviewer uses the source code instrumentation method to review the code after the code writing stage is completed. Usually, the reviewer has the permission to read the source code but is inconvenient to modify the code. Through the analysis of the program's running behavior, the errors in the code can be found a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
Inventor 张天陈华杰
Owner NANJING UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products