Recording method of program behavior level calling relationship and related equipment

A technology of invocation relationship and behavior, applied in program control design, program control device, execution paradigm, etc., can solve the problems of low log analysis accuracy and chaotic hierarchical invocation relationship.

Pending Publication Date: 2021-03-23
TENCENT TECH (SHENZHEN) CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] With the increasing complexity of software systems, cross-machine, multi-process, and multi-thread applications are popularized, making the logs of program behaviors of different machines, different processes, and different threads manually written by developers mixed together, resulting in In the subsequent log analysis, there will be a situation where the hierarchical call relationship is confused due to the confusion of the log, which makes the accuracy of the log analysis lower.

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
  • Recording method of program behavior level calling relationship and related equipment
  • Recording method of program behavior level calling relationship and related equipment
  • Recording method of program behavior level calling relationship and related equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0086] The solution of the present application can use the machine ID, process ID and thread ID corresponding to the program behavior to automatically generate the behavior log of the program behavior, and uniquely represent the calling level of the program behavior through the calling identifier in the behavior log, so that the program behavior in the log The hierarchical call relationship is concise and clear, thereby improving the accuracy of subsequent log analysis.

[0087] Among them, the program behavior refers to the running behavior of the program, the calling or calling behavior between programs, etc. during the software development process. For example, when program A runs, program A calls program B and program E in turn, and program B calls program C and program Program D, wherein, the behavior of program A calling program B, and the behavior of program B calling program C, etc., can all be called one-time program behavior.

[0088] The program in this article can ...

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 a program behavior hierarchical calling relationship recording method and device, a server and a storage medium. The method comprises the steps: obtaining a machine identifier,a process identifier and a thread identifier corresponding to a program behavior under the condition that the program behavior is monitored; obtaining a behavior log corresponding to the program behavior at least based on the machine identifier, the process identifier and the thread identifier corresponding to the program behavior; wherein the behavior log comprises a calling identifier, and thecalling identifier uniquely represents a calling level of the program behavior. Visibly, the behavior log of the program behavior is automatically generated by utilizing the machine identifier, the process identifier and the thread identifier corresponding to the program behavior instead of depending on manual writing of developers, so that the calling hierarchy of the program behavior is uniquelyrepresented by utilizing the calling identifier; therefore, the hierarchical calling relationship of the program behaviors in the log is concise and clear, and the accuracy of subsequent log analysisis improved.

Description

technical field [0001] The present application relates to the technical field of software development, in particular to a recording method and related equipment for program behavior level call relations. Background technique [0002] In the process of software development, the hierarchical call relationship between program behaviors is important information for analyzing program behaviors, which can be used to quickly locate and solve related problems. [0003] At present, the hierarchical call relationship of program behavior relies on developers to manually write on the basis of program behavior logs for subsequent analysis of program behavior. [0004] With the increasing complexity of software systems, cross-machine, multi-process, and multi-thread applications are popularized, making the logs of program behaviors of different machines, different processes, and different threads manually written by developers mixed together, resulting in In the subsequent log analysis, ...

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
IPC IPC(8): G06F9/448
CPCG06F9/4482Y02D10/00
Inventor 周勇钧鲁四喜郑越罗慧
Owner TENCENT TECH (SHENZHEN) CO LTD
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