Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for tracking internal call chain of java program by inserting code

A technology of call chain and code, which is applied in the field of java call chain tracking, can solve problems such as high debugging cost, slow problem location, difficulty in familiarizing business logic, etc., and achieves the effect of less intrusion and fast loading speed

Pending Publication Date: 2021-04-16
GUANGZHOU FAISCO INFORMATON TECH
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The present invention provides a method for tracking the internal call chain of a java program by inserting codes, aiming at the problems of difficult business logic familiarization, high debugging costs, and slow problem location when the above-mentioned java program has complex method call logic.

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
  • Method for tracking internal call chain of java program by inserting code
  • Method for tracking internal call chain of java program by inserting code

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0022] Example 1, such as figure 1 , figure 2 As shown, the present invention provides a method for tracking the internal call chain of a java program by inserting code, which mainly solves the problems of difficult familiarity with business logic, high debugging cost and slow problem location when the java program has complex method call logic question.

[0023] It includes invocation start, business method 1 start, business method 1-1 start, business method 1-1 end, business method 1 end, call end,

[0024] Insert pointcut 1 after the start of the call and before the start of business method 1;

[0025] Insert pointcut 2 after the end of business method 1 and before the end of the call;

[0026] Insert pointcut 3 after pointcut 1 and before business method 1 starts, and after business method 1 starts and before business method 1-1 starts;

[0027] Insert cut point 4 after the end of business method 1-1 and before the end of business method 1, and after the end of busine...

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 belongs to the field of java call chain tracking, and relates to java call chain tracking of CTW based on AspectJ, in particular to a method for tracking an internal call chain of a java program by inserting a code. The method sequentially comprises the following steps of: starting calling, starting a service method 1-1, ending the service method 1-1, ending the service method 1 and ending the calling, and inserting a tangent point in the steps; and the required code being inserted into the tangent point by using the CTW function of the AspectJ. According to the method, codes are modified and inserted in the compiling stage through AspectJ, original service logic of the codes is not affected, invasiveness is small, the loading speed is high, a calling method needing to be monitored is specified through an expression, convenience, simplicity and accuracy are achieved. And the generated json file simply and clearly displays a method calling sequence, consumed time and changes of method parameters before and after calling, so that great convenience is provided for familiarity with business logic, code performance troubleshooting and problem positioning.

Description

technical field [0001] The invention belongs to the field of java call chain tracking, relates to the AspectJ-based CTW java call chain tracking, and in particular relates to a method for tracking the internal call chain of a java program by inserting codes. Background technique [0002] Nowadays, the java programming language is booming, and there are a large number of programmers engaged in java programming. They need to be familiar with business logic, write code, debug and run, locate problems, etc., but due to the code style, readability and execution efficiency are not Uniform mandatory standards, which leads to programmers spending more time in the face of complex method call logic, whether it is familiarizing with the logic, debugging and running, or locating problems. Contents of the invention [0003] The present invention provides a method for tracking the internal call chain of a java program by inserting codes, aiming at the problems of difficult familiarizati...

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/36G06F9/448
Inventor 黎里颖
Owner GUANGZHOU FAISCO INFORMATON TECH