CN117971596A - App performance monitoring and optimizing method - Google Patents

App performance monitoring and optimizing method Download PDF

Info

Publication number
CN117971596A
CN117971596A CN202410073516.2A CN202410073516A CN117971596A CN 117971596 A CN117971596 A CN 117971596A CN 202410073516 A CN202410073516 A CN 202410073516A CN 117971596 A CN117971596 A CN 117971596A
Authority
CN
China
Prior art keywords
app
data
monitoring
performance
optimization
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
CN202410073516.2A
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.)
Beijing Bailong Mayun Technology Co ltd
Original Assignee
Beijing Bailong Mayun Technology 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 Beijing Bailong Mayun Technology Co ltd filed Critical Beijing Bailong Mayun Technology Co ltd
Priority to CN202410073516.2A priority Critical patent/CN117971596A/en
Publication of CN117971596A publication Critical patent/CN117971596A/en
Pending legal-status Critical Current

Links

Classifications

    • 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

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention belongs to the technical field of application program design, and particularly relates to an App performance monitoring and optimizing method, monitoring data collection: the method comprises the steps that a monitoring agent module is embedded in an App, key performance indexes and data are collected, the monitoring agent module interacts with different components and systems of the App, data are collected in real time, and the data are transmitted to a back-end server for storage and analysis; back-end data analysis: the collected monitoring data are processed and analyzed through a back-end data analysis engine, the data analysis engine identifies performance bottlenecks, abnormal behaviors and potential risks, and detailed performance analysis results of developers are provided through the form of report generation and visual charts; the invention can collect key performance indexes and data such as response time, CPU utilization rate and memory use condition in real time by embedding the monitoring agent module in the App and interacting with different components and systems. Thus, the performance of the App in different aspects can be comprehensively known, and potential performance problems can be found.

Description

