Network performance optimization method and device, mobile terminal and storage medium

文档序号:1966258 发布日期:2021-12-14 浏览:25次 中文

阅读说明:本技术 一种网络性能优化方法、装置、移动终端和存储介质 (Network performance optimization method and device, mobile terminal and storage medium ) 是由 王玲 陈本斌 于 2021-09-13 设计创作,主要内容包括:本发明涉及一种网络性能优化方法、装置、移动终端和存储介质。所述方法包括监测移动终端的状态;如果所述移动终端处于充电且息屏的状态,则采集应用的处理器占用率、网络流量消耗、内存占用率;在所述显示屏由息屏状态转换为亮屏状态时,计算应用于息屏过程的处理器占用率值、网络流量消耗值、内存占用率值,并按照预设权重,计算三者加权之和;如果应用的所述加权之和超过预设阀值,或应用的所述加权之和最大,则将应用确定为影响移动终端网络性能的应用;生成优化策略,将所述优化策略提供给用户。由用户决定所采用的优化策略,从而降低用户需要运行目标应用时,其它应用的后台网络操作处理对网络性能的影响,使目标应用能够正常访问网络。(The invention relates to a network performance optimization method, a network performance optimization device, a mobile terminal and a storage medium. The method comprises the steps of monitoring the state of the mobile terminal; if the mobile terminal is in a charging and screen-saving state, acquiring the processor occupancy rate, network traffic consumption and memory occupancy rate of the application; when the display screen is converted from the screen-off state to the screen-on state, calculating a processor occupancy rate value, a network flow consumption value and a memory occupancy rate value applied to the screen-off process, and calculating the weighted sum of the processor occupancy rate value, the network flow consumption value and the memory occupancy rate value according to preset weight; determining the application as an application affecting the network performance of the mobile terminal if the weighted sum of the applications exceeds a preset threshold or the weighted sum of the applications is maximum; and generating an optimization strategy and providing the optimization strategy for a user. The optimization strategy adopted is determined by the user, so that the influence of background network operation processing of other applications on the network performance when the user needs to run the target application is reduced, and the target application can normally access the network.)

1. A method for optimizing network performance, the method comprising:

monitoring the state of the mobile terminal;

if the mobile terminal is in a charging and screen-saving state, acquiring the processor occupancy rate, network traffic consumption and memory occupancy rate of the application;

when the display screen is converted from the screen-off state to the screen-on state, calculating a processor occupancy rate value, a network traffic consumption value and a memory occupancy rate value applied to the screen-off process, and calculating the weighted sum of the processor occupancy rate value, the network traffic consumption value and the memory occupancy rate value according to preset weight; determining the application as an application affecting the network performance of the mobile terminal if the weighted sum of the applications exceeds a preset threshold or the weighted sum of the applications is maximum;

and generating an optimization strategy and providing the optimization strategy for a user.

2. The method of claim 1, wherein: the method is triggered by the JobSchedule to execute.

3. The method according to claim 1 or 2, wherein the calculating processor occupancy value, network traffic consumption value and memory occupancy value applied to the screen-turning process comprises:

generating a processor occupancy list according to the processor occupancy rate high-low sorting applied to the screen-saving process, and based on the position applied to the processor occupancy list, and the processor occupancy rate value;

generating a network traffic consumption list according to the network traffic consumption high-low sequencing applied to the screen-turning process, and based on the position applied to the network traffic consumption list, and calculating a network traffic consumption value;

and generating a memory occupation list according to the memory occupation rate high-low sequence applied to the screen-turning process, and based on the position applied to the memory occupation list and the memory occupation rate value.

4. The method of claim 1 or 2, wherein generating the optimization strategy and providing the optimization strategy to the user comprises:

and generating prompt information, wherein the prompt information is used for prompting a user to close the application influencing the network performance of the mobile terminal.

5. An apparatus for network performance optimization, the apparatus comprising:

the monitoring module is used for monitoring the state of the mobile terminal;

the data acquisition module is used for acquiring the processor occupancy rate, the network flow consumption and the memory occupancy rate of the application if the mobile terminal is in a charging and screen-saving state;

the application determining module is used for calculating a processor occupancy rate value, a network flow consumption value and a memory occupancy rate value applied to the screen-off process when the display screen is converted from the screen-off state to the screen-on state, and calculating the weighted sum of the processor occupancy rate value, the network flow consumption value and the memory occupancy rate value according to preset weight; determining the application as an application affecting the network performance of the mobile terminal if the weighted sum of the applications exceeds a preset threshold or the weighted sum of the applications is maximum;

