A method and device for analyzing crash logs

By analyzing the crash time and buried point data in the crash log, the crash time period is determined, which solves the problem of positioning problems in mobile APPs, achieves fast and accurate fault location, and improves work efficiency.

CN111435326BActive Publication Date: 2024-09-20BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910034829.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-01-15
Publication Date
2024-09-20
Estimated Expiration
2039-01-15

AI Technical Summary

Technical Problem

In mobile APP, when a problem occurs on the client, the process of locating the problem is very difficult and takes a lot of time.

Method used

By obtaining the crash time in the crash log, combined with the exposure data and click data, the crash time period is determined, and the page jump process is analyzed to restore the user's operation steps.

Benefits of technology

Quickly and accurately analyze the page jump process to help developers locate problems faster, reduce the impact of APP abnormalities on users, and improve work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111435326B
    Figure CN111435326B
Patent Text Reader

Abstract

The present invention discloses a method and device for analyzing a crash log, and relates to the field of computer technology. A specific implementation of the method includes: obtaining a crash log, and extracting the crash time from the crash log; obtaining exposure buried point data, and determining the crash time period according to the exposure buried point data and the crash time; and analyzing the page jump process according to the exposure buried point data and click buried point data within the crash time period. This implementation can solve the technical problem that it takes a lot of time to locate the problem.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for analyzing a crash log. Background Art

[0002] With the rapid development of mobile Internet, the number of mobile APPs (Application) is increasing, and the number of mobile client users has exceeded that of traditional PC (Personal Computer). As clients are overly dependent on releasing new versions, the quality requirements for mobile APPs are also getting higher and higher.