App performance monitoring and optimizing method
Technical Field
The invention belongs to the technical field of application program design, and particularly relates to an App performance monitoring and optimizing method.
Background
In the current mobile application market, user expectations for application performance are continually increasing, and performance problems can lead to crashes, jams, delayed responses, etc. of the application, thereby affecting user experience and user retention of the application.
Therefore, monitoring and optimizing the performance of an application becomes critical.
Some monitoring and optimization tools currently exist, but they are often limited to specific aspects or specific platforms.
Thus, a method of App performance monitoring and optimization is provided.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an App performance monitoring and optimizing method, so as to solve or alleviate the technical problems existing in the prior art, and at least provide a beneficial choice for the technical problems.
In order to achieve the above purpose, the present invention provides the following technical solutions:
A method of App performance monitoring and optimization, the method comprising the steps of:
s1, monitoring data collection: the method comprises the steps that a monitoring agent module is embedded in an App, key performance indexes and data are collected, the monitoring agent module interacts with different components and systems of the App, data are collected in real time, and the data are transmitted to a back-end server for storage and analysis;
S2, back-end data analysis: the collected monitoring data are processed and analyzed through a back-end data analysis engine, the data analysis engine identifies performance bottlenecks, abnormal behaviors and potential risks, and detailed performance analysis results of developers are provided through the form of report generation and visual charts;
s3, optimizing suggestions and strategies: based on the data analysis result, the scheme generates a targeted optimization proposal and strategy, wherein the proposal and strategy can be provided in the form of a developer kit (SDK), and the developer is directly applied to the development and debugging process of the App;
S4, real-time monitoring and feedback: the scheme provides a real-time monitoring and feedback mechanism, and a developer acquires performance data and alarms in real time in the development and testing stages.
As still further aspects of the invention: the key performance index and the data in the S1 comprise response time, CPU utilization rate and memory use condition.
As still further aspects of the invention: the optimization suggestions in S3 include code optimization, resource management, and network request optimization.
As still further aspects of the invention: the method further comprises the steps of:
performing function optimization on an App resource file, deleting invalid codes and useless resource files in the App resource file, and compressing local image resources;
step two, modifying the picture configured by the App background, and optimizing the use and recovery process of the picture;
Step three, ordering the starting tasks of the App, starting the tasks according to the ordering by utilizing the CPU multi-core, removing redundant codes in the starting process of the App, and processing after part of the starting tasks are postponed until the App is started;
step four, optimizing a page information acquisition mode in the App running process, monitoring the webpage loading condition in the App running process, and carrying out corresponding optimization;
optimizing the main layout loading result of the App, optimizing the storage of the App and optimizing the threads of the CPU;
Step six, receiving APP monitoring data of a mobile user side, wherein the APP monitoring data comprise technical indexes collected by probes injected into the monitored APP, and the technical indexes comprise response time, collapse rate, http error rate and network error rate;
step seven, establishing and storing a corresponding relation between the APP and the APP monitoring data;
And step eight, when an APP performance analysis request is received, displaying the analysis result of the monitored APP on an interface in a visual mode according to the corresponding relation between the APP and the APP monitoring data and the visual requirement carried in the APP performance analysis request.
As still further aspects of the invention: the APP performance analysis request comprises an APP scoring request, and when the APP performance analysis request is received, the analysis result of the monitored APP is displayed on an interface in a visual mode according to the corresponding relation between the APP and the APP monitoring data and the visual requirement carried in the APP performance analysis request, and the method comprises the following steps: calculating an average index value of the corresponding index in the selected time period by using an index value aggregation algorithm;
substituting the average index value into an index gradient table data structure, and counting the score corresponding to each index;
Displaying the score corresponding to each index on the interface in a visual mode;
Preferably, when receiving an APP performance analysis request, displaying an analysis result of the monitored APP on an interface in a visual form according to a correspondence between the APP and APP monitoring data and a visual requirement carried in the APP performance analysis request, and further including: according to the weight corresponding to each index, calculating the weighted score sum among the indexes to obtain the comprehensive score of the APP;
and displaying the comprehensive score of the APP on an interface in a visual mode.
As still further aspects of the invention: the receiving mobile user side application program APP monitoring data comprises the following steps: and periodically receiving the monitoring data of the application program APP of the mobile user.
As still further aspects of the invention: the method further comprises the steps of obtaining the exit IP information of the mobile user where the probe is located when receiving APP monitoring data;
Determining an IP section corresponding to the exit IP according to the exit IP information;
And determining the region where the user using the monitored page is located according to the IP section corresponding to the IP of the outlet and the corresponding relation between the IP section and region information, wherein the region information comprises country information, province information, city information and longitude and latitude information.
As still further aspects of the invention: the function optimization of the App resource file is specifically as follows: and acquiring long-term unused functions in the App resource file, and performing offline processing on codes corresponding to the long-term unused functions of the App resource file, wherein the long-term unused functions are judged by a predefined judgment standard for each function.
As still further aspects of the invention: the modification of the picture configured by the App background comprises the following steps: converting the picture formats of the local picture and the three-party picture of the App into webp format;
The process for optimizing the use and recycling of the pictures comprises the following steps: optimizing a picture loading frame and a recovery process, and optimizing a gif loading process.
As still further aspects of the invention: the storage of the optimizing App is specifically: and converting the storage of the App into mmkv file data format.
By adopting the technical scheme, the embodiment of the invention has the following advantages:
1. And (3) overall performance monitoring: by embedding the monitoring agent module in the App and interacting with different components and systems, key performance indicators and data such as response time, CPU utilization and memory usage can be collected in real time. Thus, the performance of the App in different aspects can be comprehensively known, and potential performance problems can be found.
2. And (3) accurate analysis: through the back-end data analysis engine, the scheme can accurately identify performance bottlenecks and abnormal behaviors, provide detailed performance analysis results for developers, and help the developers to quickly locate and solve problems.
3. And (3) personalized optimization: the proposal generates personalized optimization proposal and strategy according to the data analysis result, provides a developer with a targeted optimization proposal, and helps them improve the performance and efficiency of the application program.
4. Real-time monitoring and feedback: the scheme provides a real-time monitoring and feedback mechanism, so that a developer can timely acquire performance data and alarms, the performance problem can be responded and solved quickly, and the development efficiency and the application quality are improved.
5. And the user experience is improved: by monitoring and optimizing the performance of the App, the scheme can improve user experience, reduce problems of application program breakdown, jamming, delayed response and the like, and enhance user satisfaction and retention rate.
6. Resource file function optimization: by identifying and deleting invalid codes and useless resource files and compressing local chip resources, the volume of an App can be effectively reduced, and the loading speed and performance can be improved.
7. Picture format conversion and optimization: the picture format of the App is uniformly converted into webp format, and the picture loading frame and the recovery process are optimized, so that the storage space and network bandwidth occupied by the picture can be reduced, and the picture loading speed is improved.
8. Starting task optimization: by sequencing the starting tasks of the App and starting the tasks in sequence by utilizing the multi-core CPU, redundant codes are removed, and part of the starting tasks are delayed, the starting speed of the App can be increased, and the user experience is improved.
9. Data analysis engine: the back-end data analysis engine can process and analyze a large amount of monitoring data, and the technologies such as data mining, machine learning and the like are utilized to identify performance bottlenecks, abnormal behaviors and potential risks. By generating reports and visual charts, detailed performance analysis results of the developer are provided, so that the performance conditions of the App can be better understood and analyzed.
10. Optimization suggestions and strategies: based on the data analysis results, the scheme generates targeted optimization suggestions and strategies. These suggestions and policies can be provided in the form of developer kits (SDKs) that apply directly to the App development and debugging process. Through optimization suggestions in the aspects of code optimization, resource management, network request optimization and the like, developers are helped to improve the performance of the App, and user experience is improved.
11. Real-time monitoring and feedback: the scheme provides a real-time monitoring and feedback mechanism, and a developer can acquire performance data and alarms in real time in the development and testing stages. Thus, the performance problem can be quickly found and solved, and the problem is avoided from affecting the user experience and the normal operation of the App.
The foregoing summary is for the purpose of the specification only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments, and features described above, further aspects, embodiments, and features of the present invention will become apparent by reference to the drawings and the following detailed description.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are necessary for the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is one of the flowcharts of a method of App performance monitoring and optimization of the present invention.
FIG. 2 is a second flowchart of an App performance monitoring and optimization method of the present invention.
Detailed Description
Hereinafter, only certain exemplary embodiments are briefly described. As will be recognized by those of skill in the pertinent art, the described embodiments may be modified in various different ways without departing from the spirit or scope of the present invention. Accordingly, the drawings and description are to be regarded as illustrative in nature and not as restrictive.
It should be noted that the terms "first," "second," "symmetric," "array," and the like are used merely for distinguishing between description and location descriptions, and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of features indicated. Thus, a feature defining "first," "symmetry," or the like, may explicitly or implicitly include one or more such feature; also, where certain features are not limited in number by words such as "two," "three," etc., it should be noted that the feature likewise pertains to the explicit or implicit inclusion of one or more feature quantities.
As shown in fig. 1, the method for monitoring and optimizing the performance of an App of the present invention comprises the following steps:
S1, monitoring data collection: the method comprises the steps that a monitoring agent module is embedded in an App, key performance indexes and data are collected, the monitoring agent module interacts with different components and systems of the App, the data are collected in real time and are transmitted to a back-end server for storage and analysis, and the key performance indexes and the data comprise response time, CPU utilization rate and memory use condition;
S2, back-end data analysis: the collected monitoring data are processed and analyzed through a back-end data analysis engine, the data analysis engine identifies performance bottlenecks, abnormal behaviors and potential risks, and detailed performance analysis results of developers are provided through the form of report generation and visual charts;
S3, optimizing suggestions and strategies: based on the data analysis result, the scheme generates a targeted optimization proposal and strategy, wherein the proposal and strategy can be provided in the form of a developer kit (SDK), the developer is directly applied to the development and debugging process of the App, and the optimization proposal comprises code optimization, resource management and network request optimization;
S4, real-time monitoring and feedback: the scheme provides a real-time monitoring and feedback mechanism, and a developer acquires performance data and alarms in real time in the development and testing stages.
S1, monitoring data collection:
the monitoring agent module is embedded in the App, and various technical means such as code injection, AOP (section-oriented programming) and the like can be used to realize real-time collection of key performance indexes and data. The monitoring agent module may need to interact with different components and systems of the App, and characteristics and limitations of different mobile terminal platforms need to be considered, so as to ensure the comprehensiveness and accuracy of data acquisition. In addition, the transmission and storage of data also requires security and privacy protection.
S2, back-end data analysis:
In the back-end data analysis engine, the collected monitoring data is typically processed and analyzed using techniques such as data mining, machine learning, etc., to identify performance bottlenecks, abnormal behavior, and potential risks. This may involve techniques such as large data processing, real-time computing, etc. to address the analysis and processing requirements of large-scale data. In addition, the generation of reports and visualization charts may be accomplished by means of data visualization tools or libraries in order for developers to more intuitively understand the analysis results of the monitoring data.
S3, optimizing suggestions and strategies:
Generating targeted optimization suggestions and strategies based on the data analysis results may require deep analysis of performance bottlenecks and anomalies of the App, and propose targeted optimization measures. The optimization suggestions may relate to code optimization, resource management, network request optimization, etc., and need to be comprehensively considered in combination with specific App features and operating environments. These suggestions and policies may be provided in the form of a developer kit (SDK) so that the developer can directly apply to the App's development and debugging process.
S4, real-time monitoring and feedback:
The scheme provides a real-time monitoring and feedback mechanism, and may involve real-time data acquisition and analysis, and real-time alarm and notification of abnormal conditions. This may require consideration of the real-time transmission and processing of performance monitoring data, as well as real-time feedback mechanisms to the developer so that they can immediately acquire performance data and alarms during development and testing phases and can respond and adjust quickly.
By embedding the monitoring agent module in the App, the code injection or AOP technique can be used to implement real-time collection of key performance indicators and data.
The monitoring agent module needs to interact with different components and systems of the App to obtain key performance indexes such as response time, CPU utilization and memory usage.
In order to ensure the comprehensiveness and accuracy of data acquisition, the monitoring agent module may need to consider the characteristics and limitations of different mobile terminal platforms and adopt corresponding technical means.
The backend data analysis engine needs to process and analyze the collected monitoring data, and can identify performance bottlenecks, abnormal behaviors and potential risks by utilizing techniques such as data mining, machine learning and the like.
The data analysis engine may need to have the capability of large data processing and real-time computation to meet the analysis and processing requirements of large-scale data.
In order to provide a developer with a more intuitive understanding of the analysis results of the monitoring data, a data visualization tool or library may be used to generate reports and visualization charts.
Based on the data analysis results, the solution needs to generate targeted optimization suggestions and strategies to help the developer improve App performance.
Optimization suggestions and policies can be provided in the form of developer kits (SDKs), which can be directly applied to the App development and debugging process by the developer.
The optimization proposal may relate to the aspects of code optimization, resource management, network request optimization and the like, and needs to comprehensively consider the characteristics and the running environment of the App.
The solution needs to provide a real-time monitoring and feedback mechanism, and real-time alarm and notification of abnormal situations.
Real-time monitoring may require consideration of real-time transmission and processing of data, ensuring that developers can timely acquire performance data and alarms.
Providing a real-time feedback mechanism enables developers to respond and adjust quickly, for example, by displaying real-time performance indicators and alarm information through a mobile terminal application or Web interface.
As shown in fig. 2, the method for App performance monitoring and optimization of the present invention further includes the following steps:
performing function optimization on an App resource file, deleting invalid codes and useless resource files in the App resource file, and compressing local image resources;
step two, modifying the picture configured by the App background, and optimizing the use and recovery process of the picture;
Step three, ordering the starting tasks of the App, starting the tasks according to the ordering by utilizing the CPU multi-core, removing redundant codes in the starting process of the App, and processing after part of the starting tasks are postponed until the App is started;
step four, optimizing a page information acquisition mode in the App running process, monitoring the webpage loading condition in the App running process, and carrying out corresponding optimization;
optimizing the main layout loading result of the App, optimizing the storage of the App and optimizing the threads of the CPU;
Step six, receiving APP monitoring data of a mobile user side, wherein the APP monitoring data comprise technical indexes collected by probes injected into the monitored APP, and the technical indexes comprise response time, collapse rate, http error rate and network error rate;
step seven, establishing and storing a corresponding relation between the APP and the APP monitoring data;
And step eight, when an APP performance analysis request is received, displaying the analysis result of the monitored APP on an interface in a visual mode according to the corresponding relation between the APP and the APP monitoring data and the visual requirement carried in the APP performance analysis request.
The APP performance analysis request comprises an APP scoring request, and when the APP performance analysis request is received, the analysis result of the monitored APP is displayed on an interface in a visual mode according to the corresponding relation between the APP and the APP monitoring data and the visual requirement carried in the APP performance analysis request, and the method comprises the following steps: calculating an average index value of the corresponding index in the selected time period by using an index value aggregation algorithm;
substituting the average index value into an index gradient table data structure, and counting the score corresponding to each index;
Displaying the score corresponding to each index on the interface in a visual mode;
Preferably, when receiving an APP performance analysis request, displaying an analysis result of the monitored APP on an interface in a visual form according to a correspondence between the APP and APP monitoring data and a visual requirement carried in the APP performance analysis request, and further including: according to the weight corresponding to each index, calculating the weighted score sum among the indexes to obtain the comprehensive score of the APP;
and displaying the comprehensive score of the APP on an interface in a visual mode.
The receiving mobile user side application program APP monitoring data comprises the following steps: and periodically receiving the monitoring data of the application program APP of the mobile user.
The method further comprises the steps of obtaining the exit IP information of the mobile user where the probe is located when receiving APP monitoring data;
Determining an IP section corresponding to the exit IP according to the exit IP information;
And determining the region where the user using the monitored page is located according to the IP section corresponding to the IP of the outlet and the corresponding relation between the IP section and region information, wherein the region information comprises country information, province information, city information and longitude and latitude information.
The function optimization of the App resource file is specifically as follows: and acquiring long-term unused functions in the App resource file, and performing offline processing on codes corresponding to the long-term unused functions of the App resource file, wherein the long-term unused functions are judged by a predefined judgment standard for each function.
The modification of the picture configured by the App background comprises the following steps: converting the picture formats of the local picture and the three-party picture of the App into webp format;
The process for optimizing the use and recycling of the pictures comprises the following steps: optimizing a picture loading frame and a recovery process, and optimizing a gif loading process.
The storage of the optimizing App is specifically: and converting the storage of the App into mmkv file data format.
Optimizing a resource file: according to the method, the size of the App is reduced by deleting invalid codes and useless resource files and compressing local chip resources, so that the starting speed and the running efficiency are improved.
And (3) optimizing pictures: according to the method, the picture configured in the App background is transformed, the use and recovery process of the picture are optimized, the formats of the local picture and the three-party picture are converted into webp formats, and the loading process of gif is optimized, so that the memory occupation of the App can be reduced, and the picture loading speed can be improved.
Starting task optimization: according to the method, the starting tasks of the App are ordered, the CPU multi-core is utilized to start the tasks according to the ordering, redundant codes in the starting process of the App are removed, and part of the starting tasks are delayed until the App is started and then processed, so that the starting time is shortened, and the starting efficiency is improved.
Page information acquisition optimization: according to the method, the webpage loading condition in the App running process is monitored by optimizing the page information acquisition mode in the App running process, and corresponding optimization is carried out, so that the response speed and the user experience of the App can be improved.
And (3) main layout loading optimization: according to the method, the starting speed and the running efficiency of the App are improved by optimizing the main layout loading result of the App, optimizing the storage of the App and optimizing the threads of the CPU.
APP monitoring data: according to the method, the performance of the APP is monitored in real time by receiving monitoring data of the APP at the mobile user side, wherein the monitoring data comprise technical indexes such as response time, collapse rate, http error rate, network error rate and the like, which are acquired by probes injected into the monitored APP.
APP scoring: according to the method, an index value aggregation algorithm is used, the average index value of the corresponding index in the selected time period is calculated, the average index value is substituted into an index gradient table data structure, the score corresponding to each index is counted, and finally the score corresponding to each index is displayed on an interface in a visual mode. In addition, according to the weight corresponding to each index, the weighted score sum among the indexes is calculated to obtain the comprehensive score of the APP, and the comprehensive score of the APP is displayed on the interface in a visual mode.
Regional information collection: when APP monitoring data is received, the method obtains the exit IP information of the mobile user terminal where the probe is located, determines an IP section corresponding to the exit IP according to the exit IP information, and determines the region where the user using the monitored page is located according to the corresponding relation between the IP section and the region information, wherein the region includes country information, province information, city information and longitude and latitude information.
And (3) storage optimization: according to the method, the storage efficiency and the security of the App are improved by converting the storage of the App into mmkv file data format.
Optimizing a resource file: and identifying invalid codes and useless resource files by using a static analysis tool, deleting the invalid codes and the useless resource files, and simultaneously compressing local chip resources to reduce the volume of an application program and increase the loading speed.
And (3) picture processing transformation: and converting the picture format in the application program into webp format, so that the occupied space of the picture is reduced, and the loading speed is improved.
Starting task sequencing: and starting tasks according to the sequence by the multi-core CPU, removing redundant codes in the starting process, and delaying part of the starting tasks to accelerate the starting speed of the application.
Page information acquisition optimization: and optimizing the acquisition mode of the page information, monitoring the loading condition of the webpage and performing corresponding optimization so as to improve the response speed of the application in running.
Optimizing a main interface loading result: and the storage and CPU threads are optimized, and the loading speed and the overall performance of the main layout are improved.
Performance data monitoring and visual analysis: and receiving the mobile application program monitoring data, establishing and storing the corresponding relation between the data and the application program, performing visual analysis according to the request, and displaying the visual analysis on an interface, wherein the visual analysis comprises the use of an index value aggregation algorithm and comprehensive score calculation.
The method for monitoring and optimizing the App performance is mainly based on optimizing aspects such as App resource files, starting tasks, page information acquisition modes, main layout loading results and the like, meanwhile, receiving monitoring data of an application program APP of a mobile user terminal, corresponding the monitoring data to an App performance analysis request, storing the monitoring data, and finally displaying the analysis results on an interface in a visual mode. The method comprises the steps of carrying out function optimization on an App resource file, wherein the function optimization is to carry out offline processing on long-term unused functions through a judgment standard; the picture configured in the App background is transformed by converting the picture format into webp format, optimizing the picture loading frame and recovery process and optimizing the gif loading process; optimizing App storage converts the storage into mmkv file data format. The whole method aims at improving the performance and user experience of the App, reducing the indexes such as the collapse rate and the http error rate, and enabling the App to be more stable and smooth.
In the several embodiments provided in the present application, it should be understood that the disclosed terminal, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of elements is merely a logical functional division, and there may be additional divisions of actual implementation, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units. The foregoing is only the embodiments of the present application, and therefore, the patent scope of the application is not limited thereto, and all equivalent structures or equivalent processes using the descriptions of the present application and the accompanying drawings, or direct or indirect application in other related technical fields, are included in the scope of the application.

