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

Output method, acquisition method, monitoring method and device of program internal information

An internal information and output method technology, applied in the computer field, can solve the problems of error-prone, high cost, and high implementation cost, and achieve the effect of being less error-prone, low-cost, and ensuring completeness and correctness.

Active Publication Date: 2017-12-15
ALIBABA GRP HLDG LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The way of adding API in the aforementioned first type of solution generally requires a lot of design and coding work: externally, it is usually necessary to add an independent or shared service interface to provide query services externally in the form of API; at the same time, it usually involves the use of Multi-threading technology, even involving the maintenance of thread pools, supports external queryers to query the internal information of the program in this way; at the same time, in order to solve the problem of dirty reading, that is, the information being read by the reading thread is rewritten by other processes and threads, resulting in the information being read Incorrect, lock technology also needs to be involved
This solution is costly to implement, and it will increase the complexity of the service program, which will increase the maintenance cost
Such a solution is usually used in large-scale service programs or operating system drivers that do not spare the cost, and is completely inapplicable to general programs.
[0006] In the above-mentioned second type of scheme, the cost of giving the internal information of the program in the form of Log / shared memory is usually very low, and the complexity of the service program will not be significantly increased, but the service program is giving the internal information of these programs. Usually, there is only one copy of the Log file / shared memory, and these program internal information will be mixed with other Log / shared memory information. It is difficult for the monitoring program / test case to filter these program internal information from all the information, or need to It can be done at a high cost: the high cost is mainly reflected in the need to write a lot of Parsers and maintain these Parsers; and it is error-prone, especially when adding new output Logs, writing code for shared memory, or modifying existing outputs Log, when writing shared memory code, errors are more likely to occur and are not easy to be noticed;
[0007] There is only one log file / shared memory, and the service program may be multi-threaded, so the internal information of the program given by different threads will also be mixed together, which is difficult to distinguish, error-prone, or costly;
[0008] Errors may occur in any program, so the internal information of the program given in the form of Log / shared memory may be incomplete or incorrectly modified. In the existing technology, these errors cannot be detected

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
  • Output method, acquisition method, monitoring method and device of program internal information
  • Output method, acquisition method, monitoring method and device of program internal information
  • Output method, acquisition method, monitoring method and device of program internal information

Examples

Experimental program
Comparison scheme
Effect test

test Embodiment 73

[0178] Further, the mark remover 724 can send the internal information of the program after removing the mark to the external monitoring device, that is, the monitoring program / test case 73, so as to realize the monitoring of the internal information of the program.

[0179] The data interface assembler 725 is configured to assemble the internal information of the program into a data interface that the monitoring program / test case 73 can read, and send it to the monitoring program / test case 73 .

[0180] The monitoring process of program internal information includes the following steps (1) to (7):

[0181] (1) When the service program 76 needs to give the program internal information 74, it calls the information acquirer 711, and gives all the program internal information 74 in the original format to the information acquirer 711, and also gives the current process ID and thread ID to the information acquirer 711. acquirer 711;

[0182] (2) The information acquirer 711 calls ...

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 present application discloses an output method, acquisition method, monitoring method and device for program internal information; wherein, the output method includes: obtaining program internal information; adding one or more marks to the program internal information; adding processing the program internal information marked with the one or more flags to generate an information block; and outputting the information block to the program information set. The application can reliably output or allow the outside to obtain / monitor the internal information of the program at low cost.

Description

technical field [0001] The invention relates to the field of computers, in particular to an output method, acquisition method, monitoring method and device for program internal information. Background technique [0002] At present, there are two main ways to obtain internal information of programs (including processes, threads, etc.) during execution: [0003] The first type of technical solutions such as figure 1 Shown: Add an API (Application Programming Interface, application programming interface) in the service program, and the monitoring program / test case obtains the internal information of the program by calling the API. [0004] The second type of technical solutions such as figure 2 Shown: The service program gives the internal information of the program in the form of Log (log) / shared memory, and the monitoring program / test case obtains the internal information of the program by reading the Log / shared memory. [0005] The method of adding API in the aforementio...

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 Patents(China)
IPC IPC(8): G06F9/44
Inventor 王立赵婉萍谭淑丹刘立川
Owner ALIBABA GRP HLDG 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