CN116127525A - Data processing method, device, equipment, storage medium and product - Google Patents

Data processing method, device, equipment, storage medium and product Download PDF

Info

Publication number
CN116127525A
CN116127525A CN202211281600.0A CN202211281600A CN116127525A CN 116127525 A CN116127525 A CN 116127525A CN 202211281600 A CN202211281600 A CN 202211281600A CN 116127525 A CN116127525 A CN 116127525A
Authority
CN
China
Prior art keywords
function
monitoring
operation data
monitored
objective function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211281600.0A
Other languages
Chinese (zh)
Inventor
程传立
张银全
曾琳铖曦
蒋宁
吴海英
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mashang Xiaofei Finance Co Ltd
Original Assignee
Mashang Xiaofei Finance Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mashang Xiaofei Finance Co Ltd filed Critical Mashang Xiaofei Finance Co Ltd
Priority to CN202211281600.0A priority Critical patent/CN116127525A/en
Publication of CN116127525A publication Critical patent/CN116127525A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The present disclosure provides a data processing method, apparatus, device, storage medium, and product, the method comprising: acquiring a function monitoring request corresponding to a target application sent by a request platform, wherein the function monitoring request comprises at least one function to be monitored corresponding to the target application; in the running process of the target application, determining at least one target function meeting preset monitoring conditions in the at least one function to be monitored according to the function monitoring request; and acquiring operation data corresponding to each objective function, and sending the operation data to the request platform. Therefore, the operation data of at least one objective function meeting the preset monitoring condition can be rapidly acquired, and the efficiency and accuracy of operation data acquisition are improved. In addition, the acquisition of the operation data can be realized without modifying the codes, and the operation is more convenient.

Description