and the optimization strategy generation module is used for generating an optimization strategy and providing the optimization strategy for a user.

6. The apparatus of claim 5, further comprising:

and the JobScheduler module is used for executing task scheduling.

7. The apparatus according to claim 5 or 6, wherein the means for influencing mobile terminal network performance application determination comprises:

the processor occupancy factor bin value sub-module is used for generating a processor occupancy list according to the processor occupancy factor high-low sorting applied to the screen information process, and bin the processor occupancy factor value based on the position applied to the processor occupancy list;

the network traffic consumption bin value sub-module is used for generating a network traffic consumption list according to the network traffic consumption level sequence applied to the screen updating process, and bin the network traffic consumption value based on the position applied to the network traffic consumption list;

the memory occupancy factor bin value sub-module is used for generating a memory occupancy list according to the memory occupancy factor high-low sorting applied to the screen information process, and bin the memory occupancy factor value based on the position applied to the memory occupancy list.

8. The apparatus of claim 5 or 6, wherein the optimization strategy generation module comprises:

and the prompt message generation submodule is used for generating prompt messages to prompt the user to close the application influencing the network performance of the mobile terminal.

9. A mobile terminal, characterized in that the mobile terminal comprises:

one or more processors;

a memory for storing one or more programs;

when executed by the one or more processors, cause the one or more processors to implement the network performance optimization method of any one of claims 1-4.

10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the network performance optimization method according to any one of claims 1 to 4.

Technical Field

The embodiment of the invention relates to the technical field of mobile terminal performance optimization, in particular to a network performance optimization method and device, a mobile terminal and a storage medium.

Background

The Doze mechanism introduced by the Android 6.0 is used for saving the power consumption of the system, protecting the battery and prolonging the service time of the battery. After a display screen of a mobile terminal, such as a mobile phone, is extinguished for a period of time, the Android system will automatically enter the Doze mode. However, background network operation processing of many applications is performed in a large batch in a screen-off and charging state, which may cause a problem of large network congestion. In this state, each application preempts the network, and if the user needs to run the target application at this time, the user may face the trouble of low network speed.

How to efficiently and intelligently monitor the network state and optimize in time is a pain point of the user's ever-present demand.

Disclosure of Invention

In view of the above, the present invention has been made to provide a network performance optimization method, apparatus, mobile terminal and storage medium that overcome or at least partially solve the above-mentioned problems.

In a first aspect, an embodiment of the present invention provides a method for optimizing network performance.

The network performance optimization method comprises the following steps:

monitoring the state of the mobile terminal;

if the mobile terminal is in a charging and screen-saving state, acquiring the processor occupancy rate, network traffic consumption and memory occupancy rate of the application;

when the display screen is converted from the screen-off state to the screen-on state, calculating a processor occupancy rate value, a network traffic consumption value and a memory occupancy rate value applied to the screen-off process, and calculating the weighted sum of the processor occupancy rate value, the network traffic consumption value and the memory occupancy rate value according to preset weight; determining the application as an application affecting the network performance of the mobile terminal if the weighted sum of the applications exceeds a preset threshold or the weighted sum of the applications is maximum;

and generating an optimization strategy and providing the optimization strategy for a user.

Optionally, the method is triggered by a JobScheduler to execute.

Optionally, the calculating a processor occupancy value, a network traffic consumption value, and a memory occupancy value applied to the screen saver process includes:

generating a processor occupancy list according to the processor occupancy rate high-low sorting applied to the screen-saving process, and based on the position applied to the processor occupancy list, and the processor occupancy rate value;

generating a network traffic consumption list according to the network traffic consumption high-low sequencing applied to the screen-turning process, and based on the position applied to the network traffic consumption list, and calculating a network traffic consumption value;

and generating a memory occupation list according to the memory occupation rate high-low sequence applied to the screen-turning process, and based on the position applied to the memory occupation list and the memory occupation rate value.

Optionally, the generating an optimization policy and providing the optimization policy to a user includes:

and generating prompt information, wherein the prompt information is used for prompting a user to close the application influencing the network performance of the mobile terminal.

In a second aspect, an embodiment of the present invention provides a network performance optimization apparatus.

The network performance optimization device comprises:

the monitoring module is used for monitoring the state of the mobile terminal;