[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art: due to the uneven parameters of the client and the complexity of the network environment, when a problem occurs on the client, it is very difficult to locate the problem, and it often takes a lot of time to locate the problem. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a method and apparatus for analyzing a crash log to solve the technical problem of taking a lot of time to locate the problem.

[0005] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for analyzing a crash log is provided, comprising:

[0006] Obtain a crash log, and extract a crash time from the crash log;

[0007] Acquire exposure point data, and determine the crash time period according to the exposure point data and the crash time;

[0008] The page jump process is analyzed based on the exposure tracking data and click tracking data within the crash time period.

[0009] Optionally, obtaining exposure burying point data, and determining the crash time period according to the exposure burying point data and the crash time, includes:

[0010] According to the device identifier, the exposure burying point data is obtained from the burying point database; wherein the exposure burying point data includes the device identifier, the exposure burying point identifier and the reporting time;

[0011] Taking the crash time as the end point, searching forward in the exposure tracking data for the exposure tracking data reporting time of the first page triggered by application startup;

[0012] The time interval between the exposure embedding data reporting time of the first page and the crash time is taken as the crash time period.

[0013] Optionally, the process of analyzing page jumps according to the exposure tracking data and click tracking data within the crash time period includes:

[0014] Determine the page within the crash time period and the jump path of the page according to the exposure buried point data within the crash time period;

[0015] According to the device identifier, the click embedding data within the crash time period is obtained from the embedding database, and the button that triggers the page jump is searched in the click embedding data;

[0016] The page jump process is analyzed according to the page jump path and the button that triggers the page jump.

[0017] Optionally, determining the page within the crash time period and the jump path of the page according to the exposure tracking data within the crash time period includes:

[0018] According to the exposure embedding data within the crash time period, and a mapping table between exposure embedding identifiers and page names, determine the page corresponding to each exposure embedding identifier in the exposure embedding data;

[0019] The jump path of the page is determined according to the exposure embedding point data reporting time corresponding to each exposure embedding point identifier.

[0020] Optionally, according to the device identifier, acquiring click buried point data within the crash time period from a buried point database, and searching for a button that triggers the page jump in the click buried point data, including:

[0021] According to the device identifier, the click burying point data within the crash time period is obtained from the burying point database; wherein the click burying point data includes the device identifier, the click burying point identifier and the reporting time;

[0022] According to the click-point data within the crash time period, a mapping table of page name, button name, click-point identifier, and jump page name is used to determine the button that triggers the page jump.

[0023] In addition, according to another aspect of an embodiment of the present invention, a device for analyzing a crash log is provided, including:

[0024] An extraction module, used to obtain a crash log and extract a crash time from the crash log;

[0025] An acquisition module, used to acquire exposure buried point data, and determine a crash time period according to the exposure buried point data and the crash time;

[0026] The analysis module is used to analyze the page jump process based on the exposure tracking data and click tracking data within the crash time period.

[0027] Optionally, the acquisition module is used to:

[0028] According to the device identifier, the exposure burying point data is obtained from the burying point database; wherein the exposure burying point data includes the device identifier, the exposure burying point identifier and the reporting time;

[0029] Taking the crash time as the end point, searching forward in the exposure tracking data for the exposure tracking data reporting time of the first page triggered by application startup;

[0030] The time interval between the exposure embedding data reporting time of the first page and the crash time is taken as the crash time period.

[0031] Optionally, the analysis module is used to:

[0032] Determine the page within the crash time period and the jump path of the page according to the exposure buried point data within the crash time period;

[0033] According to the device identifier, the click embedding data within the crash time period is obtained from the embedding database, and the button that triggers the page jump is searched in the click embedding data;

[0034] The page jump process is analyzed according to the page jump path and the button that triggers the page jump.

[0035] Optionally, determining the page within the crash time period and the jump path of the page according to the exposure tracking data within the crash time period includes:

[0036] According to the exposure embedding data within the crash time period, and a mapping table between exposure embedding identifiers and page names, determine the page corresponding to each exposure embedding identifier in the exposure embedding data;

[0037] The jump path of the page is determined according to the exposure embedding point data reporting time corresponding to each exposure embedding point identifier.

[0038] Optionally, according to the device identifier, acquiring click buried point data within the crash time period from a buried point database, and searching for a button that triggers the page jump in the click buried point data, including:

[0039] According to the device identifier, the click burying point data within the crash time period is obtained from the burying point database; wherein the click burying point data includes the device identifier, the click burying point identifier and the reporting time;

[0040] According to the click-point data within the crash time period, a mapping table of page name, button name, click-point identifier, and jump page name is used to determine the button that triggers the page jump.

[0041] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, including:

[0042] one or more processors;

[0043] a storage device for storing one or more programs,

[0044] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any of the above embodiments.

[0045] According to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the method described in any one of the above embodiments is implemented.

[0046] An embodiment of the above invention has the following advantages or beneficial effects: because the crash time period is determined according to the exposure buried point data and the crash time. And the technical means of analyzing the page jump is based on the exposure buried point data and the click buried point data within the crash time period, so the technical problem that it takes a lot of time to locate the problem is overcome. The embodiment of the present invention comprehensively analyzes the crash log in combination with the buried point data, so as to restore the user's operation steps when the APP has an exception, thereby helping R&D personnel to locate the problem more quickly and reduce the impact of the APP exception on the user. When an exception occurs in the client, the method provided by the embodiment of the present invention can quickly and accurately analyze the page jump process, and restore the user's operation process when the client has an exception, so as to locate the problem more quickly and improve work efficiency.

[0047] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0049] Figure 1 is a schematic diagram of the main process of the method for analyzing a crash log according to an embodiment of the present invention;

[0050] Figure 2 is a schematic diagram of the main process of a method for analyzing a crash log according to a reference embodiment of the present invention;

[0051] Figure 3 is a schematic diagram of a page life cycle according to an embodiment of the present invention;

[0052] Figure 4 is a schematic diagram of a page jump path according to an embodiment of the present invention;

[0053] Figure 5 is a schematic diagram of the main process of a method for analyzing a crash log according to another reference embodiment of the present invention;

[0054] Figure 6 is a schematic diagram of main modules of an apparatus for analyzing crash logs according to an embodiment of the present invention;

[0055] Figure 7 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0056] Figure 8 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0057] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0058] Figure 1 FIG. 1 is a schematic diagram of the main process of a method for analyzing a crash log according to an embodiment of the present invention. As an embodiment of the present invention, Figure 1 As shown, the method for analyzing the crash log may include:

[0059] Step 101: Obtain a crash log, and extract the crash time from the crash log.

[0060] Generally speaking, the crash logs of each device (i.e., mobile client) are stored in the crash data, so the crash log associated with the device ID can be filtered out from the crash database according to the device ID. The crash time, i.e., the timestamp of the device crash, is then extracted from the crash log.

