Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Automatic instrumentation, compiling and installing method and system

An installation method and stub insertion technology, applied in the field of application program compilation, to achieve the effect of improving efficiency

Active Publication Date: 2015-05-06
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF5 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Based on this, it is necessary to provide a method and system for automatic pile-insertion compilation and installation for the technical problems that the existing technology needs to manually write the pile-insertion command and compile and install.

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
  • Automatic instrumentation, compiling and installing method and system
  • Automatic instrumentation, compiling and installing method and system
  • Automatic instrumentation, compiling and installing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The present invention will be described in further detail below in conjunction with the accompanying drawings and specific embodiments.

[0022] Such as figure 1 Shown is a work flow chart of an automatic pile insertion compilation and installation method of the present invention, including:

[0023] Step S101, including: searching for the main program file from the specified project, adding the storage location of the coverage file used to save the code coverage result in the main program file, and adding when the program exits abnormally, to the Write the code of the coverage data into the coverage file in the storage location, the code coverage result is obtained after performing the coverage statistics function, obtain the device association file, analyze the device association file to obtain the device association file identifier, and obtain the preset Set the compiled configuration file to enable the coverage statistics function, and execute step S102;

[0024] ...

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 automatic instrumentation, compiling and installing method and a system. The method comprises the following steps of searching a main program file from appointed project engineering; adding a storage position of a coverage rate file which is used for storing a code coverage rate result to the main program file, and adding a code for writing coverage rate data into the coverage rate file at the storage position when the program abnormally exits; acquiring an equipment-associated file, and analyzing the equipment-associated file to obtain an equipment-associated file mark; obtaining a preset compiling configuration file for setting and starting a coverage rate statistical function; adding an instrumentation file to the project engineering, adding an instrumentation entry function which is used for calling the instrumentation file code to the code file, and compiling to obtain the instrumented application program; if a packaging option is needing to be packed, executing the packaging step, or else, executing the program installation step. According to the automatic instrumentation, compiling and installing method and system, the instrumentation and compiling of the project engineering are automatically executed; the instrumentation and compiling efficiency are improved.

Description

technical field [0001] The present invention relates to the technical field related to application program compilation, in particular to a method and system for automatic stub compilation and installation. Background technique [0002] Program instrumentation technology is to insert some probes (also called "detectors") into the program on the basis of ensuring the original logical integrity of the program under test, and throw out the characteristic data of the program running through the execution of the probes. The analysis of these data can obtain the control flow and data flow information of the program, and then obtain dynamic information such as logic coverage, so as to realize the method of testing purpose. [0003] However, the existing instrumentation technology requires programmers or testers to write various instrumentation commands into the source code, which requires frequent manual setting operations and compilation and installation, which is inefficient. Co...

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): G06F9/445
Inventor 潘晓明
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products