System call information determination method, apparatus and device for application

By adjusting the data collection granularity of Pinpoint to the system level, the problem of being unable to quickly locate system anomalies in existing technologies has been solved, enabling intuitive acquisition of call status and rapid fault location at the system granularity.

CN116450245BActive Publication Date: 2026-11-27CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210017443.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-07
Publication Date
2026-11-27
Estimated Expiration
2042-01-07

AI Technical Summary

Technical Problem

In existing technologies, the service data collected by the application performance management tool Pinpoint is at the application level, which cannot intuitively obtain the system-level call status, making it impossible to quickly locate system anomalies.

Method used

By adding startup parameters for applications to access Pinpoint, the maximum granularity of Pinpoint data collection is made to the system level, thereby obtaining service call information and exception information under the system and determining the system call information of the application.

Benefits of technology

It enables intuitive access to call status at the system level, quickly locates faults, and improves the efficiency of fault location.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116450245B_ABST
    Figure CN116450245B_ABST
Patent Text Reader

Abstract

The application provides a system call information determination method, device and equipment. The method comprises the following steps: obtaining service data of each application; determining analysis data of each application according to each service data, wherein the analysis data comprises a transmission identifier of the application, a last layer service call identifier of the application, a service call identifier of the application and system information of the application; determining N target analysis data according to a preset transmission identifier and the transmission identifier of the application in each analysis data, and determining N target applications corresponding to the N target analysis data; and determining system call information of each target application according to the last layer service call identifier of the N target applications, the service call identifier of the N target applications and the system information of the N target applications. The system information of the application calling party is determined, and then the calling condition of the application framework at the system granularity can be directly obtained, and the rapid positioning of the fault is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to computer technology, and more particularly to a method, apparatus, and device for determining system call information for an application. Background Technology

[0002] Application service systems that integrate multiple applications are increasingly being used in production and daily life. Typically, such system frameworks may be divided into multiple smaller systems, each containing one or more applications. Each smaller system requires different R&D and operations personnel to maintain all application services within that system in order to ensure the stable operation of the entire system's production environment.

[0003] In existing technologies, applications under the system framework are accessed through an application performance management tool (pinpoint) to obtain service data for each application, and then service call information between applications is obtained based on this service data.

[0004] However, in existing technologies, the granularity of service data collection is at the application level, which makes it impossible to intuitively obtain the system-level call status. When some application services malfunction, it is not possible to quickly locate which system is causing the problem. Therefore, there is an urgent need for a method to determine application system call information. Summary of the Invention

[0005] This application provides a method, apparatus, and device for determining system call information of an application, in order to solve the problem of being unable to determine system call information of an application.

[0006] Firstly, this application provides a method for determining system call information of an application, the method comprising:

[0007] Obtain service data for each application;

[0008] Based on each of the service data, the parsed data for each application is determined, wherein the parsed data includes the application's transmission identifier, the application's upper-layer service call identifier, the application's service call identifier, and the application's system information;

[0009] Based on the preset transmission identifier and the transmission identifier of the application in each of the parsed data, N target parsed data are determined, and N target applications corresponding to the N target parsed data are determined, where N is a positive integer greater than or equal to 2;

[0010] Based on the upper-layer service call identifiers of the N target applications, the service call identifiers of the N target applications, and the system information of the N target applications, determine the system call information of each target application.

[0011] In one optional implementation, N target parsing data are determined based on a preset transmission identifier and the transmission identifier of the application in each of the parsed data, and N target applications corresponding to the N target parsing data are determined, including:

[0012] N parsed data points whose transmission identifiers are the same as preset transmission identifiers are identified as N target parsed data points, and N applications corresponding to the N target parsed data points are identified as N target applications.

[0013] In one optional implementation, the system call information of each target application is determined based on the upper-layer service call identifiers of the N target applications, the service call identifiers of the N target applications, and the system information of the N target applications, including:

[0014] The target application whose upper-layer service call identifier is set to a preset threshold is identified as the first application; wherein, the first application is the first-layer application among the N target applications, and the first application does not have system call information;

[0015] Repeat the following steps until the system call information of each target application is determined: obtain the service call identifier of the current first application, and obtain the service call identifier of the upper layer of the other target applications, and determine the target application whose upper layer service call identifier is the service call identifier of the current first application as the second application; wherein, the second application is the next layer application of the current first application, and the second application is called by the current first application;