[0061] Optionally, after filtering out the crash log associated with the device identifier from the crash database, it is possible to further determine whether the crash log is an application crash log. If so, the crash time is extracted from the crash log. If not (it may be a system crash log), the process ends without further processing.

[0062] Step 102, obtaining exposure burial point data, and determining the crash time period according to the exposure burial point data and the crash time.

[0063] Burying points is a method of adding monitoring points in an APP, which is mainly divided into two categories: exposure burying points and click burying points. Exposure burying points can be triggered when a page is visible to the user, and are used to count the page views. Click burying points are triggered when the user clicks a button, and are used to count the number of clicks on the button. Through the analysis of these two types of burying point data, the page path and various operation gestures that the user has passed through within a certain time period can be obtained. The burying point data can fully record the user's operation path. The embodiment of the present invention applies the burying point data to the analysis of crash logs, thereby improving the analysis efficiency of crash logs.

[0064] Optionally, the exposure point data includes a device identifier, an exposure point identifier, and a reporting time. To facilitate parsing, the exposure point data can be saved in JSON format, and the data structure is as follows:

[0065]

[0066] in,

[0067] uuid: unique identifier of the device, used to associate crash logs;

[0068] event_id: unique identifier of the event location;

[0069] param: Parameters are used to store other data that may be used, such as user gestures (long press, scroll, horizontal slide, etc.);

[0070] time: The timestamp when the device reports the tracking data.

[0071] type: can be 0 (indicates exposure embedding data) or 1 (indicates click embedding data), which is used to distinguish whether the embedding point is a click embedding point or an exposure embedding point.

[0072] Therefore, the exposure buried point data associated with the device identifier can be filtered out from the buried point database according to the device identifier, and then the crash time extracted in step 101 is used as the termination point, and the exposure buried point data reporting time of the first page triggered by the application startup is searched forward in the exposure buried point data, and the time interval between the exposure buried point data reporting time of the first page and the crash time is used as the crash time period, so as to facilitate the subsequent steps to filter out the buried point data within the crash time period and reduce the amount of data analysis.

[0073] Step 103: Analyze the page jump process according to the exposure burying point data and the click burying point data within the crash time period.

[0074] After determining the crash time period, the click buried point data within the crash time period is filtered out from the buried point database according to the device identifier. Since the exposure buried point data of the device has been obtained from the buried point database in step 102, it is necessary to further filter out the exposure buried point data within the crash time period from the acquired exposure buried point data, so as to obtain the exposure buried point data and click buried point data within the crash time period. Then, based on the exposure buried point data and click buried point data within the crash time period, the page jump process is analyzed, and the user's operation steps when the APP exception occurs can be restored, thereby helping R&D personnel to locate the problem more quickly and reduce the impact of the APP exception on users.

[0075] According to the various embodiments described above, it can be seen that the present invention determines the crash time period based on the exposure buried point data and the crash time. And the technical means of analyzing the page jump process based on the exposure buried point data and the click buried point data within the crash time period, thereby solving the problem of taking a lot of time to locate the problem. The embodiment of the present invention comprehensively analyzes the crash log in combination with the buried point data, thereby restoring the user's operation steps when the APP has an exception, thereby helping R&D personnel to locate the problem more quickly and reduce the impact of the APP exception on the user. When an exception occurs in the client, the method provided by the embodiment of the present invention can quickly and accurately analyze the page jump process and restore the user's operation process when the client has an exception, thereby locating the problem more quickly and improving work efficiency.

[0076] Figure 2 : is a schematic diagram of the main process of a method for analyzing a crash log according to a reference embodiment of the present invention. The method for analyzing a crash log may specifically include:

[0077] Step 201: Obtain a crash log, and extract the crash time from the crash log.

[0078] In this step, the crash log associated with the device ID is screened out from the crash database according to the device ID, and then the crash time, that is, the timestamp of the device crash, is extracted from the crash log.

[0079] Step 202, obtain exposure burial point data, and determine the crash time period according to the exposure burial point data and the crash time.

[0080] In order to trigger the reporting of buried data when the page exposure and button click are triggered, buried data needs to be set in advance. Optionally, an exposure buried data can be set on each page, and the corresponding relationship between the buried data identifier event_id and the page name pagename can be saved to generate a mapping table, so that the page name corresponding to the buried data identifier can be obtained through the mapping table.