Data processing method, device, equipment, storage medium and product
Technical Field
The present disclosure relates to the field of computers, and in particular, to a data processing method, apparatus, device, storage medium, and product.
Background
When the execution result of the application program is inconsistent with the expected result, in order to realize adjustment of the application program and troubleshooting of the problem, the execution condition of a certain function in the running process of the application program needs to be judged.
The existing method for checking the problems of the application program generally prints the input parameters and the output parameters of the function to be tested into the log by modifying codes, repacks and deploys the program, and observes the log in the running process of the application program to realize the checking of the problems.
However, the method is used for conducting a plurality of links from code changing to deployment in the process of problem checking, the checking period is long, and emergency situations cannot be dealt with. In addition, each time the code is modified, only one problem can be determined, so that the flexibility is poor.
Disclosure of Invention
The disclosure provides a data processing method, a device, equipment, a storage medium and a product, which are used for solving the technical problems that the existing problem investigation method is complicated in the operation data acquisition process of a function and poor in flexibility.
A first aspect of the present disclosure provides a data processing method, including:
acquiring a function monitoring request corresponding to a target application sent by a request platform, wherein the function monitoring request comprises at least one function to be monitored corresponding to the target application;
In the running process of the target application, determining at least one target function meeting preset monitoring conditions in the at least one function to be monitored according to the function monitoring request;
and acquiring operation data corresponding to each objective function, and sending the operation data to the request platform.
A second aspect of the present disclosure provides a data processing apparatus comprising:
the system comprises an acquisition module, a request platform and a function monitoring module, wherein the acquisition module is used for acquiring a function monitoring request corresponding to a target application sent by the request platform, and the function monitoring request comprises at least one function to be monitored corresponding to the target application;
the determining module is used for determining at least one objective function meeting preset monitoring conditions in the at least one function to be monitored according to the function monitoring request in the running process of the objective application;
and the processing module is used for acquiring the operation data corresponding to each objective function and sending the operation data to the request platform.
A third aspect of the present disclosure is to provide an electronic device, including: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to invoke program instructions in the memory to perform the method according to the first aspect.
A fourth aspect of the present disclosure provides a computer-readable storage medium having stored therein computer-executable instructions which, when executed by a processor, are adapted to carry out the method according to the first aspect.
A fifth aspect of the present disclosure provides a computer program product comprising a computer program which, when executed by a processor, implements the method as described in the first aspect.
According to the data processing method, the device, the equipment, the storage medium and the product, after at least one objective function meeting preset monitoring conditions in the functions to be monitored is determined according to the function monitoring request, operation data corresponding to the objective function can be acquired, and the operation data is synchronized to the request platform. Therefore, on the basis of no need of modifying codes, the method and the device can rapidly acquire the operation data of at least one objective function meeting the preset monitoring conditions in the target application, and improve the acquisition efficiency and accuracy of the operation data. In addition, by sending the operation data to the request platform, a technician can monitor the target application according to the operation data received by the request platform, the monitoring of the target application is not required to be realized through the monitoring log file, and the monitoring efficiency of the target application is improved.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and other drawings may be obtained according to these drawings for a person having ordinary skill in the art.
FIG. 1 is a schematic diagram of a system architecture upon which the present disclosure is based;
FIG. 2 is a flow chart of a data processing method according to an embodiment of the disclosure;
FIG. 3 is a flow chart of a data processing method according to another embodiment of the present disclosure;
FIG. 4 is a flow chart of a data processing method according to another embodiment of the present disclosure;
FIG. 5 is a flow chart of a data processing method according to another embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a data processing apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are some embodiments of the present disclosure, but not all embodiments. All other embodiments obtained based on the embodiments in the present disclosure are within the scope of the protection of the present disclosure.
Noun interpretation:
cutting technique: the method comprises the steps of binding pre-logic and post-logic to a designated code, wherein no change or operation is needed at the designated code, when the program runs to the designated code, the pre-logic and the post-logic are executed according to a preset execution sequence, and the operation data is acquired according to the acquisition rules pre-configured in the pre-logic and the post-logic.
Front-end and back-end communication protocols: websocket. Through the protocol, after the front end sends a request once, the back end can reply to the request for multiple times, that is, the back end can push data to the front end for multiple times.
Front logic, back logic: and the function for extracting the operation data is written for the user according to the actual requirements. The types of the operation data to be acquired, the execution logic of the pre-logic and/or the post-logic and the like are defined in the pre-logic and/or the post-logic.
Aiming at the technical problems that the prior problem investigation method is complicated in function operation data acquisition flow and poor in flexibility, the disclosure provides a data processing method, a device, equipment, a storage medium and a product.
It should be noted that the present disclosure provides a data processing method, apparatus, device, storage medium, and product, which may be used in a scenario of troubleshooting various application software.
On one hand, the existing data processing method needs to modify codes, and performs data processing according to the logs of the modified codes in the running process, but often has complicated operation, and can not acquire running data of a plurality of functions at one time. On the other hand, in order to achieve the acquisition of the function operation data, it is necessary to run a proxy package on the machine of the monitored program, by which the operation data of the function is monitored. However, due to operating environment limitations, it may not be possible to install a proxy package into the system in which the monitored program is located. In addition, the agent package cannot persist the monitoring results in the database, and can only monitor in real time.
In solving the above technical problems, the inventors found through researches that, in order to rapidly achieve the acquisition of the operation data of a plurality of objective functions, the front logic may be bound to the front end of the objective function, and the rear logic may be bound to the rear end of the objective function. And obtaining the operation data of the objective function by adopting a tangent plane technology according to the pre-logic and the post-logic. The code does not need to be modified, and the operation data of a plurality of functions can be acquired at one time. In addition, the operational data may be sent to a requesting platform or stored to a preset storage path to facilitate later analysis optimization operations.
Fig. 1 is a schematic diagram of a system architecture based on the present disclosure, as shown in fig. 1, where the system architecture based on the present disclosure at least includes: the system comprises a request platform 11 and a server 12, wherein a data processing device is arranged in the server 12, and the data processing device can be written in languages such as C/C++, java, shell or Python; the requesting platform 11 may be, for example, a desktop computer, a tablet computer, etc.
Fig. 2 is a flow chart of a data processing method according to an embodiment of the disclosure, as shown in fig. 2, where the method includes:
step 201, obtaining a function monitoring request corresponding to a target application sent by a request platform, wherein the function monitoring request comprises at least one function to be monitored corresponding to the target application.
The execution body of the present embodiment is a data processing device, which may be coupled in a server. The server may be communicatively coupled to the requesting platform to enable information interaction with the requesting platform. The request platform comprises a front-end webpage, a client and any other platform which can call a back-end program interface in a mode of sending an http request to realize the input of function information needing to be monitored.
In this embodiment, the user may input function information that needs to be monitored currently in the request platform according to the actual requirement, where the function information may include an identifier such as a function name. The user can call the back-end program interface through a webpage or any mode capable of sending an http request to realize the input of function information needing to be monitored, and the method is not limited in this disclosure. The request platform may generate a function monitoring request based on the function information input by the user and send the function monitoring request to the data processing apparatus. Accordingly, the data processing apparatus may obtain the function monitoring request sent by the request platform.
Step 202, determining at least one objective function meeting preset monitoring conditions in the at least one function to be monitored according to the function monitoring request in the running process of the objective application.
In the present embodiment, in order to more accurately achieve the acquisition of the operation data of the function to be monitored, the monitoring conditions may be set in advance. The monitoring condition may be that the number of times of operation data acquisition does not exceed the number of times specified by the user, the data amount of the acquired operation data does not exceed a preset data amount threshold, and the like. By setting the monitoring conditions, accurate acquisition of operation data can be realized in different scenes.
Thus, after the function monitoring request is acquired, at least one objective function satisfying a preset monitoring condition among the at least one function to be monitored may be determined during the running of the target application.
Step 203, obtaining operation data corresponding to each objective function, and sending the operation data to the request platform.
In this embodiment, after determining a plurality of objective functions for which operation data acquisition is required, operation data generated during the operation of the objective functions may be acquired.
Optionally, for each objective function, a tangent plane technique may be used to obtain operation data corresponding to the objective function. Therefore, the method and the device can rapidly acquire the operation data of a plurality of objective functions in the single operation process of the target application, and have lower operation difficulty without modifying codes.
The running data includes, but is not limited to, start execution time, end execution time, execution time consumption, full name of the objective function, parameter exit, parameter entry, exception information of the objective function, and the like.
Further, after the operation data corresponding to the objective function is obtained, in order to facilitate the subsequent data analysis operation of the technician, the operation data corresponding to at least one objective function may be sent to the request platform.
Accordingly, the requesting platform may visually present the operational data. Therefore, after the technician checks the operation data corresponding to the at least one objective function on the request platform, the technician can perform data analysis operation based on the operation data so as to check the reasons that the execution result of the application program is inconsistent with the expected result. And further, operations such as modification and optimization of the application program can be performed based on the analysis result.
According to the data processing method provided by the embodiment, after at least one objective function meeting the preset monitoring condition in the functions to be monitored is determined according to the function monitoring request, the operation data corresponding to the objective function can be acquired by adopting the tangent plane technology, and the operation data is synchronized to the request platform. Therefore, the acquisition of the operation data of the plurality of objective functions meeting the preset monitoring conditions can be rapidly realized, and the efficiency of the operation data acquisition is higher. In addition, by sending the operation data to the request platform, a technician can monitor the target application according to the operation data received by the request platform, the monitoring of the target application is not required to be realized through the monitoring log file, and the monitoring efficiency of the target application is improved.
Further, based on any of the above embodiments, step 202 includes:
and adding the at least one function to be monitored to a preset monitoring list according to the function monitoring request, wherein the monitoring list comprises a plurality of pre-stored functions to be monitored.
And in the running process of the target application, intercepting a plurality of functions to be monitored in the monitoring list, and determining at least one target function meeting preset monitoring conditions in the monitoring list.
In this embodiment, since a part of functions to be monitored may need to acquire operation data in the multiple operation processes, in order to accurately acquire operation data in the multiple operation processes, a monitoring list may be established to implement management of the functions to be monitored.
Accordingly, after the function monitoring request is acquired, at least one function to be monitored may be added to a preset monitoring list according to the function monitoring request, where a plurality of functions to be monitored may be pre-stored in the monitoring list, and the pre-stored functions to be monitored may be functions for which the acquisition of the running data is not completed.
During the operation of the target application, there may be multiple functions running. Therefore, according to the updated monitoring list, the interception operation can be performed on the plurality of functions to be monitored in the monitoring list, and at least one objective function meeting the preset monitoring condition in the plurality of functions to be monitored in the monitoring list is further determined.
According to the data processing method provided by the embodiment, the monitoring list is built according to the function monitoring request, so that functions to be monitored in multiple function monitoring requests can be managed in the monitoring list. Furthermore, in the one-time operation process, the acquisition of the operation data of a plurality of functions to be monitored can be realized based on the monitoring list, and the efficiency of data processing is improved.
Further, on the basis of any one of the foregoing embodiments, the intercepting, during the running process of the target application, the plurality of functions to be monitored in the monitoring list includes:
and intercepting a plurality of functions meeting preset interception conditions in the running process of the target application.
And acquiring a plurality of functions to be monitored in the monitoring list from the plurality of functions.
In this embodiment, there may be multiple functions running during the running of the target application. Therefore, in the running process of the target application, a plurality of functions meeting preset interception conditions can be intercepted. The preset interception condition may be all functions related to intercepting a certain service, or the preset interception condition may be a function corresponding to a preset function module, etc. The interception conditions can be set according to different requirements in practical application, and the method is not limited in this disclosure.
After intercepting a plurality of functions meeting a preset interception condition, a plurality of functions to be monitored in a monitoring list may be screened among the plurality of functions.
According to the data processing method provided by the embodiment, the interception condition is preset, so that the acquisition of the function operation data can be suitable for various application scenes.
Fig. 3 is a flow chart of a data processing method according to another embodiment of the present disclosure, where on the basis of any one of the foregoing embodiments, the monitoring list further includes a remaining monitoring number corresponding to each function to be monitored. As shown in fig. 3, the determining at least one objective function in the monitoring list that meets a preset monitoring condition includes:
step 301, updating the remaining monitoring times corresponding to each function to be monitored in the monitoring list according to the function monitoring request, and obtaining updated remaining monitoring times.
Step 302, detecting whether the updated remaining monitoring times are larger than a preset time threshold.
And 303, if yes, determining the function to be monitored as the target function.
Step 304, if not, deleting the function to be monitored in the monitoring list.
In this embodiment, since a part of functions to be monitored may need to acquire operation data in a plurality of operation processes, the monitoring list may further include the remaining monitoring times corresponding to each function to be monitored. For example, the number of monitoring times corresponding to the objective function a may be 100 times, and each time the operation data is obtained, the number of monitoring times may be updated, and the updated remaining monitoring times may be recorded in the monitoring list.
Correspondingly, after the function monitoring request is acquired, updating the residual monitoring times corresponding to the functions to be monitored according to the function monitoring request for each function to be monitored in the monitoring list, and acquiring the updated residual monitoring times. Detecting whether the updated remaining monitoring times are greater than a preset time threshold. If yes, the function to be monitored is characterized in that the acquisition of the running data is not completed, so that the function to be monitored can be used as an objective function, and the running data corresponding to the objective function is acquired. Otherwise, the function to be monitored is characterized to finish the acquisition of the operation data, and at this time, the function to be monitored can be deleted from the monitoring list.
Alternatively, the function monitoring request and the receiving and sending of the operation data may be performed by a front-end and back-end communication protocol. After the request platform sends a primary function monitoring request, the data processing device can reply the request for a plurality of times, namely, the data processing device can push operation data to the request platform for a plurality of times, and further, the acquisition of the operation data of one objective function for a plurality of times can be realized.
For example, the predetermined number of times threshold may be 0 times. After the function monitoring request is acquired, for each function to be monitored in the monitoring list, the calculation result of the remaining monitoring number-1 corresponding to the function to be monitored may be calculated. And detecting whether the calculation result is greater than or equal to 0, and if so, taking the function to be monitored as an objective function to acquire operation data. Otherwise, if the calculation result is smaller than 0, the function to be monitored may be deleted from the monitoring list.
According to the data processing method, the residual monitoring times corresponding to each function to be monitored are recorded in the monitoring list, so that the acquisition of operation data of a single objective function for multiple times can be accurately realized based on the monitoring list, and a foundation is provided for subsequent data analysis operation.
Fig. 4 is a flow chart of a data processing method according to another embodiment of the disclosure, where, on the basis of any of the foregoing embodiments, as shown in fig. 4, before step 203, the method further includes:
step 401, determining, for each objective function, a pre-logic function and a post-logic function corresponding to the objective function.
Step 402, obtaining operation data corresponding to the objective function by operating a pre-logic function and a post-logic function corresponding to the objective function.
In this embodiment, the obtaining of the operation data corresponding to the objective function may be implemented by using a tangent plane technique. Specifically, for each objective function that satisfies the preset monitoring condition, a pre-logic function and a post-logic function corresponding to the objective function may be determined. The pre-logic function and the post-logic function may be logic functions written by a technician according to actual requirements. The pre-logic function and the post-logic function define operation data and execution logic obtained when the pre-logic function and the post-logic function operate. The execution logic may specifically be that the pre-logic function is executed before the execution of the objective function, and the post-logic function is executed after the execution of the objective function.
After determining the pre-logic function and the post-logic function corresponding to each objective function, the operation data of the objective function can be obtained by respectively operating the pre-logic function and the post-logic function.
Further, on the basis of any one of the above embodiments, the pre-logic function and the post-logic function include an execution sequence; step 402 includes:
and respectively operating the preposed logic function and the postposed logic function corresponding to the objective function according to the execution sequence to obtain the operation data corresponding to the objective function.
In this embodiment, the pre-logic function and the post-logic function further include an execution sequence. For each objective function, the pre-logic and the post-logic can be operated respectively in a preset operation sequence, so that the operation data of the objective function can be obtained. Alternatively, the pre-logic may be executed first, and then the post-logic may be executed, so as to obtain the running data of the objective function.
According to the data processing method provided by the embodiment, the front logic function and the rear logic function corresponding to the target function are determined; the operation data corresponding to the objective function is obtained through the preposed logic function and the postposed logic function corresponding to the operation objective function, so that the operation data based on the tangent plane technology can be obtained, the code is not required to be modified, and the operation data of a plurality of objective functions can be quickly obtained.
Further, based on any of the above embodiments, step 402 includes:
respectively running a pre-logic function and a post-logic function corresponding to the target function, and determining a start execution time corresponding to the pre-logic function and an end execution time corresponding to the post-logic function;
and determining the execution time consumption corresponding to the objective function according to the difference between the starting execution time and the ending execution time, and determining the execution time consumption as the operation data corresponding to the objective function.
In this embodiment, the pre-logic function and the post-logic function may be configured to obtain the execution time consumption corresponding to the objective function. For subsequent analysis of the performance of the objective function based on the execution time consumption.
Alternatively, a pre-logic function and a post-logic function corresponding to the objective function may be respectively run, and a start execution time corresponding to the pre-logic function and an end execution time corresponding to the post-logic function may be determined. And calculating a difference value between the starting execution time and the ending execution time, determining the difference value as the execution time consumption corresponding to the objective function, and determining the execution time consumption as the operation data corresponding to the objective function. The execution time of the objective function is acquired, so that the performance, the running state and the like of the objective function can be analyzed and optimized according to the execution time of the objective function in one or more execution processes.
Further, on the basis of any one of the above embodiments, the pre-logic function and the post-logic function include an identifier of the operation data to be monitored; step 402 includes:
and in the operation process of the front logic function and the rear logic function, acquiring the operation data to be monitored corresponding to the objective function according to the identification of the operation data to be monitored, and determining the operation data to be monitored as the operation data corresponding to the objective function.
In this embodiment, since the number of operation data generated by the objective function in the operation process is large, in order to achieve accurate acquisition of the operation data, in the process of editing the front logic function and the rear logic function, the identifiers of the operation data to be monitored may be added to the front logic function and the rear logic function according to actual requirements. In addition, the pre-logic function and the post-logic function may also be configured with an acquiring manner of the operation data of the identifier of each operation data.
Therefore, after determining the pre-logic function and the post-logic function corresponding to the objective function, the pre-logic function and the post-logic function may be respectively operated, and in the operation process of the pre-logic function and the post-logic function, the operation data to be monitored corresponding to the objective function may be obtained according to the identification of the operation data to be monitored and the obtaining manner of the operation data of the identification of each operation data, and the operation data to be monitored is determined as the operation data corresponding to the objective function.
Further, on the basis of any one of the above embodiments, the pre-logic function and the post-logic function include editing content corresponding to operation data; step 402 includes:
respectively operating a prepositive logic function and a postsitive logic function corresponding to the objective function to obtain to-be-processed operation data corresponding to the objective function;
and editing the operation data to be processed according to the editing content corresponding to the operation data to obtain the operation data corresponding to the objective function.
In this embodiment, the pre-logic function and the post-logic function may be further configured to edit the operation data to be processed corresponding to the collected objective function. So that the finally obtained operation data is more fit to the actual demands of users.
Therefore, the pre-logic function and the post-logic function corresponding to the objective function can be operated respectively, and the to-be-processed operation data corresponding to the objective function can be obtained. And editing operation is carried out on the operation data to be processed according to the editing content included in the pre-logic function and the post-logic function, so that the operation data corresponding to the objective function is obtained.
According to the data processing method provided by the embodiment, different data acquisition conditions are defined in the front logic function and the rear logic function, so that operation data which is more fit with actual requirements can be obtained. On the basis of improving the efficiency of acquiring the operation data, the accuracy of acquiring the operation data can be further improved.
Fig. 5 is a flow chart of a data processing method according to another embodiment of the disclosure, where, on the basis of any of the foregoing embodiments, as shown in fig. 5, after step 203, the method further includes:
step 501, generating a monitoring report according to operation data corresponding to each objective function, wherein the monitoring report at least comprises one or more of calling frequency, average calling time consumption, abnormal times, abnormal duty ratio, parameter entering analysis and parameter exiting analysis corresponding to each objective function.
Step 502, the monitoring report is sent to the request platform for display.
In this embodiment, after the operation data corresponding to each objective function is obtained, in order to facilitate the subsequent analysis operation, a monitoring report may be generated according to the operation data corresponding to each objective function, where the monitoring report includes at least one or more of calling frequency, average calling time consumption, abnormal times, abnormal occupation ratio, parameter entering analysis, parameter exiting analysis corresponding to each objective function.
The monitoring report is sent to the requesting platform for presentation. The technician can thus check the cause of the application execution result not consistent with the expected result based on the monitoring report displayed on the requesting platform. And further, operations such as modification and optimization of the application program can be performed based on the analysis result.
Further, on the basis of any one of the above embodiments, after step 203, the method further includes:
and storing the operation data corresponding to each objective function to a preset storage path.
In this embodiment, in order to facilitate subsequent duplication and invocation, after the operation data corresponding to each objective function is obtained, the operation data corresponding to each objective function may be stored in a preset storage path.
According to the data processing method provided by the embodiment, the monitoring report is generated according to the operation data corresponding to each objective function and is sent to the request platform for display, so that the analysis of reasons for inconsistent execution results of the application program and expected results can be conveniently carried out by technicians.
Fig. 6 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present disclosure, as shown in fig. 6, where the apparatus includes: an acquisition module 61, a determination module 62, and a processing module 63. The obtaining module 61 is configured to obtain a function monitoring request corresponding to a target application sent by the request platform, where the function monitoring request includes at least one function to be monitored corresponding to the target application. And the determining module 62 is configured to determine, according to the function monitoring request, at least one objective function that satisfies a preset monitoring condition in the at least one function to be monitored during the running process of the target application. And the processing module 63 is configured to obtain operation data corresponding to each objective function, and send the operation data to the request platform.
Further, on the basis of any one of the above embodiments, the determining module is configured to: and adding the at least one function to be monitored to a preset monitoring list according to the function monitoring request, wherein the monitoring list comprises a plurality of pre-stored functions to be monitored. And in the running process of the target application, intercepting a plurality of functions to be monitored in the monitoring list, and determining at least one target function meeting preset monitoring conditions in the monitoring list.
Further, on the basis of any one of the above embodiments, the monitoring list further includes a remaining monitoring number corresponding to each function to be monitored. The determining module is used for: and updating the residual monitoring times corresponding to the functions to be monitored according to the function monitoring request aiming at each function to be monitored in the monitoring list to obtain updated residual monitoring times. And detecting whether the updated residual monitoring times are larger than a preset times threshold value. If yes, the function to be monitored is determined to be the target function.
Further, on the basis of any one of the foregoing embodiments, the determining module is further configured to: and aiming at each function to be monitored in the monitoring list, if the updated residual monitoring times are smaller than a preset times threshold, deleting the function to be monitored in the monitoring list.
Further, on the basis of any one of the foregoing embodiments, the processing module is configured to: for each objective function, determining a front logic function and a rear logic function corresponding to the objective function; and operating the preposed logic function and the postposed logic function corresponding to the objective function to obtain the operation data corresponding to the objective function.
Further, on the basis of any one of the above embodiments, the pre-logic function and the post-logic function include an execution sequence; the processing module is used for: and respectively operating the preposed logic function and the postposed logic function corresponding to the objective function according to the execution sequence to obtain the operation data corresponding to the objective function.
Further, on the basis of any one of the foregoing embodiments, the processing module is configured to: respectively running a pre-logic function and a post-logic function corresponding to the target function, and determining a start execution time corresponding to the pre-logic function and an end execution time corresponding to the post-logic function; and determining the execution time consumption corresponding to the objective function according to the difference between the starting execution time and the ending execution time, and determining the execution time consumption as the operation data corresponding to the objective function.
Further, on the basis of any one of the above embodiments, the pre-logic function and the post-logic function include an identifier of the operation data to be monitored; the processing module is used for: and in the operation process of the front logic function and the rear logic function, acquiring the operation data to be monitored corresponding to the objective function according to the identification of the operation data to be monitored, and determining the operation data to be monitored as the operation data corresponding to the objective function.
Further, on the basis of any one of the above embodiments, the pre-logic function and the post-logic function include editing content corresponding to operation data; the processing module is used for: respectively operating a prepositive logic function and a postsitive logic function corresponding to the objective function to obtain to-be-processed operation data corresponding to the objective function; and editing the operation data to be processed according to the editing content corresponding to the operation data to obtain the operation data corresponding to the objective function.
Further, on the basis of any one of the foregoing embodiments, the apparatus further includes: the generation module is used for generating a monitoring report according to the operation data corresponding to each objective function, wherein the monitoring report at least comprises one or more of calling frequency, average calling time consumption, abnormal times, abnormal duty ratio, parameter entering analysis and parameter exiting analysis corresponding to each objective function. And the sending module is used for sending the monitoring report to a request platform for display.
Further, on the basis of any one of the foregoing embodiments, the apparatus further includes: and the storage module is used for storing the operation data corresponding to each objective function to a preset storage path.
Still another embodiment of the present disclosure provides an electronic device, including: a processor, and a memory communicatively coupled to the processor.
The memory stores computer-executable instructions.
The processor executes computer-executable instructions stored in the memory to implement the method as described in any of the embodiments above.
Yet another embodiment of the present disclosure further provides a computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, are configured to implement a method as in any of the above embodiments.
Yet another embodiment of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements a method as described in any of the above embodiments.
Fig. 7 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure, where the device may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
The apparatus 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the apparatus 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 702 can include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operations at the apparatus 700. Examples of such data include instructions for any application or method operating on the apparatus 700, contact data, phonebook data, messages, pictures, videos, and the like. The memory 704 may be implemented by any type or combination of volatile or nonvolatile memory devices 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 memory, flash memory, magnetic or optical disk.
The power supply component 706 provides power to the various components of the device 700. The power components 706 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 700.
The multimedia component 708 includes a screen between the device 700 and the user that provides an output interface. 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 touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front-facing camera and/or a rear-facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the apparatus 700 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a Microphone (MIC) configured to receive external audio signals when the device 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 704 or transmitted via the communication component 716. In some embodiments, the audio component 710 further includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of the apparatus 700. For example, the sensor assembly 714 may detect an on/off state of the device 700, a relative positioning of the components, such as a display and keypad of the device 700, a change in position of the device 700 or a component of the device 700, the presence or absence of user contact with the device 700, an orientation or acceleration/deceleration of the device 700, and a change in temperature of the device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate communication between the apparatus 700 and other devices in a wired or wireless manner. The apparatus 700 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 716 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short range communications. 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.
In an exemplary embodiment, the apparatus 700 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 elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 704, including instructions executable by processor 720 of apparatus 700 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, which when executed by a processor of a requesting platform, causes the requesting platform to perform the split screen processing method of the requesting platform.
It will be clear to those skilled in the art that, for convenience and brevity of description, reference may be made to the corresponding process in the foregoing method embodiment for the specific working process of the apparatus described above, which is not described herein again.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present disclosure, and not for limiting the same; although the present disclosure has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present disclosure.