[0016] The system information of the first application is determined to be the system call information of the second application, and the new first application is determined to be the second application.

[0017] In one optional implementation, each piece of service data includes the application's service startup data, the application's service call data, and the application's service method-level call data; obtaining the service data of each application includes:

[0018] Based on the startup parameters of each application, first service data and second service data of each application are obtained, wherein the first service data is the service startup data of the application, and the second service data includes the service call data and the service method-level call data of the application.

[0019] In one optional implementation, each of the service startup data includes the application's system information, the application's name identifier information, and the application's server identifier information; each of the second service data includes the application's transmission identifier, the application's name identifier information, the application's upper-layer service call identifier information, the application's service call identifier information, and the application's server identifier information.

[0020] In one optional implementation, based on each of the service data, the parsed data for each application is determined, including:

[0021] Based on each of the first service data, determine the correspondence between the name identification information, server identification information, and system information of each application;

[0022] Based on each of the aforementioned correspondences and each of the second service data, the parsed data for each of the aforementioned applications is determined.

[0023] In one optional implementation, determining the parsed data for each application based on each of the aforementioned correspondences and each of the second service data includes:

[0024] Based on each of the aforementioned correspondences, each of the aforementioned system information is added to each of the second service data, thereby determining the parsed data for each of the aforementioned applications.

[0025] In one optional implementation, the startup parameters include one or more of the following parameters: computer programming language command parameters, server identifier parameters, application name parameters, and system parameters.

[0026] Secondly, this application provides a system call information determination device for an application, the device comprising:

[0027] The acquisition unit is used to acquire service data for each application.

[0028] The first determining unit is configured to determine the parsing data of each application based on each of the service data, wherein the parsing data includes the transmission identifier of the application, the upper-layer service call identifier of the application, the service call identifier of the application, and the system information of the application;

[0029] The second determining unit is used to determine N target parsing data and N target applications corresponding to the N target parsing data according to the preset transmission identifier and the transmission identifier of the application in each parsing data, where N is a positive integer greater than or equal to 2;

[0030] The third determining unit is used to determine the system call information of each of the N target applications based on the upper-layer service call identifiers of the N target applications, the service call identifiers of the N target applications, and the system information of the N target applications.

[0031] In one optional implementation, the second determining unit is specifically used for:

[0032] N parsed data points whose transmission identifiers are the same as preset transmission identifiers are identified as N target parsed data points, and N applications corresponding to the N target parsed data points are identified as N target applications.

[0033] In one optional implementation, the third determining unit includes:

[0034] The first determining subunit is used to determine the target application whose upper-layer service call identifier is a preset threshold as the first application; wherein, the first application is the first-layer application among the N target applications, and the first application does not have system call information;

[0035] The processing subunit is used to repeat the following steps until the system call information of each target application is determined: obtain the service call identifier of the current first application, and obtain the upper-level service call identifier of the other target applications, and determine the target application whose upper-level service call identifier is the service call identifier of the current first application as the second application; wherein, the second application is the lower-level application of the current first application, and the second application is called by the current first application;

[0036] The second determining subunit is used to determine that the current system information of the first application is the system call information of the second application, and to determine that the new first application is the second application.

[0037] In one optional implementation, each piece of service data includes the application's service startup data, the application's service call data, and the application's service method-level call data; the acquisition unit is specifically used for:

[0038] Based on the startup parameters of each application, first service data and second service data of each application are obtained, wherein the first service data is the service startup data of the application, and the second service data includes the service call data and the service method-level call data of the application.

[0039] In one optional implementation, each of the service startup data includes the application's system information, the application's name identifier information, and the application's server identifier information; each of the second service data includes the application's transmission identifier, the application's name identifier information, the application's upper-layer service call identifier information, the application's service call identifier information, and the application's server identifier information.

[0040] In one optional implementation, the first determining unit includes:

[0041] The third determining subunit is used to determine the correspondence between the name identification information, server identification information and system information of each application based on each of the first service data.

[0042] The fourth determining subunit is used to determine the parsed data of each application based on each of the correspondences and each of the second service data.

[0043] In one optional implementation, the fourth determining subunit is specifically used for:

[0044] Based on each of the aforementioned correspondences, each of the aforementioned system information is added to each of the second service data, thereby determining the parsed data for each of the aforementioned applications.

[0045] In one optional implementation, the startup parameters include one or more of the following parameters: computer programming language command parameters, server identifier parameters, application name parameters, and system parameters.

