CN113795030A - Network performance optimization method and device, mobile terminal and storage medium - Google Patents

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

Info

Publication number
CN113795030A
CN113795030A CN202111083683.8A CN202111083683A CN113795030A CN 113795030 A CN113795030 A CN 113795030A CN 202111083683 A CN202111083683 A CN 202111083683A CN 113795030 A CN113795030 A CN 113795030A
Authority
CN
China
Prior art keywords
screen
mobile terminal
value
network
memory
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
CN202111083683.8A
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.)
Guangzhou Dianjinshi Information Technology Co ltd
Original Assignee
Guangzhou Dianjinshi Information 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 Guangzhou Dianjinshi Information Technology Co ltd filed Critical Guangzhou Dianjinshi Information Technology Co ltd
Priority to CN202111083683.8A priority Critical patent/CN113795030A/en
Publication of CN113795030A publication Critical patent/CN113795030A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0264Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
    • 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
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

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.

Description

Network performance optimization method and device, mobile terminal and storage medium
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.

Claims (10)

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.
CN202111083683.8A 2021-09-13 2021-09-13 Network performance optimization method and device, mobile terminal and storage medium Pending CN113795030A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111083683.8A CN113795030A (en) 2021-09-13 2021-09-13 Network performance optimization method and device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111083683.8A CN113795030A (en) 2021-09-13 2021-09-13 Network performance optimization method and device, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
CN113795030A true CN113795030A (en) 2021-12-14

Family

ID=79183748

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111083683.8A Pending CN113795030A (en) 2021-09-13 2021-09-13 Network performance optimization method and device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113795030A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103885803A (en) * 2014-03-17 2014-06-25 可牛网络技术(北京)有限公司 Method and device for managing procedures in mobile terminal and mobile terminal
CN106201490A (en) * 2016-06-30 2016-12-07 天脉聚源(北京)传媒科技有限公司 The method and device that a kind of optimization application is run
CN108055693A (en) * 2017-10-26 2018-05-18 努比亚技术有限公司 A kind of terminal applies control method, terminal and computer readable storage medium
CN109462699A (en) * 2018-12-26 2019-03-12 惠州Tcl移动通信有限公司 The control method of the Doze mode of mobile terminal
CN109960395A (en) * 2018-10-15 2019-07-02 华为技术有限公司 Resource regulating method and computer equipment
CN115129140A (en) * 2022-02-25 2022-09-30 东莞市步步高教育软件有限公司 Standby power consumption optimization method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103885803A (en) * 2014-03-17 2014-06-25 可牛网络技术(北京)有限公司 Method and device for managing procedures in mobile terminal and mobile terminal
CN106201490A (en) * 2016-06-30 2016-12-07 天脉聚源(北京)传媒科技有限公司 The method and device that a kind of optimization application is run
CN108055693A (en) * 2017-10-26 2018-05-18 努比亚技术有限公司 A kind of terminal applies control method, terminal and computer readable storage medium
CN109960395A (en) * 2018-10-15 2019-07-02 华为技术有限公司 Resource regulating method and computer equipment
CN109462699A (en) * 2018-12-26 2019-03-12 惠州Tcl移动通信有限公司 The control method of the Doze mode of mobile terminal
CN115129140A (en) * 2022-02-25 2022-09-30 东莞市步步高教育软件有限公司 Standby power consumption optimization method and system

Similar Documents

Publication Publication Date Title
US11403197B2 (en) Method and device for controlling application, storage medium, and electronic device
CN110300067B (en) Queue adjusting method, device, equipment and computer readable storage medium
CN103096385B (en) A kind of method of flow control, device and terminal
CN105760043A (en) Notification processing method and device
CN111065114B (en) Energy-saving management method, energy-saving management device and storage medium
CN110032266B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
CN109298960A (en) Application crashes processing method, device, computer installation and storage medium
CN112672440A (en) Instruction execution method, system, network device and storage medium
CN104580710A (en) Automatic power saving method based on learning operation habit of user
CN111885618B (en) Network performance optimization method and device
CN114172563A (en) Communication satellite dormancy control method, heaven-earth integrated communication network and storage medium
CN107943570B (en) Application management method and device, storage medium and electronic equipment
CN113795030A (en) Network performance optimization method and device, mobile terminal and storage medium
WO2018076698A1 (en) Terminal delay display method and apparatus, and terminal and computer storage medium
CN109660995B (en) AP intelligent energy-saving control method and device in WiFi system based on machine learning algorithm
CN112291086A (en) Memory capacity expansion method, system and device of switch
US11733996B2 (en) Intelligent software patch management
CN109976885B (en) Event processing method and device based on multitask operating system and storage medium
CN114466365A (en) Spectrum resource acquisition method, spectrum resource acquisition device and computer readable storage medium
CN111077976B (en) Method for realizing idle state low power consumption mode of multi-core processor and processor
CN109379449B (en) Data connection method, device, terminal and storage medium
CN110045812B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
US20220300058A1 (en) Terminal power saving method and apparatus
CN113778214A (en) Power saving optimization method and device, mobile terminal and storage medium
CN111343711A (en) Method, device, equipment and medium for reducing power consumption of terminal

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