Claims (12)

1. A method of data processing, comprising:
acquiring a function monitoring request corresponding to a target application sent by a request platform, wherein the function monitoring request comprises at least one function to be monitored corresponding to the target application;
in the running process of the target application, determining at least one target function meeting preset monitoring conditions in the at least one function to be monitored according to the function monitoring request;
and acquiring operation data corresponding to each objective function, and sending the operation data to the request platform.
2. The method according to claim 1, wherein determining at least one objective function satisfying a preset monitoring condition in the at least one function information to be monitored according to the function monitoring request during the running of the target application includes:
adding the at least one function to be monitored to a preset monitoring list according to the function monitoring request, wherein the monitoring list comprises a plurality of pre-stored functions to be monitored;
and in the running process of the target application, intercepting a plurality of functions to be monitored in the monitoring list, and determining at least one target function meeting preset monitoring conditions in the monitoring list.
3. The method according to claim 2, wherein the monitoring list further includes a remaining monitoring number corresponding to each function to be monitored;
the determining at least one objective function meeting a preset monitoring condition in the monitoring list comprises the following steps:
updating the residual monitoring times corresponding to each function to be monitored in the monitoring list according to the function monitoring request to obtain updated residual monitoring times;
detecting whether the updated residual monitoring times are larger than a preset times threshold value or not;
if yes, the function to be monitored is determined to be the target function.
4. A method according to claim 3, wherein after said detecting whether said updated number of remaining monitors is greater than a preset number of times threshold, the method further comprises:
and aiming at each function to be monitored in the monitoring list, if the updated residual monitoring times are smaller than a preset times threshold, deleting the function to be monitored in the monitoring list.
5. The method according to any one of claims 1-4, wherein the obtaining operation data corresponding to each objective function includes:
For each objective function, determining a front logic function and a rear logic function corresponding to the objective function;
and operating the preposed logic function and the postposed logic function corresponding to the objective function to obtain the operation data corresponding to the objective function.
6. The method according to claim 5, wherein the obtaining the operation data corresponding to the objective function by operating a pre-logic function and a post-logic function corresponding to the objective function includes:
respectively running a pre-logic function and a post-logic function corresponding to the target function, and determining a start execution time corresponding to the pre-logic function and an end execution time corresponding to the post-logic function;
and determining the execution time consumption corresponding to the objective function according to the difference between the starting execution time and the ending execution time, and determining the execution time consumption as the operation data corresponding to the objective function.
7. The method of claim 5, wherein the pre-logic function and the post-logic function include an identification of operational data to be monitored;
the obtaining operation data corresponding to the objective function by operating the pre-logic function and the post-logic function corresponding to the objective function includes:
And in the operation process of the front logic function and the rear logic function, acquiring the operation data to be monitored corresponding to the objective function according to the identification of the operation data to be monitored, and determining the operation data to be monitored as the operation data corresponding to the objective function.
8. The method according to claim 5, wherein the pre-logic function and the post-logic function include editing content corresponding to operation data;
the obtaining operation data corresponding to the objective function by operating the pre-logic function and the post-logic function corresponding to the objective function includes:
respectively operating a prepositive logic function and a postsitive logic function corresponding to the objective function to obtain to-be-processed operation data corresponding to the objective function;
and editing the operation data to be processed according to the editing content corresponding to the operation data to obtain the operation data corresponding to the objective function.
9. The method according to any one of claims 1-4, wherein after the obtaining the operation data corresponding to each objective function and sending the operation data to the request platform, further includes:
Generating a monitoring report according to the operation data corresponding to each objective function, wherein the monitoring report at least comprises one or more of calling frequency, average calling time consumption, abnormal times, abnormal duty ratio, parameter entering analysis and parameter exiting analysis corresponding to each objective function;
and sending the monitoring report to the request platform for display.
10. A data processing apparatus, comprising:
the system comprises an acquisition module, a request platform and a function monitoring module, wherein the acquisition module is used for acquiring a function monitoring request corresponding to a target application sent by the request platform, and the function monitoring request comprises at least one function to be monitored corresponding to the target application;
the determining module is used for determining at least one objective function meeting preset monitoring conditions in the at least one function to be monitored according to the function monitoring request in the running process of the objective application;
and the processing module is used for acquiring the operation data corresponding to each objective function and sending the operation data to the request platform.
11. An electronic device, comprising: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
Wherein the processor is configured to invoke program instructions in the memory to perform the method of any of claims 1-10.
12. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1-10.
CN202211281600.0A 2022-10-19 2022-10-19 Data processing method, device, equipment, storage medium and product Pending CN116127525A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211281600.0A CN116127525A (en) 2022-10-19 2022-10-19 Data processing method, device, equipment, storage medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211281600.0A CN116127525A (en) 2022-10-19 2022-10-19 Data processing method, device, equipment, storage medium and product