[0046] Thirdly, this application provides an electronic device, the electronic device comprising: a memory and a processor;

[0047] The memory is used to store executable instructions;

[0048] The processor is configured to perform the method as described in the first aspect.

[0049] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method described in the first aspect.

[0050] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the method described in the first aspect.

[0051] The system call information determination method, apparatus, and device provided in this application involve the following steps: acquiring service data for each application; determining parsed data for each application based on the service data, wherein the parsed data includes the application's transmission identifier, the application's upper-layer service call identifier, the application's service call identifier, and the application's system information; determining N target parsed data based on preset transmission identifiers and the application's transmission identifier in each parsed data, and determining N target applications corresponding to the N target parsed data, where N is a positive integer greater than or equal to 2; and determining the system call information for each target application based on the upper-layer service call identifiers of the N target applications, the service call identifiers of the N target applications, and the system information of the N target applications. By determining the system information of the application's caller, the application framework's call status at the system granularity can be intuitively obtained, enabling rapid fault location. Attached Figure Description

[0052] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0053] Figure 1 A flowchart illustrating a method for determining system call information for an application, as provided in this application embodiment;

[0054] Figure 2 A flowchart illustrating another method for determining system call information for an application provided in this application embodiment;

[0055] Figure 3 A schematic diagram of the structure of a system call information determination device for an application provided in an embodiment of this application;

[0056] Figure 4 A schematic diagram of the structure of a system call information determination device for an application provided in an embodiment of this application;

[0057] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0058] Figure 6 This is a block diagram of a terminal device provided in an embodiment of this application.

[0059] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0060] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0061] Application service systems that integrate multiple applications are increasingly being used in production and daily life. Typically, such system frameworks may be divided into multiple smaller systems, each containing one or more applications. Each smaller system requires different R&D and operations personnel to maintain all application services within that system in order to ensure the stable operation of the entire system's production environment.

[0062] In existing technologies, Pinpoint is an open-source Application Performance Management (APM) tool used in large-scale distributed Java-based systems. It employs bytecode enhancement technology to non-intrusively access application services, detect application topology, and pinpoint application failure points and bottlenecks. Its main applications include rapid fault location, generating service call topology diagrams, and analyzing the performance of each call stage.

[0063] However, in existing technologies, the native Pinpoint data collection service granularity is application-level, which cannot intuitively obtain system-level call information. As a result, when some application services malfunction, it is not possible to quickly locate which system is causing the problem.

[0064] To address this technical issue, we added startup parameters when applications access Pinpoint, enabling Pinpoint to collect data at the system level. This allows us to obtain service call and exception information for a specific system, as well as call information between different systems. When certain services encounter problems, we can quickly pinpoint which system is causing the issue.

[0065] The method for determining system call information of applications provided in this application aims to solve the above-mentioned technical problems in the prior art.

[0066] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0067] Figure 1 A flowchart of a method for determining system call information for an application provided in this application embodiment is shown below. Figure 1 As shown, the method includes:

[0068] 101. Obtain service data for each application.

[0069] For example, in a large-scale distributed system, there are multiple applications distributed among themselves. These applications may belong to the same or different systems. The service data of each application is obtained. The service data packet contains the system information of the application corresponding to the service data, the name identification information of the application, and the server identification information of the application.

[0070] 102. Based on each service data, determine the parsed data for each application, wherein the parsed data includes the application's transmission identifier, the application's upper-layer service call identifier, the application's service call identifier, and the application's system information.

[0071] For example, each service data is processed to determine the parsed data for each application based on the application information contained in the service data. The parsed data includes the application's transmission identifier, the application's upper-layer service call identifier, the application's service call identifier, and the application's system information. The application's transmission identifier indicates which application service link the application belongs to, and applications with the same transmission identifier belong to the same application service link. The application's upper-layer service call identifier is the server identifier of the upper-layer application that called the application. The application's service call identifier is the server identifier of the application. The application's system information is the system information to which the application belongs.

[0072] 103. Based on the preset transmission identifier and the transmission identifier of the application in each parsed data, determine N target parsed data and determine the N target applications corresponding to the N target parsed data, where N is a positive integer greater than or equal to 2.

[0073] For example, a complete service chain includes at least two applications. The upper-layer application calls the lower-layer application. Based on the preset transmission identifier and the transmission identifier of the application in each parsed data, N target parsed data are determined, and N target applications corresponding to the N target parsed data are determined, where N is a positive integer greater than or equal to 2. These N target applications are in the same service chain.