the data acquisition module is used for acquiring the processor occupancy rate, the network flow consumption and the memory occupancy rate of the application if the mobile terminal is in a charging and screen-saving state;

the application determining module is used for calculating a processor occupancy rate value, a network flow consumption value and a memory occupancy rate value applied to the screen-off process when the display screen is converted from the screen-off state to the screen-on state, and calculating the weighted sum of the processor occupancy rate value, the network flow consumption value and the memory occupancy rate value according to preset weight; determining the application as an application affecting the network performance of the mobile terminal if the weighted sum of the applications exceeds a preset threshold or the weighted sum of the applications is maximum;

and the optimization strategy generation module is used for generating an optimization strategy and providing the optimization strategy for a user.

Optionally, the apparatus further comprises:

and the JobScheduler module is used for executing task scheduling.

Optionally, the module for determining the application affecting the network performance of the mobile terminal includes:

the processor occupancy factor bin value sub-module is used for generating a processor occupancy list according to the processor occupancy factor high-low sorting applied to the screen information process, and bin the processor occupancy factor value based on the position applied to the processor occupancy list;

the network traffic consumption bin value sub-module is used for generating a network traffic consumption list according to the network traffic consumption level sequence applied to the screen updating process, and bin the network traffic consumption value based on the position applied to the network traffic consumption list;

the memory occupancy factor bin value sub-module is used for generating a memory occupancy list according to the memory occupancy factor high-low sorting applied to the screen information process, and bin the memory occupancy factor value based on the position applied to the memory occupancy list.

Optionally, the optimization policy generation module includes:

and the prompt message generation submodule is used for generating prompt messages to prompt the user to close the application influencing the network performance of the mobile terminal.

In a third aspect, an embodiment of the present invention provides a mobile terminal.

The mobile terminal includes:

one or more processors;

a memory for storing one or more programs;

when executed by the one or more processors, cause the one or more processors to implement the network performance optimization method of any one of the first aspects.

In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium.

The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the network performance optimization method according to any one of the first aspects.

In the present embodiment, the state of the mobile terminal is monitored; if the mobile terminal is in a charging and screen-saving state, acquiring the processor occupancy rate, network traffic consumption and memory occupancy rate of the application; when the display screen is converted from the screen-off state to the screen-on state, calculating a processor occupancy rate value, a network traffic consumption value and a memory occupancy rate value applied to the screen-off process, and calculating the weighted sum of the processor occupancy rate value, the network traffic consumption value and the memory occupancy rate value according to preset weight; determining the application as an application affecting the network performance of the mobile terminal if the weighted sum of the applications exceeds a preset threshold or the weighted sum of the applications is maximum; and generating an optimization strategy and providing the optimization strategy for a user. The method comprises the steps of judging applications which affect the network performance of the mobile terminal to be larger when the mobile terminal is in a charged state and is in a screen-saving state through three performance dimensions of processor occupancy rate, network flow consumption and memory occupancy rate, providing an optimization strategy to a user when the mobile terminal is in a screen-on state, and determining the adopted optimization strategy by the user, such as closing the applications, so that the influence of background network operation processing of other applications on the network performance is reduced when the user needs to run a target application, and the target application can normally access the network.

Drawings

Fig. 1 is a flowchart of a network performance optimization method according to an embodiment of the present invention;

fig. 2 is a schematic structural diagram of a network performance optimization apparatus according to a second embodiment of the present invention;

fig. 3 is a schematic structural diagram of a mobile terminal according to a third embodiment of the present invention.

Detailed Description

The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.

Example one

Fig. 1 is a flowchart of a network performance optimization method according to an embodiment of the present invention, where the method may be executed by a network performance optimization apparatus, and the network performance optimization apparatus may be implemented by software and/or hardware, and may be configured in a mobile terminal, for example, a mobile phone, a tablet computer, and the like, or configured in a computer device, for example, a server, a personal computer, and the like, and specifically includes the following steps:

step 101, monitoring the state of the mobile terminal.

The Doze mechanism introduced by the Android 6.0 is used for saving the power consumption of the system, protecting the battery and prolonging the service time of the battery. After a display screen of a mobile terminal, such as a mobile phone, is extinguished for a period of time, the Android system will automatically enter the Doze mode. However, background network operation processing of many applications is performed in a large batch in a screen-off and charging state, which may cause a problem of large network congestion. In this state, each application preempts the network, and if the user needs to run the target application at this time, the user may face the trouble of low network speed. Therefore, the state of the mobile terminal is monitored, and the network performance of the mobile terminal is optimized before the user needs to run the target application, so that the target application can normally access the network.

