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

Program log record obtaining method and device and electronic device

An acquisition method and log technology, applied in the direction of electrical digital data processing, instrumentation, error detection/correction, etc., can solve the problems that are not suitable for testing or online environment, and the way of program log tracking is inconvenient.

Pending Publication Date: 2018-12-18
KINGSOFT
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If ANR occurs in the application, a dedicated developer needs to find the source of UI thread blocking from the trace file or the / data / anr / trace.txt directory file on the terminal device. This method is more suitable for use in the development environment. Very suitable for testing or online environments; and it is inconvenient to install third-party tools for program log tracking

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
  • Program log record obtaining method and device and electronic device
  • Program log record obtaining method and device and electronic device
  • Program log record obtaining method and device and electronic device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0051] An embodiment of the present invention provides a method for obtaining program log records, which can simply and conveniently track and record application program logs, and is suitable for testing environments or online loop mirrors.

[0052] figure 1 It is a schematic flowchart of a method for acquiring program log records according to an embodiment of the present invention. The method of this embodiment can be applied to the performance monitoring and analysis of the terminal application program in the development, testing or online environment, especially the monitoring and analysis of the slow information of the application program in the running environment of the Android device.

[0053] Such as figure 1 As shown, the method for obtaining program log records in this embodiment may include:

[0054] Step 101. Obtain the installation address of the application program installation package in the terminal. The application program installation package includes: a co...

Embodiment 2

[0079] An embodiment of the present invention provides a device for obtaining program log records, which can simply and conveniently track and record application program logs, and is suitable for testing environments or online loop mirrors.

[0080] Figure 5 It is a schematic block diagram of the structure of the program log record acquisition device in the embodiment of the present invention, see image 3 , the device of this embodiment may include an address obtaining module 11 , an interface calling module 12 and an execution recording module 13 .

[0081] Wherein, the address acquisition module 11 is configured to acquire the installation address of the application installation package in the terminal; the application installation package includes: a command line log record operation file.

[0082] The interface calling module 12 is configured to receive a user instruction, and call a system interface to access the command line log record operation file according to the us...

Embodiment 3

[0102] An embodiment of the present invention further provides an electronic device, the electronic device including the device described in any one of the foregoing embodiments.

[0103] Figure 7 It is a schematic structural diagram of an embodiment of the electronic device of the present invention, which can realize the present invention Figure 1-3 The flow of the illustrated embodiment, such as Figure 7 As shown, the above-mentioned electronic equipment may include: a housing 41, a processor 42, a memory 43, a circuit board 44 and a power supply circuit 45, wherein the circuit board 44 is arranged inside the space enclosed by the housing 41, and the processor 42 and the memory 43 Set on the circuit board 44; the power supply circuit 45 is used to supply power to the various circuits or devices of the above-mentioned electronic equipment; the memory 43 is used to store executable program codes; the processor 42 reads the executable program codes stored in the memory 43 t...

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 embodiment of the invention discloses a program log record obtaining method and device and an electronic device, which relate to the technical field of application program testing, and can simplyand conveniently realize the tracking and recording of application program log. The method comprises the following steps of: obtaining an installation address of an application program installation package in a device, wherein the application program installation package comprises a command line log record running file; receiving a user instruction and calling a system interface to access the command line log record running file, wherein the user instruction includes the installation site; executing the command line log record running file, and recording the information of the interface function cal by the main thread in the application testing process , wherein the information of the interface function includes the name of the interface function and the time consumed for calling the interface function. The invention is applicable to the positioning analysis of the jam and slowness information in the operation of an application program.

Description

technical field [0001] The invention relates to the technical field of application program testing, in particular to a program log record acquisition method, device and electronic equipment. Background technique [0002] With the development of Internet and mobile terminal technology, a large number of terminal applications appear, and the smoothness of application operation directly affects the quality of user experience. A slight freeze during the running of the application will generally cause the user's interface operation to wait for a second or two before returning to normal operation, while a severe freeze may cause the device to directly pop up the application without responding (ANR: Application Not Responding), allowing the user to choose whether to continue waiting or close the application. Therefore, after an application is developed, it is necessary to conduct a performance test to reduce or avoid stuttering and improve user experience, which is a key factor 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): G06F11/36
CPCG06F11/3636G06F11/3688
Inventor 郭艳华
Owner KINGSOFT