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

Software debugging log output control achievement method

A technology of output control and software debugging, applied in the direction of hardware monitoring, program control devices, etc., can solve the problems of large differences and reduce the probability of conflicts, and achieve the effect of reducing performance loss

Active Publication Date: 2015-07-01
SHANDONG INSPUR SCI RES INST CO LTD
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] (2) Number analysis method: analyze a set of data, such as the date of birth of a group of employees. At this time, we find that the first few digits of the date of birth are roughly the same. In this case, the probability of conflict will be very high. However, we found that the last few digits of the year, month, and day indicate a large difference in the number of the month and the specific date. If the latter digits are used to form a hash address, the probability of conflict will be significantly reduced.

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
  • Software debugging log output control achievement method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0022] The implementation method of the software debugging log output control includes two parts: the function log control module and the function log output module. The functions that need to open the log output are added to the hash table that realizes the log switch. The hash table is based on the source program file name and function Hash calculation is performed on the string value of the name, and conflict detection is performed through the hash value; the log output point is searched according to the string value of the program file name and function name, and log output is performed for the function that opens the output control.

[0023] The hash table uses the string value of the source program file name and function name to carry out hash calculation. The calculation formula of the string value is: α=(α+(c*65535)+(c / 65535))*11, where for a character.

[0...

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 particularly relates to a software debugging log output control achievement method. The software debugging log output control achievement method adopts a function log control module and a function log output module. Functions needing to open log output are added into a Hash table for achieving log switching, and character string values of source program file names and function names are used for conducting Hash calculation of the Hash table and conflict detection is performed according to Hash values; log output points perform Hash search according to the character string values of the source program file names and the function names and perform log output for the functions opening log output. The software debugging log output control achievement method utilizes the character string values of the source program file names and the function names to perform Hash calculation and controls output of function logs in a matched mode, and performance loss caused by log control can be effectively reduced at the high-performance requests of driver development and the like.

Description

technical field [0001] The invention relates to the technical field of computer software debugging, in particular to a method for realizing software debugging log output control. Background technique [0002] In recent years, with the continuous development of computer technology and the diversification of economy and lifestyle, people's demand for computer application software in work and life is increasing. With more and more types of application software and larger scale, in order to make the computer operate more efficiently, the current software generally adopts multi-threading technology. However, as the scale of software becomes larger and larger, the complexity of debugging becomes higher and higher. Therefore, in order to facilitate future query, tracking and analysis by the operator, the system will generate a log to record the behavior and status of each thread running. [0003] During the driver software development process or after the software is deployed to ...

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/44G06F11/34
Inventor 李雪生
Owner SHANDONG INSPUR SCI RES INST 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