An android (android) system may provide a system service for solving background tasks, which may be a JobScheduler. JobScheduler is mainly used for triggering the execution of a task when a certain condition is met at a certain time in the future, and then a JobService subclass can be created, and the onstartJob () method of the JobService subclass can be rewritten to realize the function.

Therefore, the JobScheduler can be selected as a core trigger of the monitoring logic, that is, the network performance optimization method can be selected to be executed by the JobScheduler trigger. The JobScheduler specifically includes the following excellent characteristics:

A. screening multiple conditions: the intelligent screening can trigger the designated logic when the mobile phone is in a charging state, a standby state (namely, screen-off state) and an unlocking screen state (the display screen is in a screen-on state).

B. High authority: many applications cannot automatically run after being restarted, and the problem can be solved by using a JobSchedule.

C. Network detection: a trigger may be specified when connecting to WiFi or cellular networks.

D. The polling mechanism comprises: may be performed at specified intervals or for specified periods of time.

And 102, if the mobile terminal is in a charging and screen-turning state, acquiring the processor occupancy rate, the network flow consumption and the memory occupancy rate of the application.

And when the mobile terminal is in a charging and screen-saving state, namely the conditions that the JobSchedule triggers to execute the task are met, executing the corresponding task, including acquiring the processor occupancy rate, the network flow consumption and the memory occupancy rate of the application.

The network traffic includes one or both of cellular network traffic and WiFi traffic.

Cellular mobile networks include 2G, 3G, 4G and 5G networks which are commonly used at present, and cellular mobile technology is used in public mobile communication systems at present. The WiFi technology belongs to the lan technology in the communication industry, and it belongs to the wlan technology. Almost all mobile terminals currently support either or both cellular mobile networks, WiFi or both.

Generally, when a mobile terminal communicates through WiFi, the cellular network is disconnected, and when WiFi is disconnected or there is no local area network or hot spot available nearby, the mobile terminal communicates through the cellular network, and in this case, the network traffic consumption is the sum of the cellular network traffic consumption and the WiFi traffic consumption.

The application is continuously operated at high power in the background, the heat productivity of the processor is increased, the mobile terminal is heated and scalded, and when the temperature of the processor reaches a preset threshold value, the processor is forced to reduce the frequency to limit the performance and the power consumption of the processor, so that the temperature is reduced, however, the operation speed of the application is reduced.

If the application memory occupancy rate is too high, the CPU processing data cannot be buffered, and the operation process of the mobile terminal is slow or unsmooth.

Therefore, in this embodiment, three performance dimensions of processor occupancy, network traffic consumption, and memory occupancy of the application are collected, and the performance dimensions are analyzed to finally determine the application affecting the network performance of the mobile terminal.

And 103, calculating a processor occupancy rate value, a network flow consumption value and a memory occupancy rate value applied to the screen-off process when the display screen is converted from the screen-off state to the screen-on state.

After the mobile terminal is in the bright screen state, the user can perform corresponding operation to run the target application, so that the time dimension of comparison is used when the mobile terminal is in the screen resting state and the screen bright state.

In one embodiment, the calculating a processor occupancy value, a network traffic consumption value, and a memory occupancy value applied to a screen saver process includes:

and a substep 1031, generating a processor occupancy list according to the high-low sorting of the processor occupancy applied to the screen saving process, and based on the position applied to the processor occupancy list and the processor occupancy value.

A substep 1032 of generating a network traffic consumption list according to the network traffic consumption high-low ordering applied to the screen-turning process, and based on the position applied to the network traffic consumption list, and inputting a network traffic consumption value;

substep 1033, generating a memory occupancy list according to the memory occupancy rate ranking applied to the screen refreshing process, and based on the position applied to the memory occupancy list and the memory occupancy rate value.

For example, N applications are run during the screen trap process, the N applications are sorted according to the fact that the processor occupancy rate of the screen trap process is higher than that in the processor occupancy list, wherein the processor occupancy rate is the highest application, and the processor occupancy rate value is N; an application with a second highest processor occupancy rate, and a processor occupancy rate value of N-1; … …, respectively; an application with a lowest processor occupancy, and a processor occupancy value of 1.