Publications (1)

Publication Number Publication Date
CN116127525A true CN116127525A (en) 2023-05-16

Family

ID=86296243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211281600.0A Pending CN116127525A (en) 2022-10-19 2022-10-19 Data processing method, device, equipment, storage medium and product

Country Status (1)

Country Link
CN (1) CN116127525A (en)

Similar Documents

Publication Publication Date Title
CN112003893B (en) Resource downloading method and device
CN111274131A (en) Interface testing method and device, electronic equipment and storage medium
CN109814942B (en) Parameter processing method and device
CN115185717B (en) Interface calling method and device, electronic equipment and storage medium
CN111338971B (en) Application testing method and device, electronic equipment and storage medium
CN107562500B (en) Debugging device, method and equipment
CN111580824B (en) Program optimization method, device and storage medium
CN110764847B (en) User information processing method, device, electronic equipment and storage medium
CN112256563A (en) Android application stability testing method and device, electronic equipment and storage medium
CN112333233B (en) Event information reporting method and device, electronic equipment and storage medium
CN106354532B (en) Application account information processing method and device
CN116127525A (en) Data processing method, device, equipment, storage medium and product
CN111597106A (en) Point burying management method and device
CN111984532A (en) Applet-based exception handling method and device
CN107257384B (en) Service state monitoring method and device
CN113760946A (en) Pre-verification processing method, device, equipment and medium applied to data source migration
CN111611156B (en) Function test method, function test device, and computer-readable storage medium
CN113965476B (en) Inspection method, device and equipment based on application
CN109947640B (en) Regression test-based core function coverage statistical method and device
CN112363917B (en) Application program debugging exception processing method and device, electronic equipment and medium
CN111143184B (en) Data processing method, device and system
CN114238728B (en) Vehicle data processing method, device and equipment
CN113806227B (en) Information processing method, device, electronic equipment and storage medium
CN111104297B (en) Multi-process data dotting method and device, electronic equipment and storage medium
CN108173846B (en) Login method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination