Application data processing methods, apparatus, equipment, media and products
By embedding hook functions in the application of the vehicle terminal, information is collected, relevant data is transmitted, and overall performance analysis results are generated, which solves the problem of low efficiency in traditional methods and achieves more efficient performance analysis.
Patent Information
- Application Number
- CN202310175216.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-24
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2043-02-24
AI Technical Summary
Traditional performance testing methods analyze individual application processes, which cannot efficiently analyze the information transmission and data computation performance between application processes in an in-vehicle terminal.
Hook functions are embedded in various applications of the vehicle terminal to collect information, transmit relevant data, and generate overall performance analysis results through hook functions.
It improves the efficiency of performance analysis for information transfer and data computation between application processes, and achieves more efficient performance analysis.
Smart Images

Figure CN116166555B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of automatic driving, and in particular to an application data processing method and device, equipment, medium and product. BACKGROUND
[0002] With the development of the automatic driving industry, vehicles begin to use distributed, multi-node and multi-chip deployment methods due to the large amount of data and information that need to be processed. In order to improve the data processing efficiency of the vehicle terminal, performance testing is generally used to optimize the performance of the vehicle terminal.
[0003] Traditional performance testing is to analyze and optimize by tracking the state in a single application process. Since there are many application programs in the vehicle terminal, the number of simultaneously running processes is generally multiple. If the performance analysis efficiency of information transmission and data calculation between each application process is low by using the single application process analysis method. SUMMARY
[0004] The present application provides an application data processing method, device, equipment, medium and product to solve the problem of low performance analysis efficiency of information transmission and data calculation between each application process by using the single application process analysis method.
[0005] The first aspect of the present application provides an application data processing method, comprising:
[0006] Obtaining information transmission related data of each target application to be processed; the target application is pre-embedded with a hook function; the information transmission related data is generated after being collected by the hook function; there is an information transmission relationship between the target application and at least one other target application;
[0007] Determining the overall performance analysis result corresponding to each target application according to the information transmission related data;
[0008] Outputting the overall performance analysis result.
[0009] Further, the method as described above, the obtaining information transmission related data of each target application to be processed, comprises:
[0010] Obtaining the identification of the target data processing task to be tested;
[0011] Determining the corresponding information transmission related data from the preset common storage area according to the identification; wherein the information transmission related data is collected by the hook function and stored in the preset common storage area according to the identification;
[0012] The information transmission related data is determined as information transmission related data of each target application to be processed.
[0013] Further, the information transmission related data includes information attribute related data and information receiving and sending time according to the method described above.
[0014] The overall performance analysis result corresponding to each target application is determined according to the information transmission related data, including:
[0015] The information transmission delay between each target application and the information processing delay of each target application itself are determined according to the information attribute related data and the information receiving and sending time.
[0016] Further, the method described above further includes:
[0017] The hook function is embedded in each target application, and the collection strategy and the transmission strategy of the hook function for the information transmission related data corresponding to each target application are set.
[0018] The information transmission related data of the corresponding target application is collected by the hook function according to the corresponding collection strategy.
[0019] The information transmission related data of the corresponding target application is stored in the preset common storage area by the hook function according to the corresponding transmission strategy.
[0020] Further, the method described above includes:
[0021] The hook function is set to collect the information transmission related data asynchronously by using an idle thread in the process corresponding to each target application, and the information transmission related data is stored in the preset common storage area according to the identifier corresponding to the information transmission related data.
[0022] Further, the method described above further includes:
[0023] When the information transmission related data of each target application is not collected, the call in the hook function is set to be empty by using a preset macro.
[0024] The second aspect of the application provides an application data processing device, including:
[0025] An acquisition module is configured to acquire information transmission related data of each target application to be processed, wherein the target application has a hook function embedded in advance, the information transmission related data is generated after being collected by the hook function, and the target application has an information transmission relationship with at least one other target application;
[0026] A determination module is configured to determine an overall performance analysis result corresponding to each target application according to the information transmission related data.
[0027] An output module is configured to output the overall performance analysis result.
[0028] Further, the apparatus described above, the acquisition module is specifically configured to:
[0029] acquire an identifier of a target data processing task to be tested, determine corresponding information transmission related data from a preset public storage area according to the identifier, wherein the information transmission related data is collected by the hook function and stored in the preset public storage area according to the identifier, and determine the information transmission related data as the information transmission related data of each target application to be processed.
[0030] Further, the apparatus described above, the information transmission related data includes information attribute related data and information receiving and sending time.
[0031] The determination module is specifically configured to:
[0032] determine information transmission delay between each target application and information processing delay of each target application itself according to the information attribute related data and the information receiving and sending time.
[0033] Further, the apparatus described above, the apparatus further includes:
[0034] A first setting module is configured to embed the hook function in each target application, and set a collection strategy and a transmission strategy of the hook function for corresponding information transmission related data of each target application, collect the information transmission related data of the corresponding target application according to the corresponding collection strategy by using the hook function, and store the information transmission related data of the corresponding target application into a preset public storage area according to the corresponding transmission strategy by using the hook function.
[0035] Further, the apparatus described above, when setting the collection strategy and the transmission strategy of the hook function for corresponding information transmission related data of each target application, the first setting module is specifically configured to:
[0036] The hook function is set to be collected asynchronously by an idle thread in a process corresponding to each target application, and the information transmission related data is stored in the preset common storage area according to the identifier corresponding to the information transmission related data.
[0037] Further, the apparatus as described above, the apparatus further comprises:
[0038] The second setting module is configured to set the call in the hook function to be empty by using a preset macro when the information transmission related data of each target application is not collected.
[0039] The third aspect of the present application provides an electronic device, comprising a memory and a processor.
[0040] The memory stores computer execution instructions.
[0041] The processor executes the computer execution instructions stored in the memory to implement the application program data processing method according to any one of the first aspect.
[0042] The fourth aspect of the present application provides a computer readable storage medium, the computer readable storage medium stores computer execution instructions, and the computer execution instructions are executed by the processor to implement the application program data processing method according to any one of the first aspect.
[0043] The fifth aspect of the present application provides a computer program product, comprising a computer program, which is executed by the processor to implement the application program data processing method according to any one of the first aspect.
[0044] The application program data processing method, device, equipment, medium and product provided by the present application, the method comprises: obtaining information transmission related data of each target application to be processed; the hook function is pre-embedded in the target application; the information transmission related data is generated after being collected by the hook function; there is an information transmission relationship between the target application and at least one other target application; determining the overall performance analysis result corresponding to each target application according to the information transmission related data; outputting the overall performance analysis result. The application program data processing method of the present application efficiently collects the information transmission related data of each target application through the hook function pre-embedded in the target application. After obtaining the information transmission related data of each target application, the overall performance analysis can be performed on the multiple processes corresponding to each target application. Compared with the existing single application process analysis method, the performance analysis efficiency of information transmission and data calculation between each application process is higher, thereby improving the performance analysis efficiency. BRIEF DESCRIPTION OF DRAWINGS
[0045] The accompanying drawings, which are incorporated herein and form a part of the specification, illustrate embodiments consistent with the present application and, together with the description, further serve to explain the principles of the application.
[0046] Figure 1 A scene diagram of an application data processing method according to an embodiment of the present application;
[0047] Figure 2 A flowchart of an application data processing method according to the present application Figure One ;
[0048] Figure 3 A flowchart of an application data processing method according to the present application Figure Two ;
[0049] Figure 4 A schematic diagram of a hook function embedding and collection of an application data processing method according to the present application;
[0050] Figure 5 A structural schematic diagram of an application data processing apparatus according to the present application Figure One ;
[0051] Figure 6 A structural schematic diagram of an application data processing apparatus according to the present application Figure Two ;
[0052] Figure 7 A structural schematic diagram of an electronic device according to the present application.
[0053] The specific embodiments of the present application have been shown and described in the above-described drawings, and will be described in more detail hereinafter. These drawings and descriptions are not intended to limit the scope of the inventive concept in any way, but to illustrate the inventive concept to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0054] The exemplary embodiments will be described in detail herein with reference to the attached drawings. In the following description, like reference numerals refer to like elements, unless the context clearly dictates otherwise. The following exemplary embodiments are described in enough detail to enable those skilled in the art to make and use the application, and it is understood that the detailed description and specific examples presented herein are not to be construed as limiting the scope of the application, but as presenting examples of the application.
[0055] In the technical solution of the embodiments of the present application, the collection, storage, use, processing, transmission, provision and disclosure of user personal information comply with relevant laws and regulations and do not violate public order and good customs.
[0056] The technical solutions of the present application will be described in detail below with specific examples. The following specific examples can be combined with each other, and the same or similar concepts or processes may not be described again in some examples. The embodiments of the present application will be described below with reference to the accompanying drawings.
[0057] In order to clearly understand the technical solutions of the present application, the prior art solutions will be described in detail first. Due to the high requirements of automatic driving technology on data processing and information transmission, vehicles have gradually changed from single-chip deployment to multi-chip distributed deployment. To realize automatic driving of vehicles, detection devices such as cameras and laser radars are needed to detect road conditions. The vehicle terminal needs to process the detection data and generate subsequent driving decisions based on the processed data. At the same time, the communication of Internet of Vehicles needs to be considered. Through complex data processing of the vehicle terminal, automatic driving of the vehicle is realized. In order to optimize the data processing efficiency in the automatic driving process, performance testing is generally used to optimize the performance of the vehicle terminal.
[0058] Traditional performance testing is to analyze and optimize the state of a single application process through performance optimization tools. Since there are many application programs in the vehicle terminal that realize corresponding functions, and the number of running processes is generally multiple. If performance testing is performed by analyzing a single application process, the performance analysis efficiency of information transmission and data calculation between application processes is low.
[0059] Therefore, in order to solve the problem of low performance analysis efficiency of information transmission and data calculation between application processes in the prior art by analyzing a single application process, the inventors found in research that in order to solve this problem, a hook function can be set in each application program of the vehicle terminal, and information transmission related data including information transmission and information processing in each application process can be collected through the hook function. Thus, according to the information transmission related data, the comprehensive performance analysis of each target application program is realized, and the corresponding overall performance analysis result is generated.
[0060] Specifically, information transmission related data of each target application program to be processed is obtained. The hook function is pre-embedded in the target application program. The information transmission related data is generated after being collected by the hook function. There is an information transmission relationship between the target application program and at least one other target application program. The overall performance analysis result corresponding to each target application program is determined according to the information transmission related data, and the overall performance analysis result is output.
[0061] The application data processing method of the present invention efficiently collects information transmission-related data of each target application by pre-embedding hook functions in the target application. After obtaining the information transmission-related data of each target application, overall performance analysis can be performed on multiple processes corresponding to each target application. Compared with the existing single application process analysis method, it is more efficient in the performance analysis of information transmission and data calculation between application processes, thereby improving the performance analysis efficiency.
[0062] Based on the above-mentioned inventive discovery, the inventor has proposed the technical solution of this application.
[0063] The following describes the application scenarios of the application data processing method provided in the embodiments of the present invention. For example... Figure 1 As shown, 1 represents the first electronic device, 2 represents the vehicle-mounted terminal, and 3 represents the second electronic device. The network architecture of the application scenario corresponding to the application data processing method provided in this embodiment of the invention includes: the first electronic device 1, the vehicle-mounted terminal 2, and the second electronic device 3. Each application in the vehicle-mounted terminal 2 has pre-embedded hook functions, which collect and store information transmission-related data corresponding to each application.
[0064] When performance testing and analysis are required, the first electronic device 1 acquires information transmission-related data for each target application to be processed from the vehicle terminal 2. This information transmission-related data may include information reception and transmission times, the identifier of the corresponding data processing task, etc. This information transmission-related data is generated after being collected by a hook function. An information transmission relationship exists between a target application and at least one other target application. For example, there is an information transmission relationship between an image processing application and a driving decision generation application.
[0065] The first electronic device 1 determines the overall performance analysis results for each target application based on the information transmission data and outputs the overall performance analysis results to the third electronic device 3. The third electronic device 3 can optimize the applications of the vehicle terminal 2 according to the overall performance analysis results, or generate corresponding performance optimization schemes based on the overall performance analysis results. Simultaneously, in other application scenarios, the first electronic device 1 can also optimize the applications of the vehicle terminal 2 according to the overall performance analysis results, or generate corresponding performance optimization schemes based on the overall performance analysis results.
[0066] The embodiments of the present invention will now be described with reference to the accompanying drawings.
[0067] Figure 2 Flowchart of the application data processing method provided by the present invention Figure One ,like Figure 2As shown, in this embodiment, the execution subject of the embodiment of the present application is an application data processing apparatus, which can be integrated in an electronic device. The application data processing method provided in this embodiment includes the following steps:
[0068] In step S101, information transmission related data of each target application to be processed is acquired. A hook function is pre-embedded in the target application. The information transmission related data is generated after being collected by the hook function. There is an information transmission relationship between the target application and at least one other target application.
[0069] In this embodiment, various application programs are included in the vehicle terminal, such as road surface detection application programs, image and sound processing application programs, decision generation application programs, communication application programs, decision execution application programs, etc. Each application program generally corresponds to a process, and the vehicle terminal can have multiple application program processes at the same time. At this time, there can be an information transmission relationship between the application programs, such as a road surface detection application program that can be used to acquire road surface detection data from a detection device and perform data preprocessing, and the preprocessed data is further processed by an image and sound processing application program. The intermediate data processed by the image and sound processing application program is further processed by the decision generation application program. Thus, an information transmission relationship is formed.
[0070] When performing performance testing, the information transmission related data of each target application collected by the hook function can efficiently analyze the overall performance of each target application, thereby optimizing the data processing performance of the vehicle terminal.
[0071] In this embodiment, the data and calculation process tracking is performed by uniformly using the hook function, so that the data processing of each target application and the information transmission between each target application can be clearly known, and the actual time consumption of processing data delay, calculation delay, various error processing, etc. can be determined.
[0072] In step S102, the overall performance analysis result corresponding to each target application is determined according to the information transmission related data.
[0073] In this embodiment, the information transmission related data can include information attribute related data and information receiving and sending time, the information attribute related data can include information data size, identification of information corresponding data processing task, etc., and the information receiving and sending time can include information receiving time, information sending time, etc.
[0074] The overall performance analysis result determined according to the information transmission related data can include the performance of data processing of each target application and the information transmission performance between each target application.
[0075] Step S103: output the overall performance analysis result.
[0076] In this embodiment, the overall performance analysis result can be output to other electronic devices, so that the other electronic devices can optimize the target application program according to the overall performance analysis result, or generate a corresponding performance optimization scheme according to the overall performance analysis result, etc.
[0077] The application program data processing method provided by the embodiment of the application comprises: obtaining information transmission related data of each target application program to be processed. A hook function is pre-embedded in the target application program. The information transmission related data is generated after being collected by the hook function. There is an information transmission relationship between the target application program and at least one other target application program. The overall performance analysis result corresponding to each target application program is determined according to the information transmission related data. The overall performance analysis result is output.
[0078] The application program data processing method of the application can efficiently collect the information transmission related data of each target application program through the hook function pre-embedded in the target application program. After obtaining the information transmission related data of each target application program, the overall performance of each target application program can be analyzed. Compared with the existing single application program process analysis method, the performance analysis efficiency of information transmission and data calculation between each application program process is higher, thereby improving the performance analysis efficiency.
[0079] Figure 3 Flowchart of the application program data processing method provided by the application Figure Two As shown in Figure 3 The application program data processing method provided by the embodiment is further refined on the basis of the application program data processing method provided by the previous embodiment of the application. The application program data processing method provided by the embodiment comprises the following steps.
[0080] Step S201: obtain the identifier of the target data processing task to be tested.
[0081] In order to improve the processing efficiency of the data processing task in the automatic driving process, in this embodiment, after the hook function collects the information transmission related data, the information transmission related data is stored in a preset common storage area according to the identifier of the target data processing task. At the same time, the overall performance analysis result is also based on the information transmission related data corresponding to the identifier of the target data processing task.
[0082] The target data processing task can be an image processing task, a detection information processing task, etc., and the identifier can be the name, a digital number, etc. of the data processing task.
[0083] Optionally, before step S201, the method further comprises:
[0084] The hook function is embedded in each target application, and the hook function is set to collect and transmit information transmission related data corresponding to each target application.
[0085] The hook function collects information transmission related data corresponding to the target application according to the corresponding collection strategy.
[0086] The hook function stores the information transmission related data of the corresponding target application in the preset common storage area according to the corresponding transmission strategy.
[0087] As shown in Figure 4 After the hook function is embedded in the application, it can collect information transmission related data when the application transmits information, and store it in the preset common storage area. The collection strategy can be a strategy that improves the collection efficiency based on the collection efficiency, or a strategy that does not affect the processing performance of the target application.
[0088] The transmission strategy can be to store the information transmission related data in the preset common storage area according to the identification of the target data processing task, or to store the information transmission related data in the preset common storage area according to the identification of the target application. The present embodiment is not limited in this regard.
[0089] Optionally, in the present embodiment, the hook function is set to collect and transmit information transmission related data corresponding to each target application, which can be specifically:
[0090] The hook function is set to collect information transmission related data in the process corresponding to each target application using idle threads asynchronously, and the information transmission related data is stored in the preset common storage area according to the identification of the information transmission related data.
[0091] In the present embodiment, after the hook function is set, if some threads in the process corresponding to the target application are used for data processing, the hook function can determine the idle threads in the idle state, and collect information transmission related data such as information attribute related data and information receiving and sending time asynchronously using idle threads. Thus, while reducing the impact on the data processing performance of the target application, the collection efficiency of the information transmission related data is improved through idle threads and asynchronous mode.
[0092] In order to further reduce the impact on the performance of the target application, optionally, the present embodiment further includes the following steps:
[0093] When the information transmission related data of each target application is not collected, the preset macro is used to set the call in the hook function to be empty.
[0094] By setting the call in the hook function to empty through the preset macro, the performance influence on the target application program can be reduced, and when information transmission related data of each target application program needs to be collected, the call in the hook function is reactivated, thereby improving the convenience of using the hook function.
[0095] In step S202, the information transmission related data is determined from the preset common storage area according to the identifier. The information transmission related data is collected by the hook function and stored in the preset common storage area according to the identifier.
[0096] In this embodiment, the properties of the preset common storage area such as size and position can be set according to actual needs, and the preset common storage area stores the mapping relationship between the identifier and the information transmission related data.
[0097] In step S203, the information transmission related data is determined as the information transmission related data of each target application program to be processed.
[0098] The information transmission related data obtained from the preset common storage area is used in subsequent steps to determine the overall performance analysis result corresponding to each target application program.
[0099] In step S204, the overall performance analysis result corresponding to each target application program is determined according to the information transmission related data.
[0100] In this embodiment, the implementation manner of step S204 is similar to that of step S102 in the previous embodiment, and will not be described again.
[0101] Optionally, in this embodiment, the information transmission related data includes information attribute related data and information receiving and sending time.
[0102] Step S204 can be specifically:
[0103] The information transmission delay between each target application program and the information processing delay of each target application program itself are determined according to the information attribute related data and the information receiving and sending time.
[0104] In this embodiment, the delay of the target data processing task generally includes the information transmission delay between each target application program and the information processing delay of each target application program itself.
[0105] In this embodiment, the data and calculation process are tracked by uniformly using the hook function, so that the initiation of a task and the overall calculation period and data processing time consumption can be clearly known, and the actual time consumption of processing data delay, calculation delay, various error processing, etc. can be understood from the overall business.
[0106] In step S205, the overall performance analysis result is output.
[0107] In this embodiment, the implementation of step S205 is similar to that of step S103 in the previous embodiment, and thus is not described again.
[0108] Meanwhile, if performance analysis and performance optimization between multiple chips are needed, the time of the multiple chips can be unified. For example, the chips can be grouped according to information sending ends and information receiving ends, one information receiving end in each group, and the other chips being information sending ends, so that the time of the chips in each group is the same.
[0109] The information transmission related data of multiple processes in each chip can also be collected through the hook function, and the time stamp of each chip is displayed. By adjusting the time stamp corresponding to the information transmission related data of each chip, the information transmission related data is in the same reference time, and the time of the multiple chips is unified. Thus, a basis is provided for subsequent performance analysis and performance optimization between the multiple chips.
[0110] Figure 5 Structure diagram of the application program data processing apparatus provided by the present application Figure One As shown in Figure 5 In this embodiment, the application program data processing apparatus 300 can be arranged in an electronic device, and the application program data processing apparatus 300 comprises:
[0111] An acquisition module 301 is configured to acquire information transmission related data of each target application program to be processed. The hook function is pre-embedded in the target application program. The information transmission related data is generated after being collected by the hook function. There is an information transmission relationship between the target application program and at least one other target application program.
[0112] A determination module 302 is configured to determine an overall performance analysis result corresponding to each target application program according to the information transmission related data.
[0113] An output module 303 is configured to output the overall performance analysis result.
[0114] The application program data processing apparatus provided in this embodiment can execute the technical solutions of the method embodiment shown in Figure 2 The implementation principle and technical effects are similar to those of the method embodiment shown in Figure 2 , and thus are not described again.
[0115] Figure 6 Structure diagram of the application program data processing apparatus provided by the present application Figure Two As shown in Figure 6As shown, the application data processing apparatus provided by the application provides the application data processing apparatus provided in the previous embodiment, and further refines the application data processing apparatus. For the convenience of description, the application data processing apparatus of the embodiment is described by using the application data processing apparatus 400.
[0116] Optionally, in the embodiment, the acquisition module 301 is specifically configured to:
[0117] acquire the identifier of the target data processing task to be tested, determine the information transmission related data from the preset public storage area according to the identifier, wherein the information transmission related data is collected by the hook function and stored in the preset public storage area according to the identifier, and the information transmission related data is determined as the information transmission related data of each target application to be processed.
[0118] Optionally, in the embodiment, the information transmission related data includes information attribute related data and information receiving and sending time.
[0119] The determination module 302 is specifically configured to:
[0120] determine the information transmission delay between each target application and the information processing delay of each target application itself according to the information attribute related data and the information receiving and sending time.
[0121] Optionally, in the embodiment, the application data processing apparatus 400 further includes:
[0122] The first setting module 401 is configured to embed the hook function in each target application, and set the collection strategy and transmission strategy of the hook function for the information transmission related data corresponding to each target application. The hook function is used to collect the information transmission related data of the corresponding target application according to the corresponding collection strategy. The hook function is used to store the information transmission related data of the corresponding target application into the preset public storage area according to the corresponding transmission strategy.
[0123] Optionally, in the embodiment, when the first setting module 401 sets the collection strategy and transmission strategy of the hook function for the information transmission related data corresponding to each target application, the first setting module 401 is specifically configured to:
[0124] set the hook function to collect the information transmission related data in the idle thread asynchronously in the process corresponding to each target application, and store the information transmission related data in the preset public storage area according to the identifier corresponding to the information transmission related data.
[0125] Optionally, in the embodiment, the application data processing apparatus 400 further includes:
[0126] The second setting module 402 is used to set the calls in the hook function to empty by using a preset macro when the information transmission related data of each target application is not collected.
[0127] The application data processing device provided in this embodiment can execute... Figures 2-4 The technical solution of the method embodiment shown has the same implementation principle and technical effect as... Figures 2-4 The methods and embodiments shown are similar and will not be described in detail here.
[0128] According to embodiments of the present invention, the present invention also provides an electronic device, a computer-readable storage medium, and a computer program product.
[0129] like Figure 7 As shown, Figure 7 This is a schematic diagram of the electronic device provided by the present invention. The electronic device is intended for various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, blade servers, mainframe computers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0130] like Figure 7 As shown, the electronic device includes a processor 501 and a memory 502. The various components are interconnected via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processor can process instructions executed within the electronic device.
[0131] The memory 502 is the non-transitory computer-readable storage medium provided by the present invention. The memory stores instructions executable by at least one processor to cause the at least one processor to perform the application data processing method provided by the present invention. The non-transitory computer-readable storage medium of the present invention stores computer instructions for causing a computer to perform the application data processing method provided by the present invention.
[0132] Memory 502, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions / modules corresponding to the application data processing method in this embodiment of the invention (e.g., appendix). Figure 5 The acquisition module 301, determination module 302, and output module 303 are shown. The processor 501 executes various functional applications and data processing of the electronic device by running non-transient software programs, instructions, and modules stored in the memory 502, that is, it implements the application data processing method in the above method embodiment.
[0133] Meanwhile, the embodiment further provides a computer product. When instructions in the computer product are executed by a processor of an electronic device, the electronic device is enabled to execute the application data processing method of the above embodiment.
[0134] Those skilled in the art will readily appreciate that other implementation embodiments of the present application can be developed in accordance with the teachings of the present application disclosed herein. This implementation embodiment is intended to be illustrative only and the application is limited only by the scope of the appended claims. Accordingly, other embodiments are within the scope of the following claims.
[0135] It is to be understood that the application is not limited to the precise construction described above and shown in the attached drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the application. The scope of the application is limited only by the claims that follow.
Claims
1. An application data processing method applied to testing of an automatic driving vehicle terminal, characterized in that, The method comprises: obtaining an identifier of a target data processing task to be tested; determining corresponding information transmission related data from a preset common storage area according to the identifier; wherein the information transmission related data is collected by a hook function and stored in the preset common storage area according to the identifier; the information transmission related data is determined as information transmission related data of each target application program to be processed; the hook function is pre-embedded in the target application program; the hook function is set to collect the information transmission related data asynchronously by using an idle thread in a process corresponding to each target application program; the target application program and at least one other target application program have an information transmission relationship; the information transmission relationship includes information sending and receiving relationship between the target application programs; determining an overall performance analysis result corresponding to each target application program according to the information transmission related data; the overall performance analysis result includes information transmission delay between each target application program and information processing delay of each target application program itself; outputting the overall performance analysis result.
2. The method of claim 1, wherein, The information transmission related data includes information attribute related data and information receiving and sending time.
3. The method of claim 1, wherein, Before the information transmission related data of each target application program to be processed is obtained, the method further comprises: embedding the hook function in each target application program, and setting the collection strategy and transmission strategy of the hook function for the information transmission related data corresponding to each target application program; collecting the information transmission related data of the corresponding target application program according to the corresponding collection strategy by using the hook function; storing the information transmission related data of the corresponding target application program into the preset common storage area according to the corresponding transmission strategy by using the hook function.
4. The method of claim 3, wherein, The setting of the collection strategy and transmission strategy of the hook function for the information transmission related data corresponding to each target application program comprises: storing the information transmission related data in the preset common storage area according to the identifier corresponding to the information transmission related data.
5. The method according to any one of claims 1 to 4, characterized in that, The method further comprises: when the information transmission related data of each target application program is not collected, setting the call in the hook function to be empty by using a preset macro.
6. An application data processing apparatus applied to testing of an automatic driving vehicle terminal, characterized by, The method comprises: an obtaining module, configured to obtain an identifier of a target data processing task to be tested; determining corresponding information transmission related data from a preset common storage area according to the identifier; wherein the information transmission related data is collected by a hook function and stored in the preset common storage area according to the identifier; the information transmission related data is determined as information transmission related data of each target application program to be processed; the hook function is pre-embedded in the target application program; the hook function is set to collect the information transmission related data asynchronously by using an idle thread in a process corresponding to each target application program; the target application program and at least one other target application program have an information transmission relationship; the information transmission relationship includes information sending and receiving relationship between the target application programs; A determining module is configured to determine an overall performance analysis result corresponding to each target application according to the information transmission related data; the overall performance analysis result includes information transmission delays between the target applications and information processing delays of the target applications themselves; An output module is configured to output the overall performance analysis result.
7. An electronic device, comprising: The application further provides a computer readable storage medium and a computer program. The computer readable storage medium stores computer execution instructions, and the computer execution instructions are executed by a processor to implement the application program data processing method. The computer readable storage medium stores computer execution instructions, and the computer execution instructions are executed by a processor to implement the application program data processing method. The computer program is executed by a processor to implement the application program data processing method.
8. A computer-readable storage medium, characterized in that, 9. A computer program product comprising a computer program, characterized in that,
Citation Information
Patent Citations
Performance test method and device for heterogeneous acceleration program and storage medium
CN115061925A