[0081] In this mapping table, the page identifier page_id and the page name pagename in the program can also be associated. Since the page name is usually very long and the embedded data is unlikely to transmit too much data, the page name can be queried from the mapping table through the page identifier page_id or the embedded data identifier event_id. The page name is used when generating the automation script.

[0082] Optionally, you can set multiple exposure tracking points on each page. Taking the Android system as an example, different life cycle methods will be called back when entering the page. Figure 3 As shown in the figure, for example, the callback of onCreate method indicates that the page is created, the page is visible, but cannot be interacted with; the callback of onResume method indicates that the page is visible to the user and can be interacted with; the onPause method indicates that the page has lost focus and interaction capabilities; onDestroy indicates that the page is no longer visible to the user. The user can operate the page in the onResume and onPause life cycles. Therefore, you can add tracking points to the onCreate method, onResume method, onPause method, and onDestroy method.

[0083] The iOS system also has a similar life cycle. For example, the callback of the viewDidLoad method indicates that the page is loaded, the page is visible, but cannot be interacted with; the callback of the viewDidAppear method indicates that the page has been drawn, indicating that the page is visible to the user and can be interacted with; the callback of the viewWillDisappear method indicates that the page is about to disappear, and the page has lost focus and interaction capabilities; the callback of the viewDidUnload method indicates that the page is destroyed and is no longer visible to the user. By adding tracking points in these life cycles, tracking point data can be collected.

[0084] A page can have multiple buttons, each of which corresponds to a click tracking point. The button's click tracking point identifier and the page name to which the click jumps are saved in a mapping table. The mapping table structure is as follows:

[0085]

[0086] This mapping shows the mapping relationship between the exposure points and click points of a certain page. The column of click point identifier stores all the button names and corresponding click point identifiers, exposure point identifiers, button names and jump page names in the page.

[0087] Optionally, the click embedding data includes a device identifier, a click embedding identifier, and a reporting time. To facilitate parsing, the click embedding data can be saved in JSON format, and the data structure is the same as the format of the exposure embedding data, and is distinguished by the type field.

[0088] Step 203, determining the pages within the crash time period and the jump paths of the pages according to the exposure tracking data within the crash time period.

[0089] Since the exposure tracking data includes the reporting time, such as Figure 4 As shown, the exposure tracking data reporting time of the first page triggered by the application startup is taken as the starting point, and the crash time is taken as the end point to determine the crash time period. Then, according to the page names and reporting times corresponding to the exposure tracking identifiers within the crash time period, the pages within the crash time period and the jump paths of these pages are determined, namely MainPage→Page1→Page2→Page3→Page4→Page5→Page6.

[0090] Optionally, the step 203 specifically includes: determining the page corresponding to each exposure burying point identifier in the exposure burying point data according to the exposure burying point data within the crash time period and a mapping table of exposure burying point identifiers and page names; determining the jump path of the page according to the exposure burying point data reporting time corresponding to each exposure burying point identifier.

[0091] Taking the Android system as an example, if only the onCreate tracking point is reported, it means that a crash occurred during the page creation phase, and step 204 may not be performed. If onResume, onPause or onDestroy tracking point reports are detected, step 204 is continued.

[0092] Step 204, according to the device identifier, obtain the click buried point data within the crash time period from the buried point database, and search for the button that triggers the page jump in the click buried point data.

[0093] After determining the pages within the crash time period and the jump paths of these pages, the click buried point data within the crash time period is obtained from the buried point database according to the device identification, and then the button that triggers the page jump is searched in the click buried point data, so as to find out which buttons the user clicked on the page.

[0094] Optionally, step 204 may include: according to the device identifier, obtaining the click-point embedding data within the crash time period from the embedding database; wherein the click-point embedding data includes the device identifier, the click-point embedding identifier and the reporting time; according to the click-point embedding data within the crash time period, a mapping table of page name, button name, click-point embedding identifier and jump page name, determining the button that triggers the page jump. For example, if the page jump path is A→B→C, the click-point embedding identifier in page A is retrieved according to the page name of page B, and then the button name associated with it is obtained according to the click-point embedding identifier, so as to determine which button is clicked in page A to trigger the operation of jumping to page B. Similarly, the click-point embedding identifier in page B is retrieved according to the page name of page C, and then the button name associated with it is obtained according to the click-point embedding identifier, so as to determine which button is clicked in page B to trigger the operation of jumping to page C. Thus, the button that triggers the jump of page B and page C is obtained.