[0074] 104. Based on the service call identifiers of the upper layer of N target applications, the service call identifiers of N target applications, and the system information of N target applications, determine the system call information of each target application.

[0075] For example, the calling relationship of the N target applications is determined based on the service call identifier of the upper layer of the N target applications and the service call identifier of the N target applications; the system call information of each target application is determined based on the calling relationship and the system information of the N target applications, wherein, in the service link formed by the N target applications, the system information of the upper layer target application is the system call information of the lower layer target application called by that target application.

[0076] In this embodiment, the following steps are performed: Service data for each application is acquired; based on each service data, parsed data for each application is determined, wherein the parsed data includes the application's transmission identifier, the application's upper-layer service call identifier, the application's service call identifier, and the application's system information; based on the preset transmission identifier and the application's transmission identifier in each parsed data, N target parsed data are determined, and N target applications corresponding to the N target parsed data are determined, where N is a positive integer greater than or equal to 2; based on the upper-layer service call identifiers of the N target applications, the service call identifiers of the N target applications, and the system information of the N target applications, the system call information of each target application is determined. By determining the system information of the application's caller, the application framework's call status at the system granularity can be intuitively obtained, enabling rapid fault location.

[0077] Figure 2 A flowchart of another system call information determination method provided in this application embodiment is shown below. Figure 2 As shown, the method includes:

[0078] 201. Obtain service data for each application.

[0079] In one example, each service data includes application service startup data, application service call data, and application service method-level call data.

[0080] In one example, step 201 includes the following steps:

[0081] Based on the startup parameters of each application, the first service data and the second service data of each application are obtained. The first service data is the service startup data of the application, and the second service data includes the service call data and the service method-level call data of the application.

[0082] In one example, startup parameters include one or more of the following: computer programming language command parameters, server identifier parameters, application name parameters, and system parameters.

[0083] In one example, each service startup data contains the application's system information, the application's name identifier information, and the application's server identifier information; each second service data contains the application's transport identifier, the application's name identifier information, the application's upper-layer service call identifier information, the application's service call identifier information, and the application's server identifier information.

[0084] For example, based on the startup parameters of each application, such as computer programming language command parameters, server identification parameters, application name parameters, and system parameters, the first service data and the second service data of each application are obtained. The first service data is the service startup data of the application, and the second service data includes the service call data and the service method-level call data of the application. Each service startup data has the system information of the application, the name identification information of the application, and the server identification information of the application. Each second service data has the transmission identifier of the application, the name identification information of the application, the upper-level service call identifier information of the application, the service call identifier information of the application, and the server identification information of the application.

[0085] In one example, the pinpoint acquisition logic is modified to add system parameters to the startup parameters of each application. Pinpoint is used to obtain the service startup data, service call data, and service method-level call data of each application, and then the data is sent to the preset processing platform.

[0086] 202. Based on each service data, determine the parsed data for each application, wherein the parsed data includes the application's transmission identifier, the application's upper-layer service call identifier, the application's service call identifier, and the application's system information.

[0087] In one example, step 202 includes the following steps:

[0088] Based on each first service data, determine the correspondence between the name identifier, server identifier, and system information of each application; based on each correspondence, add each piece of system information to each second service data to determine the parsed data of each application.

[0089] For example, the first service data includes the application's system information, the application's name identifier information, and the application's server identifier information. Each piece of first service data is processed using program tools to obtain the correspondence between the application's name identifier information, server identifier information, and system information. Since the second service data includes the application's service call data and the application's service method-level call data, and the application's service call data and service method-level call data include the application's transport identifier, application's name identifier information, the application's parent service call identifier information, the application's service call identifier information, and the application's server identifier information, the corresponding application's system information is added to each piece of second service data according to each correspondence. The application's transport identifier, parent service call identifier, service call identifier, and system information in the processed second service data are then determined as the parsed data for each application.

[0090] In one example, in a pre-defined processing platform, a program tool is used to process each first service data to determine the correspondence between the name identification information, server identification information, and system information of each application. Based on another program tool, each second service data is processed, and according to the correspondence, the system information of the corresponding application is added to each second service data to obtain the parsed data of each application.

[0091] 203. Determine N parsed data whose transmission identifier is the same as the preset transmission identifier, which are N target parsed data. Determine N applications corresponding to the N target parsed data, which are N target applications, where N is a positive integer greater than or equal to 2.

