Log stack information analysis method and apparatus, computer device, and storage medium

An information analysis and stacking technology, applied in the field of log stack information analysis and computer-readable storage media, can solve problems such as the inability to effectively evaluate the occurrence number and severity of exceptions, inconvenience for R&D personnel to obtain and analyze, and a large amount of stack information. , to achieve the effect of intuitive and effective times and severity, convenient analysis and display, and improved analysis ability

Pending Publication Date: 2019-03-26
CHINA PING AN LIFE INSURANCE CO LTD
View PDF8 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, usually the stack information in the log file is large and scattered, which is not convenient for developers to obtain and analyze. As a result, the stack information in the log cannot be used to intuitively and effectively evaluate the occurrence and severity of exceptions. This pain point is very helpful for those who focus on It is more obvious for software performance testers

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
  • Log stack information analysis method and apparatus, computer device, and storage medium
  • Log stack information analysis method and apparatus, computer device, and storage medium
  • Log stack information analysis method and apparatus, computer device, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0043] figure 1 It is a flow chart of a preferred embodiment of the log stack information analysis method of the present invention. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

[0044] refer to figure 1 As shown, the log stack information analysis method specifically includes the following steps.

[0045] S1. When an operation instruction for acquiring a log file is received, acquire an operation log file of the tested software, and filter out exception stack information from the operation log file.

[0046] In a computer, a log file is a file that records events that occur while the operating system or other software is running. Adding program logs to the software can track the trajectory of the software code when it is running, and reflect the historical operation of the software, so that developers and testers can use log files to troubleshoot problems.

[0047]Among them, the monitoring con...

other Embodiment approach

[0059] In other embodiments, the operation log file may also be a log file obtained by the computer device from other terminal devices through a network or a serial port, for example, by a terminal device such as a smart phone, a tablet computer or a desktop computer on which the software program to be tested is installed. The software operation log file.

[0060] In this step S1, by filtering the abnormal stack information in the log file, the invalid information in the log file is eliminated, and the interference of redundant data and invalid data to the development / test troubleshooting is reduced.

[0061] S2. Obtain a complete function call relationship that causes the exception to occur from each filtered exception stack information.

[0062] Wherein, a log file may include multiple stack information, and each stack information includes a calling relationship between multiple functions. Obtaining the function in the stack information can be achieved by obtaining the func...

Embodiment 2

[0126] Figure 4 It is a structural diagram of a preferred embodiment of the log stack information analysis device of the present invention.

[0127] refer to Figure 4 As shown, the log stack information analysis device 10 may include: an exception stack information acquisition unit 11 , a function call relationship determination unit 12 , a function index relationship table creation unit 13 , an aggregation unit 14 , a display control unit 15 , and an analysis unit 16 .

[0128] The exception stack information acquiring unit 11 is configured to acquire the running log file of the software under test when receiving the operation instruction of acquiring the log file, and filter out the exception stack information from the running log file.

[0129] Among them, the monitoring content of the log file can be printed out in a specific format and content according to user settings. In this embodiment, the running log file of the tested software includes the function call stack i...

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

A log stack information analysis method comprise that following step of: obtaining a running log file and filtering abnormal stack information from the running log file; Obtaining the complete function call relationship that causes the exception from each filtered exception stack information; According to the calling relation between functions in each exception stack information, the function index relation table corresponding to each exception stack information is established. The function index relation table corresponding to all the selected abnormal stack information is aggregated, and thetree logical structure list is established and stored. And loading the tree-shaped logical structure list, and displaying the function and the function calling relation in the abnormal stack information in a tree-shaped structure according to the tree-shaped logical structure list. The invention also provides a log stack analysis device, a computer device and a readable storage medium. The invention aggregates the function calling relationship of the abnormal stack in the log file and displays the function calling relationship in a tree structure, so that the abnormal situation is intuitivelyevaluated in the software performance test.

Description

technical field [0001] The invention relates to the technical field of software testing, in particular to a log stack information analysis method and device, a computer device and a computer-readable storage medium. Background technique [0002] With the continuous development of the software industry, more and more various software and application programs are installed on smart terminals such as mobile phones, making people's life more and more convenient. Applications and software need to go through the testing phase before release. Only when the relevant developers repair all the defects found in the testing phase and meet the release indicators, the application is allowed to face users. In the R&D process, whether it is the development phase or the testing phase, R&D personnel usually use various log information to troubleshoot / fix defects. The most common clue in the log information is the function call stack information. However, usually the stack information in the...

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
CPCG06F11/3692
Inventor 原鹏飞
Owner CHINA PING AN LIFE INSURANCE 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