[0095] Step 205: Analyze the page jump process according to the page jump path and the button that triggers the page jump.

[0096] When a button is clicked to jump to another page, the exposure point of another page will be triggered. Comprehensive analysis of the exposure point and click point data can determine which button the user clicked to enter this page, thereby analyzing the page jump process within the crash time period.

[0097] After step 205, a script may be generated according to the page jump process obtained by analysis, and the script may be imported into a script running tool, and then the script running tool may be run to simulate the user's operation process when the device crashes.

[0098] The Android system provides MonkeyRunner (script running tool), which can be used to automatically run Python scripts to control Android devices and simulators, thereby simulating the user's operations when the crash occurs. The iOS system can run automation scripts through UIAutomation (script running tool), which will not be described in detail.

[0099] According to the various embodiments described above, it can be seen that the present invention determines the crash time period based on the exposure buried point data and the crash time. And the technical means of analyzing the page jump process based on the exposure buried point data and the click buried point data within the crash time period, thereby solving the problem of taking a lot of time to locate the problem. The embodiment of the present invention comprehensively analyzes the crash log in combination with the buried point data, thereby restoring the user's operation steps when the APP has an exception, thereby helping R&D personnel to locate the problem more quickly and reduce the impact of the APP exception on the user. When an exception occurs in the client, the method provided by the embodiment of the present invention can quickly and accurately analyze the page jump process, and simulate the user's operation process by running an automated script to restore the user's operation process when the client has an exception, thereby locating the problem more quickly and improving work efficiency.

[0100] Figure 5 is a schematic diagram of the main process of a method for analyzing a crash log according to another reference embodiment of the present invention. The method for analyzing a crash log may specifically include:

[0101] Step 501, device abnormality is detected;

[0102] Step 502, filtering out crash logs associated with the device identifier from the crash database according to the device identifier;

[0103] Step 503, determining whether the crash log is an application crash log; if so, executing step 504, if not, ending;

[0104] Step 504, obtaining exposure burying point data from a burying point database according to the device identifier;

[0105] Step 505: extract the crash time from the crash log, and use the crash time as the end point, search forward in the exposure embedding data for the exposure embedding data reporting time of the first page triggered by application startup, and use the time interval between the exposure embedding data reporting time of the first page and the crash time as the crash time period;

[0106] Step 506, determining the page corresponding to each exposure embedding point identifier in the exposure embedding point data according to the exposure embedding point data in the crash time period and the mapping table between the exposure embedding point identifier and the page name;

[0107] Step 507, determining a jump path of the page according to the exposure embedding point data reporting time corresponding to each exposure embedding point identifier;

[0108] Step 508, obtaining click tracking data within the crash time period from a tracking database according to the device identifier;

[0109] Step 509, determining the button that triggers the page jump according to the click embedding data within the crash time period, the mapping table of page name, button name, click embedding identifier, and jump page name;

[0110] Step 510, analyzing the page jump process according to the page jump path and the button that triggers the page jump;

[0111] Step 511, generating an automation script according to the page jump process, and running the script through a script running tool.

[0112] In addition, the specific implementation content of the method for analyzing a crash log in another reference embodiment of the present invention has been described in detail in the method for analyzing a crash log described above, so the repeated content will not be described here.

[0113] Figure 6 is a schematic diagram of main modules of an apparatus for analyzing crash logs according to an embodiment of the present invention. Figure 6 As shown, the apparatus 600 for analyzing crash logs includes an extraction module 601, an acquisition module 602, and an analysis module 603. The extraction module 601 acquires the crash log and extracts the crash time from the crash log; the acquisition module 602 acquires the exposure embedding data and determines the crash time period according to the exposure embedding data and the crash time; the analysis module 603 analyzes the page jump process according to the exposure embedding data and the click embedding data within the crash time period.

[0114] Optionally, the acquisition module 602 acquires exposure burying point data from a burying point database according to the device identifier; wherein the exposure burying point data includes the device identifier, the exposure burying point identifier and the reporting time; taking the crash time as the termination point, searching forward in the exposure burying point data for the exposure burying point data reporting time of the first page triggered by the application startup; and taking the time interval between the exposure burying point data reporting time of the first page and the crash time as the crash time period.