Claims (10)

1. A method for App performance monitoring and optimization, the method comprising the steps of:
s1, monitoring data collection: the method comprises the steps that a monitoring agent module is embedded in an App, key performance indexes and data are collected, the monitoring agent module interacts with different components and systems of the App, data are collected in real time, and the data are transmitted to a back-end server for storage and analysis;
S2, back-end data analysis: the collected monitoring data are processed and analyzed through a back-end data analysis engine, the data analysis engine identifies performance bottlenecks, abnormal behaviors and potential risks, and detailed performance analysis results of developers are provided through the form of report generation and visual charts;
s3, optimizing suggestions and strategies: based on the data analysis result, the scheme generates a targeted optimization proposal and strategy, wherein the proposal and strategy can be provided in the form of a developer kit (SDK), and the developer is directly applied to the development and debugging process of the App;
S4, real-time monitoring and feedback: the scheme provides a real-time monitoring and feedback mechanism, and a developer acquires performance data and alarms in real time in the development and testing stages.
2. An App performance monitoring and optimization method according to claim 1, characterized in that: the key performance index and the data in the S1 comprise response time, CPU utilization rate and memory use condition.
3. An App performance monitoring and optimization method according to claim 1, characterized in that: the optimization suggestions in S3 include code optimization, resource management, and network request optimization.
4. The method for App performance monitoring and optimization of claim 1 further comprising the steps of:
performing function optimization on an App resource file, deleting invalid codes and useless resource files in the App resource file, and compressing local image resources;
step two, modifying the picture configured by the App background, and optimizing the use and recovery process of the picture;
Step three, ordering the starting tasks of the App, starting the tasks according to the ordering by utilizing the CPU multi-core, removing redundant codes in the starting process of the App, and processing after part of the starting tasks are postponed until the App is started;
step four, optimizing a page information acquisition mode in the App running process, monitoring the webpage loading condition in the App running process, and carrying out corresponding optimization;
optimizing the main layout loading result of the App, optimizing the storage of the App and optimizing the threads of the CPU;
Step six, receiving APP monitoring data of a mobile user side, wherein the APP monitoring data comprise technical indexes collected by probes injected into the monitored APP, and the technical indexes comprise response time, collapse rate, http error rate and network error rate;
step seven, establishing and storing a corresponding relation between the APP and the APP monitoring data;
And step eight, when an APP performance analysis request is received, displaying the analysis result of the monitored APP on an interface in a visual mode according to the corresponding relation between the APP and the APP monitoring data and the visual requirement carried in the APP performance analysis request.
5. The method for App performance monitoring and optimization of claim 4 wherein: the APP performance analysis request comprises an APP scoring request, and when the APP performance analysis request is received, the analysis result of the monitored APP is displayed on an interface in a visual mode according to the corresponding relation between the APP and the APP monitoring data and the visual requirement carried in the APP performance analysis request, and the method comprises the following steps: calculating an average index value of the corresponding index in the selected time period by using an index value aggregation algorithm;
substituting the average index value into an index gradient table data structure, and counting the score corresponding to each index;
Displaying the score corresponding to each index on the interface in a visual mode;
Preferably, when receiving an APP performance analysis request, displaying an analysis result of the monitored APP on an interface in a visual form according to a correspondence between the APP and APP monitoring data and a visual requirement carried in the APP performance analysis request, and further including: according to the weight corresponding to each index, calculating the weighted score sum among the indexes to obtain the comprehensive score of the APP;
and displaying the comprehensive score of the APP on an interface in a visual mode.
6. The method for App performance monitoring and optimization of claim 4 wherein: the receiving mobile user side application program APP monitoring data comprises the following steps: and periodically receiving the monitoring data of the application program APP of the mobile user.
7. The method for App performance monitoring and optimization according to claim 4, further comprising obtaining the exit IP information of the mobile ue where the probe is located when receiving App monitoring data;
Determining an IP section corresponding to the exit IP according to the exit IP information;
And determining the region where the user using the monitored page is located according to the IP section corresponding to the IP of the outlet and the corresponding relation between the IP section and region information, wherein the region information comprises country information, province information, city information and longitude and latitude information.
8. The method for App performance monitoring and optimization of claim 4, wherein the functional optimization of App resource files is specifically: and acquiring long-term unused functions in the App resource file, and performing offline processing on codes corresponding to the long-term unused functions of the App resource file, wherein the long-term unused functions are judged by a predefined judgment standard for each function.
9. The method for App performance monitoring and optimization of claim 4 wherein modifying the pictures of the App background configuration comprises: converting the picture formats of the local picture and the three-party picture of the App into webp format;
The process for optimizing the use and recycling of the pictures comprises the following steps: optimizing a picture loading frame and a recovery process, and optimizing a gif loading process.
10. The method for App performance monitoring and optimization of claim 4 wherein the storage of the optimizing App is specifically: and converting the storage of the App into mmkv file data format.
CN202410073516.2A 2024-01-18 2024-01-18 App performance monitoring and optimizing method Pending CN117971596A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410073516.2A CN117971596A (en) 2024-01-18 2024-01-18 App performance monitoring and optimizing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410073516.2A CN117971596A (en) 2024-01-18 2024-01-18 App performance monitoring and optimizing method

Publications (1)

Publication Number Publication Date
CN117971596A true CN117971596A (en) 2024-05-03

Family

ID=90850890

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410073516.2A Pending CN117971596A (en) 2024-01-18 2024-01-18 App performance monitoring and optimizing method

Country Status (1)

Country Link
CN (1) CN117971596A (en)

Similar Documents

Publication Publication Date Title
US10904112B2 (en) Automatic capture of detailed analysis information based on remote server analysis
US8402468B2 (en) Capacity planning based on resource utilization as a function of workload
CN107370806B (en) HTTP status code monitoring method, device, storage medium and electronic equipment
US20110138365A1 (en) Component statistics for application profiling
US8095514B2 (en) Treemap visualizations of database time
CN112241360B (en) Test case generation method, device, equipment and storage medium
CN110750458A (en) Big data platform testing method and device, readable storage medium and electronic equipment
CN111614483A (en) Link monitoring method and device, storage medium and computer equipment
US8140919B2 (en) Display of data used for system performance analysis
KR20070080313A (en) Method and system for analyzing performance of providing services to client terminal
CN113760641A (en) Service monitoring method, device, computer system and computer readable storage medium
CN111400189A (en) Code coverage rate monitoring method and device, electronic equipment and storage medium
WO2022088803A1 (en) System information analysis method and apparatus based on cloud environment, electronic device, and medium
CN110311806B (en) Mobile application program interface response delay diagnosis method, system and terminal
CN110928750B (en) Data processing method, device and equipment
CN117971596A (en) App performance monitoring and optimizing method
CN113360182B (en) Method and apparatus for system performance diagnostics
CN111741046B (en) Data reporting method, data acquisition method, device, equipment and medium
CN114637685A (en) Performance test method, device, equipment and medium of application program in bank system
CN114443480A (en) Test method, test system, readable medium and electronic device
CN112818204A (en) Service processing method, device, equipment and storage medium
CN112463343A (en) Business process restarting method and device, storage medium and electronic equipment
CN113360419B (en) Application data processing method, device and equipment
CN108108369B (en) Method and device for processing calling error of common interface library
CN111444102A (en) Method and system for testing off-line computing engine

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