[0092] For example, a complete service link includes at least two applications. The upper-layer application calls the lower-layer application to identify and extract N transmission identifiers that are the same as the preset transmission identifiers. For each transmission identifier, the N target parsing data to which these N transmission identifiers belong are identified, and the N target applications corresponding to the N target parsing data are identified, where N is a positive integer greater than or equal to 2. These N target applications are in the same service link.

[0093] 204. Determine the target application whose upper-layer service call identifier is a preset threshold as the first application; wherein, the first application is the first-layer application among N target applications, and the first application does not have system call information.

[0094] For example, it is first necessary to determine the first-layer application in the service chain. Since the first-layer application in the service chain is not called by other applications and does not have system call information, the application whose upper-layer service call identifier is empty is the first-layer application, that is, the first application. Here, a preset threshold can be used to characterize the emptiness of the identifier. The value of the preset threshold can be -1.

[0095] 205. Repeat the following steps until the system call information for each target application is determined.

[0096] For example, since the service chain contains N target applications, where N is a positive integer greater than or equal to 2, when N equals 2, the following steps only need to be performed once to determine the system call information for each target application. When N is greater than 2, the following steps need to be repeated until the system call information for each target application is determined.

[0097] 206. Obtain the service call identifier of the current first application and obtain the service call identifier of the upper layer of the other target applications. Determine the target application whose upper layer service call identifier is the service call identifier of the current first application as the second application; wherein, the second application is the next layer application of the current first application and is called by the current first application.

[0098] For example, the upper-level service call identifier and the service call identifier represent the call situation between various applications. The service call identifier of the current first application is obtained, and the upper-level service call identifiers of the other target applications are obtained. The target application whose upper-level service call identifier is the service call identifier of the current first application is determined to be the second application. The second application is the next-level application of the current first application, and the second application is called by the current first application.

[0099] 207. Determine that the system information of the current first application is the system call information of the second application, and determine the new first application as the second application.

[0100] For example, in the service chain, the system information of the upper-layer target application is the system call information of the next-layer target application called by the target application. Therefore, the system information of the current first application is determined to be the system call information of the second application, and the second application is determined to be the new first application, so as to determine the system call information of the remaining target applications.

[0101] In this embodiment, service startup data, service call data, and service method-level call data for each application are obtained based on the application's startup parameters. Then, based on the service startup data, system information for each application is added to the service call data and service method-level call data, generating parsed data for each application. The target application and target data are determined based on a preset transmission identifier. Finally, based on the upper-level service call identifier, service call identifier, and system information of all target data, the system call information for each target application is determined. This process enables the determination of the system information of the application's caller, allowing for a direct understanding of the application framework's call status at the system granularity, and facilitating rapid fault location.

[0102] Figure 3This is a schematic diagram of the structure of a system call information determination device for an application provided in an embodiment of this application, as shown below. Figure 3 As shown, the device includes:

[0103] The acquisition unit 31 is used to acquire service data for each application.

[0104] The first determining unit 32 is used to determine the parsed data of each application based on each service data, wherein the parsed data includes the application's transmission identifier, the application's upper-layer service call identifier, the application's service call identifier, and the application's system information.

[0105] The second determining unit 33 is used to determine N target parsing data and N target applications corresponding to the N target parsing data according to the preset transmission identifier and the transmission identifier of the application in each parsing data, where N is a positive integer greater than or equal to 2.

[0106] The third determining unit 34 is used to determine the system call information of each target application based on the upper-layer service call identifier of the N target applications, the service call identifier of the N target applications, and the system information of the N target applications.

[0107] Figure 4 This is a schematic diagram of the structure of a system call information determination device for an application provided in an embodiment of this application. Figure 3 Based on the illustrated embodiments, as Figure 4 As shown, the device includes:

[0108] In one example, the second determining unit 33 is specifically used for:

[0109] N parsed data points with the same transmission identifier as the preset transmission identifier are identified as N target parsed data points, and N applications corresponding to the N target parsed data points are identified as N target applications.

[0110] In one example, the third determining unit 34 includes:

[0111] The first determining subunit 341 is used to determine the target application whose upper-layer service call identifier is a preset threshold as the first application; wherein, the first application is the first-layer application among N target applications, and the first application does not have system call information.