[0115] Optionally, the analysis module 603 determines the page within the crash time period and the jump path of the page based on the exposure embedding data within the crash time period; obtains the click embedding data within the crash time period from the embedding database based on the device identification, and searches for the button that triggers the page jump in the click embedding data; and analyzes the page jump process based on the jump path of the page and the button that triggers the page jump.

[0116] Optionally, based on the exposure burying point data within the crash time period, the page within the crash time period and the jump path of the page are determined, including: based on the exposure burying point data within the crash time period and a mapping table of exposure burying point identifiers and page names, determining the page corresponding to each exposure burying point identifier in the exposure burying point data; determining the jump path of the page based on the exposure burying point data reporting time corresponding to each exposure burying point identifier.

[0117] Optionally, according to the device identification, the click burying point data within the crash time period is obtained from the burying point database, and the button that triggers the page jump is searched in the click burying point data, including: according to the device identification, the click burying point data within the crash time period is obtained from the burying point database; wherein the click burying point data includes the device identification, the click burying point identification and the reporting time; according to the click burying point data within the crash time period, a mapping table of page name, button name, click burying point identification and jump page name is used to determine the button that triggers the page jump.

[0118] According to the various embodiments described above, it can be seen that the present invention determines the crash time period based on the exposure buried point data and the crash time. And the technical means of analyzing the page jump process based on the exposure buried point data and the click buried point data within the crash time period, thereby solving the problem of taking a lot of time to locate the problem. The embodiment of the present invention comprehensively analyzes the crash log in combination with the buried point data, thereby restoring the user's operation steps when the APP has an exception, thereby helping R&D personnel to locate the problem more quickly and reduce the impact of the APP exception on the user. When an exception occurs in the client, the method provided by the embodiment of the present invention can quickly and accurately analyze the page jump process and restore the user's operation process when the client has an exception, thereby locating the problem more quickly and improving work efficiency.

[0119] It should be noted that the specific implementation content of the device for analyzing crash logs in the present invention has been described in detail in the method for analyzing crash logs described above, so the repeated content will not be described here.

[0120] Figure 7 An exemplary system architecture 700 is shown to which the method for analyzing a crash log or the apparatus for analyzing a crash log according to the embodiments of the present invention can be applied.

[0121] like Figure 7 As shown, system architecture 700 may include terminal devices 701, 702, 703, network 704 and server 705. Network 707 is used to provide a medium for communication links between terminal devices 701, 702, 703 and server 705. Network 704 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0122] The user can use the terminal devices 701, 702, 703 to interact with the server 704 through the network 704 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 701, 702, 703, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0123] The terminal devices 701 , 702 , and 703 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0124] The server 705 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 701, 702, and 703. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.

[0125] It should be noted that the method for analyzing crash logs provided in the embodiment of the present invention is generally executed on terminal devices 701, 702, 703 in a public place, and can also be executed by server 705. Accordingly, the device for analyzing crash logs is generally set on terminal devices 701, 702, 703 in a public place, and can also be set in server 705.

[0126] It should be understood that Figure 7 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0127] Reference below Figure 8 , which shows a schematic diagram of the structure of a computer system 800 of a terminal device suitable for implementing an embodiment of the present invention. Figure 8 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0128] like Figure 8As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the system 800 are also stored. The CPU 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0129] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that a computer program read therefrom is installed into the storage section 808 as needed.

[0130] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit (CPU) 801, the above-mentioned functions defined in the system of the present invention are executed.

[0131] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0132] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0133] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes an extraction module, an acquisition module and an analysis module, wherein the names of these modules do not constitute a limitation on the modules themselves in some cases.

[0134] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: obtaining a crash log and extracting the crash time from the crash log; obtaining exposure buried point data, and determining the crash time period based on the exposure buried point data and the crash time; analyzing the page jump process based on the exposure buried point data and click buried point data within the crash time period.

[0135] According to the technical solution of the embodiment of the present invention, the crash time period is determined according to the exposure buried point data and the crash time. And the technical means of analyzing the page jump is based on the exposure buried point data and the click buried point data within the crash time period, so the technical problem of taking a lot of time to locate the problem is overcome. The embodiment of the present invention comprehensively analyzes the crash log in combination with the buried point data, so as to restore the user's operation steps when the APP has an exception, thereby helping R&D personnel to locate the problem more quickly and reduce the impact of the APP exception on the user. When an exception occurs in the client, the method provided by the embodiment of the present invention can quickly and accurately analyze the process of page jump, and restore the user's operation process when the client has an exception, so as to locate the problem more quickly and improve work efficiency.