The N applications are sorted according to the fact that the network traffic consumption is lower than that in a network traffic consumption list in the screen-refreshing process, wherein the network traffic consumption is the highest, and the network traffic consumption value is N; the application that the network traffic consumption is the second highest, and the network traffic consumption value is N-1; … …, respectively; and the application with the lowest network traffic consumption value is 1.

The N applications are sorted according to the fact that the memory occupancy rate is lower than that in a memory occupancy list in the screen refreshing process, wherein the memory occupancy rate is the highest application, and the memory occupancy rate value is N; the application with the second highest memory occupancy rate is used, and the memory occupancy rate value is N-1; … …, respectively; and an application with the lowest memory occupancy value, and the memory occupancy value is 1.

It should be noted that, in the above illustrated embodiment, the foregoing values related to the processor occupancy value, the network traffic consumption value, and the memory occupancy value are merely an exemplary description, and do not limit the present specification. In practical applications, other values (scores) may be further included for the processor occupancy value, the network traffic consumption value, and the memory occupancy value.

Step 103 further includes calculating a weighted sum of the processor occupancy value, the network traffic consumption value, and the memory occupancy value of the application according to a preset weight; if the weighted sum of the applications exceeds a preset threshold, the applications are determined to be applications that affect the performance of the mobile terminal network.

For example, the processor occupancy value has a weight of w1, such as 2, the network traffic consumption value has a weight of w2, such as 6, and the memory occupancy value has a weight of w3, such as 2, the network performance optimization apparatus may calculate the weighted sum of the application processor occupancy value, the network traffic consumption value, and the memory occupancy value according to a preset weight, such as the weighted sum of a certain application is the processor occupancy value w1+ the network traffic consumption value w2, and the memory occupancy value w 3; further, if said weighted sum of a certain application is calculated to exceed a preset threshold, the application may be determined as an application affecting the network performance of the mobile terminal.

It should be noted that, in the above illustrated embodiment, the specific implementation manner of calculating the weighted sum of the application processor occupancy value, the network traffic consumption value, and the memory occupancy value is only an exemplary description, and does not limit the present specification.

In one embodiment, an application is determined to be an application that affects the performance of the mobile terminal network if the sum of said weights of the applications is maximal.

For example, if the weighted sum of the application X is the largest among N applications running in the screen-off process, i.e., greater than the weighted sum of the other N-1 applications, the application X is determined as the application affecting the network performance of the mobile terminal.

And 104, generating an optimization strategy and providing the optimization strategy for a user.

After determining the applications affecting the network performance of the mobile terminal, generating an optimization strategy and providing the optimization strategy to the user. The user can process the application running in the screen turning process according to the optimization strategy, such as closing the application influencing the network performance of the mobile terminal, or freezing the application influencing the network performance of the mobile terminal, and the like.

In one embodiment, the generating an optimization strategy and providing the optimization strategy to a user includes:

and generating prompt information, wherein the prompt information is used for prompting a user to close the application influencing the network performance of the mobile terminal.

For example, the user is reminded to close the specified application in a pop-up window notification mode, that is, the application affecting the network performance of the mobile terminal is closed, so that invalid resource waste is avoided.

In the present embodiment, the state of the mobile terminal is monitored; if the mobile terminal is in a charging and screen-saving state, acquiring the processor occupancy rate, network traffic consumption and memory occupancy rate of the application; when the display screen is converted from the screen-off state to the screen-on state, calculating a processor occupancy rate value, a network traffic consumption value and a memory occupancy rate value applied to the screen-off process, and calculating the weighted sum of the processor occupancy rate value, the network traffic consumption value and the memory occupancy rate value according to preset weight; determining the application as an application affecting the network performance of the mobile terminal if the weighted sum of the applications exceeds a preset threshold or the weighted sum of the applications is maximum; and generating an optimization strategy and providing the optimization strategy for a user. The method comprises the steps of judging applications which affect the network performance of the mobile terminal to be larger when the mobile terminal is in a charged state and is in a screen-saving state through three performance dimensions of processor occupancy rate, network flow consumption and memory occupancy rate, providing an optimization strategy to a user when the mobile terminal is in a screen-on state, and determining the adopted optimization strategy by the user, such as closing the applications, so that the influence of background network operation processing of other applications on the network performance is reduced when the user needs to run a target application, and the target application can normally access the network.

It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.

Example two

Fig. 2 is a schematic structural diagram of a network performance optimization apparatus according to a second embodiment of the present invention, where the network performance optimization apparatus may specifically include the following modules:

a monitoring module 201, configured to monitor a state of the mobile terminal;

the data acquisition module 202 is configured to acquire a processor occupancy rate, a network traffic consumption, and a memory occupancy rate of an application if the mobile terminal is in a state of charging and turning off a screen;

the application determining module 203 for influencing the network performance of the mobile terminal is configured to calculate a processor occupancy rate value, a network traffic consumption value and a memory occupancy rate value applied to a screen collapse process when the display screen is converted from a screen collapse state to a screen collapse state, and calculate a weighted sum of the processor occupancy rate value, the network traffic consumption value and the memory occupancy rate value according to a preset weight; determining the application as an application affecting the network performance of the mobile terminal if the weighted sum of the applications exceeds a preset threshold or the weighted sum of the applications is maximum;

and the optimization strategy generation module 204 is used for generating an optimization strategy and providing the optimization strategy for a user.

In one embodiment, the network performance optimizing device further includes:

and the JobScheduler module is used for executing task scheduling.

In one embodiment, the application determining module 203 for influencing network performance of the mobile terminal comprises:

the processor occupancy factor bin value sub-module is used for generating a processor occupancy list according to the processor occupancy factor high-low sorting applied to the screen information process, and bin the processor occupancy factor value based on the position applied to the processor occupancy list;

the network traffic consumption bin value sub-module is used for generating a network traffic consumption list according to the network traffic consumption level sequence applied to the screen updating process, and bin the network traffic consumption value based on the position applied to the network traffic consumption list;

the memory occupancy factor bin value sub-module is used for generating a memory occupancy list according to the memory occupancy factor high-low sorting applied to the screen information process, and bin the memory occupancy factor value based on the position applied to the memory occupancy list.

In one embodiment, the optimization strategy generation module 204 includes:

and the prompt message generation submodule is used for generating prompt messages to prompt the user to close the application influencing the network performance of the mobile terminal.

The network performance optimization device provided by the embodiment of the invention can execute the network performance optimization method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.

EXAMPLE III

Fig. 3 is a schematic structural diagram of a mobile terminal according to a third embodiment of the present invention, which shows a block diagram of an exemplary mobile terminal suitable for implementing the embodiments of the present invention. The mobile terminal shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention. As shown in fig. 3, the mobile terminal includes a processor 31, a memory 32, an input device 33, and an output device 34; the number of the processors 31 in the mobile terminal may be one or more, one processor 31 is taken as an example in fig. 3, the processor 31, the memory 32, the input device 33 and the output device 34 in the mobile terminal may be connected by a bus or in other manners, and the connection by the bus is taken as an example in fig. 3.

The memory 32 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the network performance optimization method in the embodiment of the present invention. The processor 31 executes various functional applications and data processing of the mobile terminal by running software programs, instructions and modules stored in the memory 32, that is, implements the network performance optimization method described above.

The memory 32 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the mobile terminal, and the like. Further, the memory 32 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 32 may further include memory located remotely from the processor 31, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.

The input device 33 may be used to generate key signal inputs and the like related to user settings and function control of the mobile terminal. The output device 34 includes a display screen and the like, and can be used for displaying corresponding feedback results and the like to the user.

Example four

A fourth embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements a network performance optimization method, where the method includes:

monitoring the state of the mobile terminal;

if the mobile terminal is in a charging and screen-saving state, acquiring the processor occupancy rate, network traffic consumption and memory occupancy rate of the application;

when the display screen is converted from the screen-off state to the screen-on state, calculating a processor occupancy rate value, a network traffic consumption value and a memory occupancy rate value applied to the screen-off process, and calculating the weighted sum of the application processor occupancy rate value, the network traffic consumption value and the memory occupancy rate value according to preset weight; determining the application as an application affecting the network performance of the mobile terminal if the weighted sum of the applications exceeds a preset threshold or the weighted sum of the applications is maximum;

and generating an optimization strategy and providing the optimization strategy for a user.

The storage medium may be any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the computer system in which the program is executed, or may be located in a different second computer system connected to the computer system through a network (such as the internet). The second computer system may provide the program instructions to the computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.

Of course, the computer program of the storage medium including the computer program provided in the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the network performance optimization method provided in any embodiment of the present invention, and may achieve the same technical effects, and is not described herein again to avoid repetition.

From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes instructions for enabling a mobile terminal (which may be a mobile phone, a tablet computer, or an intelligent wearable device) to execute the methods according to the embodiments of the present invention.

It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种网络节点异常检测方法、装置及网络设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!