[0112] Processing subunit 342 is used to repeat the following steps until the system call information of each target application is determined: obtain the service call identifier of the current first application, and obtain the service call identifier of the upper layer of the other target applications, and determine the target application whose upper layer service call identifier is the service call identifier of the current first application as the second application; wherein, the second application is the next layer application of the current first application, and the second application is called by the current first application.

[0113] The second determining subunit 343 is used to determine the system information of the current first application as the system call information of the second application, and to determine the new first application as the second application.

[0114] In one example, each service data includes application service startup data, application service call data, and application service method-level call data; the acquisition unit 31 is specifically used for:

[0115] Based on the startup parameters of each application, the first service data and the second service data of each application are obtained. The first service data is the service startup data of the application, and the second service data includes the service call data and the service method-level call data of the application.

[0116] In one example, each service startup data contains the application's system information, the application's name identifier information, and the application's server identifier information; each second service data contains the application's transport identifier, the application's name identifier information, the application's upper-layer service call identifier information, the application's service call identifier information, and the application's server identifier information.

[0117] In one example, the first determining unit 32 includes:

[0118] The third determining subunit 321 is used to determine the correspondence between the name identification information, server identification information and system information of each application based on each first service data.

[0119] The fourth determining subunit 322 is used to determine the parsed data of each application based on each correspondence and each second service data.

[0120] In one example, the fourth determining subunit 322 is specifically used for:

[0121] Based on each correspondence, each system information is added to each second service data, and the parsed data for each application is determined.

[0122] In one example, startup parameters include one or more of the following: computer programming language command parameters, server identifier parameters, application name parameters, and system parameters.

[0123] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application, such as... Figure 5 As shown, the electronic device includes: a memory 51 and a processor 52.

[0124] Memory 51; a memory used to store instructions executable by processor 52.

[0125] The processor 52 is configured to perform the methods provided in the above embodiments.

[0126] Figure 6 This is a block diagram of a terminal device provided in an embodiment of this application. The device may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0127] The device 800 may include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.

[0128] Processing component 802 typically controls the overall operation of device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.

[0129] Memory 804 is configured to store various types of data to support the operation of device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0130] Power supply component 806 provides power to various components of device 800. Power supply component 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to device 800.

[0131] Multimedia component 808 includes a screen that provides an output interface between device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When device 800 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0132] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when device 800 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.

[0133] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0134] Sensor assembly 814 includes one or more sensors for providing state assessments of various aspects of device 800. For example, sensor assembly 814 may detect the on / off state of device 800, the relative positioning of components such as the display and keypad of device 800, changes in the position of device 800 or a component of device 800, the presence or absence of user contact with device 800, the orientation or acceleration / deceleration of device 800, and temperature changes of device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0135] Communication component 816 is configured to facilitate wired or wireless communication between device 800 and other devices. Device 800 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0136] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0137] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, which can be executed by a processor 820 of the device 800 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0138] This application also provides a non-transitory computer-readable storage medium, which, when the instructions in the storage medium are executed by the processor of an electronic device, enables the electronic device to perform the methods provided in the above embodiments.

[0139] This application also provides a computer program product, which includes: a computer program stored in a readable storage medium, at least one processor of an electronic device can read the computer program from the readable storage medium, and the at least one processor executes the computer program to cause the electronic device to perform the solution provided in any of the above embodiments.

[0140] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.

[0141] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.

Claims

1. A method for determining system call information of an application, characterized in that, The method includes: Obtain service data for each application; Based on each of the service data, the parsed data for each application is determined, wherein the parsed data includes the application's transmission identifier, the application's upper-layer service call identifier, the application's service call identifier, and the application's system information; Based on the preset transmission identifier and the transmission identifier of the application in each of the parsed data, N target parsed data are determined, and N target applications corresponding to the N target parsed data are determined, where N is a positive integer greater than or equal to 2; Based on the upper-layer service call identifiers of the N target applications, the service call identifiers of the N target applications, and the system information of the N target applications, determine the system call information of each target application; Each of the service data includes the application's service startup data, the application's service call data, and the application's service method-level call data; obtaining the service data of each application includes: based on the startup parameters of each application, obtaining the first service data and the second service data of each application, wherein the first service data is the application's service startup data, and the second service data includes the application's service call data and the application's service method-level call data; Each of the service startup data includes the application's system information, the application's name identifier information, and the application's server identifier information; each of the second service data includes the application's transmission identifier, the application's name identifier information, the application's upper-layer service call identifier information, the application's service call identifier information, and the application's server identifier information; Based on each of the service data, the parsed data for each application is determined, including: Based on each of the first service data, determine the correspondence between the name identification information, server identification information, and system information of each application; Based on each of the aforementioned correspondences, each of the aforementioned system information is added to each of the second service data, thereby determining the parsed data for each of the aforementioned applications; Based on the upper-layer service call identifiers of the N target applications, the service call identifiers of the N target applications, and the system information of the N target applications, the system call information of each target application is determined, including: The target application whose upper-layer service call identifier is set to a preset threshold is identified as the first application; wherein, the first application is the first-layer application among the N target applications, and the first application does not have system call information; Repeat the following steps until the system call information of each target application is determined: obtain the service call identifier of the current first application, and obtain the service call identifier of the upper layer of the other target applications, and determine the target application whose upper layer service call identifier is the service call identifier of the current first application as the second application; wherein, the second application is the next layer application of the current first application, and the second application is called by the current first application; The system information of the first application is determined to be the system call information of the second application, and the new first application is determined to be the second application.