[0136] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for analyzing a crash log, characterized in that: include: Obtain a crash log, and extract a crash time from the crash log; Acquire exposure point data, and determine the crash time period according to the exposure point data and the crash time; Analyze the page jump process according to the exposure tracking data and click tracking data within the crash time period; Acquiring exposure tracking data, and determining the crash time period according to the exposure tracking data and the crash time, including: According to the device identifier, the exposure burying point data is obtained from the burying point database; wherein the exposure burying point data includes the device identifier, the exposure burying point identifier and the reporting time; Taking the crash time as the end point, searching forward in the exposure tracking data for the exposure tracking data reporting time of the first page triggered by application startup; The time interval between the exposure embedding data reporting time of the first page and the crash time is used as the crash time period; The process of analyzing page jumps according to the exposure tracking data and click tracking data within the crash time period includes: Determine the page within the crash time period and the jump path of the page according to the exposure buried point data within the crash time period; According to the device identifier, the click embedding data within the crash time period is obtained from the embedding database, and the button that triggers the page jump is searched in the click embedding data; The page jump process is analyzed according to the page jump path and the button that triggers the page jump.

2. The method according to claim 1, characterized in that Determining the page within the crash time period and the jump path of the page according to the exposure tracking data within the crash time period includes: According to the exposure embedding data within the crash time period, and a mapping table between exposure embedding identifiers and page names, determine the page corresponding to each exposure embedding identifier in the exposure embedding data; The jump path of the page is determined according to the exposure embedding point data reporting time corresponding to each exposure embedding point identifier.

3. The method according to claim 1, characterized in that: According to the device identifier, the click embedding data within the crash time period is obtained from the embedding database, and the button that triggers the page jump is searched in the click embedding data, including: According to the device identifier, the click burying point data within the crash time period is obtained from the burying point database; wherein the click burying point data includes the device identifier, the click burying point identifier and the reporting time; The button that triggers the page jump is determined based on a mapping table of click-point data, page name, button name, click-point identifier, and jump page name within the crash time period.

4. A device for analyzing a crash log, characterized in that: include: An extraction module, used to obtain a crash log and extract a crash time from the crash log; An acquisition module, used to acquire exposure buried point data, and determine a crash time period according to the exposure buried point data and the crash time; An analysis module, used to analyze the page jump process according to the exposure embedding data and click embedding data within the crash time period; The acquisition module is used for: According to the device identifier, the exposure burying point data is obtained from the burying point database; wherein the exposure burying point data includes the device identifier, the exposure burying point identifier and the reporting time; Taking the crash time as the end point, searching forward in the exposure tracking data for the exposure tracking data reporting time of the first page triggered by application startup; The time interval between the exposure embedding data reporting time of the first page and the crash time is used as the crash time period; The analysis module is used to: Determine the page within the crash time period and the jump path of the page according to the exposure buried point data within the crash time period; According to the device identifier, the click embedding data within the crash time period is obtained from the embedding database, and the button that triggers the page jump is searched in the click embedding data; The page jump process is analyzed according to the page jump path and the button that triggers the page jump.

5. The device according to claim 4, characterized in that Determining the page within the crash time period and the jump path of the page according to the exposure tracking data within the crash time period includes: According to the exposure embedding data within the crash time period, and a mapping table between exposure embedding identifiers and page names, determine the page corresponding to each exposure embedding identifier in the exposure embedding data; The jump path of the page is determined according to the exposure embedding point data reporting time corresponding to each exposure embedding point identifier.

6. The device according to claim 4, characterized in that According to the device identifier, the click embedding data within the crash time period is obtained from the embedding database, and the button that triggers the page jump is searched in the click embedding data, including: According to the device identifier, the click burying point data within the crash time period is obtained from the burying point database; wherein the click burying point data includes the device identifier, the click burying point identifier and the reporting time; The button that triggers the page jump is determined based on a mapping table of click-point data, page name, button name, click-point identifier, and jump page name within the crash time period.

7. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 3.

8. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.