2. The method according to claim 1, characterized in that, Based on a preset transmission identifier and the transmission identifier of the application in each of the parsed data, N target parsed data are determined, and N target applications corresponding to the N target parsed data are determined, including: N parsed data points whose transmission identifiers are the same as preset transmission identifiers are identified as N target parsed data points, and N applications corresponding to the N target parsed data points are identified as N target applications.

3. The method according to claim 1, characterized in that, The startup parameters include one or more of the following: computer programming language command parameters, server identifier parameters, application name parameters, and system parameters.

4. A system call information determination device for an application, characterized in that, The device includes: The acquisition unit is used to acquire service data for each application. The first determining unit is configured to determine the parsing data of each application based on each of the service data, wherein the parsing data includes the transmission identifier of the application, the upper-layer service call identifier of the application, the service call identifier of the application, and the system information of the application; The second determining unit is used to determine N target parsing data and N target applications corresponding to the N target parsing data according to the preset transmission identifier and the transmission identifier of the application in each parsing data, where N is a positive integer greater than or equal to 2; The third determining unit is used to determine the system call information of each of the N target applications based on the upper-layer service call identifiers of the N target applications, the service call identifiers of the N target applications, and the system information of the N target applications; Each of the service data includes the application's service startup data, the application's service call data, and the application's service method-level call data; the acquisition unit is specifically used for: Based on the startup parameters of each application, first service data and second service data of each application are obtained, wherein the first service data is the service startup data of the application, and the second service data includes the service call data and the service method-level call data of the application. Each of the service startup data includes the application's system information, the application's name identifier information, and the application's server identifier information; each of the second service data includes the application's transmission identifier, the application's name identifier information, the application's upper-layer service call identifier information, the application's service call identifier information, and the application's server identifier information; The first determining unit includes: The third determining subunit is used to determine the correspondence between the name identification information, server identification information and system information of each application based on each of the first service data. The fourth determining subunit is used to add each of the system information to each of the second service data according to each of the correspondence relationships, and to determine the parsed data of each of the applications; The third determining unit includes: The first determining subunit is used to determine the target application whose upper-layer service call identifier is a preset threshold as the first application; wherein, the first application is the first-layer application among the N target applications, and the first application does not have system call information; The processing subunit is used to repeat the following steps until the system call information of each target application is determined: obtain the service call identifier of the current first application, and obtain the upper-level service call identifier of the other target applications, and determine the target application whose upper-level service call identifier is the service call identifier of the current first application as the second application; wherein, the second application is the lower-level application of the current first application, and the second application is called by the current first application; The second determining subunit is used to determine that the current system information of the first application is the system call information of the second application, and to determine that the new first application is the second application.

5. The apparatus according to claim 4, characterized in that, The second determining unit is specifically used for: N parsed data points whose transmission identifiers are the same as preset transmission identifiers are identified as N target parsed data points, and N applications corresponding to the N target parsed data points are identified as N target applications.

6. The apparatus according to claim 4, characterized in that, The startup parameters include one or more of the following: computer programming language command parameters, server identifier parameters, application name parameters, and system parameters.

7. An electronic device, characterized in that, The electronic device includes: a memory and a processor; The memory is used to store executable instructions; The processor is configured to perform the method as described in any one of claims 1-3.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-3.

9. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method of any one of claims 1-3.

Citation Information

Patent Citations

  • Method and device for positioning faults

    CN107404456A