CN107807852A - Application program capacity control method and equipment - Google Patents
Application program capacity control method and equipment Download PDFInfo
- Publication number
- CN107807852A CN107807852A CN201710941133.2A CN201710941133A CN107807852A CN 107807852 A CN107807852 A CN 107807852A CN 201710941133 A CN201710941133 A CN 201710941133A CN 107807852 A CN107807852 A CN 107807852A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- operating parameter
- cpu configuration
- configuration strategies
- cpu
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 65
- 230000009183 running Effects 0.000 claims abstract description 43
- 230000008569 process Effects 0.000 claims description 22
- 238000004590 computer program Methods 0.000 claims description 15
- 238000013507 mapping Methods 0.000 claims description 12
- 238000004891 communication Methods 0.000 claims description 11
- 238000003860 storage Methods 0.000 claims description 11
- 238000009826 distribution Methods 0.000 description 29
- 230000006870 function Effects 0.000 description 9
- 238000012545 processing Methods 0.000 description 7
- 230000007812 deficiency Effects 0.000 description 6
- 238000011156 evaluation Methods 0.000 description 5
- 230000006399 behavior Effects 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000005611 electricity Effects 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 241000208340 Araliaceae Species 0.000 description 2
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 2
- 235000003140 Panax quinquefolius Nutrition 0.000 description 2
- 230000009471 action Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 235000008434 ginseng Nutrition 0.000 description 2
- 238000010801 machine learning Methods 0.000 description 2
- 238000013468 resource allocation Methods 0.000 description 2
- 238000012216 screening Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013497 data interchange Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007717 exclusion Effects 0.000 description 1
- 235000013305 food Nutrition 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000004549 pulsed laser deposition Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/5012—Processor sets
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- Stored Programmes (AREA)
- Telephonic Communication Services (AREA)
Abstract
The embodiment of the present application discloses a kind of application program capacity control method and equipment.Method includes:Obtain the operating parameter of the user detected during running of mobile terminal destination application;The CPU configuration strategies of the mobile terminal are determined according to the operating parameter;It is the default internal operation scene configuration computing resource according to the CPU configuration strategies.The embodiment of the present application is advantageous to improve the degree of accuracy and flexibility of running of mobile terminal destination application configuration computing resource.
Description
Technical field
The application is related to technical field of mobile terminals, and in particular to application program capacity control method and equipment.
Background technology
With the fast development of smart mobile phone correlation technique, increasing application is installed in user mobile phone, is such as read
Read class application, pay class application, game class application, the application of music class etc., the clothing, food, lodging and transportion -- basic necessities of life of people are inseparable with mobile phone.
The content of the invention
The embodiment of the present application provides application program capacity control method and equipment, can improve running of mobile terminal target
Application program configures the degree of accuracy and flexibility of computing resource.
In a first aspect, the embodiment of the present application provides a kind of application program capacity control method, including:
Obtain the operating parameter of the user detected during running of mobile terminal destination application;
The CPU configuration strategies of the mobile terminal are determined according to the operating parameter;
It is that the destination application configures computing resource according to the CPU configuration strategies.
Second aspect, the embodiment of the present application provide a kind of application program capacity control device, including acquiring unit, determination list
Member and dispensing unit, wherein,
The acquiring unit, for obtaining the operation of the user detected during running of mobile terminal destination application
Parameter;
The determining unit, for determining the CPU configuration strategies of the mobile terminal according to the operating system parameter;
The dispensing unit, for being that the destination application configures computing resource according to the CPU configuration strategies.
The third aspect, the embodiment of the present application provide a kind of mobile terminal, including processor, memory, communication interface and
One or more programs, wherein, one or more of programs are stored in the memory, and are configured by described
Manage device to perform, described program includes being used for the instruction for performing the step in the embodiment of the present application first aspect either method.
Fourth aspect, the embodiment of the present application provide a kind of computer-readable recording medium, wherein, it is described computer-readable
Storage medium stores the computer program for electronic data interchange, wherein, the computer program causes computer to perform such as
Part or all of step described in the embodiment of the present application first aspect either method, the computer include mobile terminal.
5th aspect, the embodiment of the present application provide a kind of computer program product, wherein, the computer program product
Non-transient computer-readable recording medium including storing computer program, the computer program are operable to make calculating
Machine is performed such as the part or all of step described in the embodiment of the present application first aspect either method.The computer program product
Can be a software installation bag, the computer includes mobile terminal.
As can be seen that in the embodiment of the present application, mobile terminal is examined during obtaining local terminal operational objective application program first
Measure the operating parameter of user;Secondly, the CPU configuration strategies of the mobile terminal are determined according to the operating parameter;Finally, press
It is the default internal operation scene configuration computing resource according to the CPU configuration strategies.Because mobile terminal can be answered according to target
Flexible resource distribution is carried out with the operating parameter of the user detected in program operation process, can both avoid low operating frequency
Configure excess resource and cause resource distribution redundancy, high operating frequency can be avoided to configure very few resource and cause resource distribution again
Deficiency, be advantageous to improve the degree of accuracy and flexibility of running of mobile terminal destination application configuration computing resource.
Brief description of the drawings
The accompanying drawing involved by the embodiment of the present application will be briefly described below.
Figure 1A is a kind of schematic diagram of the program running space of smart mobile phone;
Figure 1B is a kind of system architecture diagram of Android system;
Fig. 2 is a kind of schematic flow sheet for application program capacity control method that the embodiment of the present application provides;
Fig. 3 is a kind of schematic flow sheet of application program capacity control method disclosed in the embodiment of the present application;
Fig. 4 is a kind of schematic flow sheet of application program capacity control method disclosed in the embodiment of the present application;
Fig. 5 is a kind of structural representation of mobile terminal disclosed in the embodiment of the present application;
Fig. 6 is a kind of functional unit composition block diagram of mobile terminal disclosed in the embodiment of the present application;
Fig. 7 is a kind of structural representation of smart mobile phone disclosed in the embodiment of the present application.
Embodiment
In order that those skilled in the art more fully understand application scheme, below in conjunction with the embodiment of the present application
Accompanying drawing, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is only
Some embodiments of the present application, rather than whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belong to the scope of the application protection.
Term " first ", " second " in the description and claims of this application and the accompanying drawing etc. are to be used to distinguish
Different objects, rather than for describing particular order.In addition, term " comprising " and " having " and their any deformations, it is intended that
It is to cover non-exclusive include.Such as process, method, system, product or the equipment for containing series of steps or unit do not have
The step of being defined in the step of having listed or unit, but alternatively also including not listing or unit, or alternatively also wrap
Include for other intrinsic steps of these processes, method, product or equipment or unit.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can wrap in conjunction with the embodiments
It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
Mobile terminal involved by the embodiment of the present application can include the various handheld devices with radio communication function,
Mobile unit, wearable device, computing device or other processing equipments for being connected to radio modem, and various forms
User equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal
Device) etc..For convenience of description, apparatus mentioned above is referred to as mobile terminal.Behaviour involved by the embodiment of the present application
It is that hardware resource is managed collectively as system, and provides a user the software systems of business interface, the embodiment of the present application institute
The computing resource being related to refers to that part that specific service computation is carried out in the process resource provided in CPU runnings
Process resource.
As shown in Figure 1A, the mobile terminal such as smart mobile phone is typically provided with program running space at present, and program operation is empty
Between include user's space and operating system space, wherein, user's space operation have one or more application programs, this or more
Individual application program is the destination application of mobile terminal installation, and operating system space motion has the operating system of mobile terminal.
The mobile terminal can specifically run Android android system, Mobile operating system iOS that Apple Inc. develops etc., herein not
Do unique restriction.As shown in Figure 1B, so that the running of mobile terminal has android system as an example, corresponding user's space includes
Application layer (Applications) in the android system, operating system space can include answering in the android system
With process block rack-layer (Application Framework), system operation storehouse layer (including system operation storehouse layer Libraries and
Android Runtime when Android is run), Linux inner core (Linux Kernel).Wherein, include in application layer all kinds of
With the application program of user's direct interaction, or the service routine for running on backstage write by Java language.For example, smart mobile phone
The program of the common basic function of upper realization, such as short message service (Short Messaging Service, SMS) short message, electricity
The programs such as words dialing, Photo Browser, calendar, game, map, WWW (World Wide Web, Web) browser, and
The other applications of developer's exploitation.Application framework layer provides a series of needed for exploitation Android application programs
It class libraries, can be used in reusing component, personalized extension can also be realized by inheriting.System operation storehouse layer is application program frame
The support of frame, service is provided for each component in android system.System operation storehouse layer is transported by system class libraries and Android
Formed during row.Android includes core library and Dalvik virtual machine two parts when running.Linux inner core is used to realize hardware
The Core Features such as device drives, process and memory management, network protocol stack, power management, radio communication.
Above-mentioned destination application operates in user's space, and operating system is typically just entered when destination application enables
The optimization of the system resource of row application level, to lift application program runnability.
For the situation, the embodiment of the present application proposes a kind of application program of destination application for mobile terminal
Properties Control method, in this method, mobile terminal detects user's during obtaining local terminal operational objective application program first
Operating parameter;Secondly, the CPU configuration strategies of the mobile terminal are determined according to the operating parameter;Finally, match somebody with somebody according to the CPU
It is the default internal operation scene configuration computing resource to put strategy.Because mobile terminal can be run according to destination application
During the operating parameter of user that detects carry out flexible resource distribution, can both avoid the excessive money of low operating frequency configuration
Source and cause resource distribution redundancy, high operating frequency can be avoided to configure very few resource again and cause resource distribution insufficient, favorably
In the degree of accuracy and flexibility that improve running of mobile terminal destination application configuration computing resource.
The embodiment of the present application is introduced below in conjunction with the accompanying drawings.
Referring to Fig. 2, Fig. 2 is the embodiment of the present application provide a kind of application program capacity control method flow signal
Figure, as illustrated, application Properties Control method includes:
S201, the operation of the user detected during the acquisition for mobile terminal running of mobile terminal destination application
Parameter.
Wherein, the destination application for example can be game application, instant messaging application program, camera applications
Program, shopping application program, video class application program etc., do not do unique restriction herein.
Wherein, operating parameter include it is following any one:Operating frequency, number of operations, operation duration etc., do not do only herein
One limits.
S202, the mobile terminal determine the CPU configuration strategies of the mobile terminal according to the operating parameter.
Wherein, configuration strategy includes needing the CPU number and each CPU computational resource allocation additionally enabled, described
Each CPU computational resource allocation includes the calculating money of each application program in the application program that the mobile terminal is currently run
Source is distributed.
S203, the mobile terminal are that the destination application configures computing resource according to the CPU configuration strategies.
Wherein, the mobile terminal is multi-core CPU, can be specifically double-core, four cores, eight cores, 16 cores etc., not do herein
It is unique to limit.
Wherein, the computing resource for distributing to destination application refers to distribute to destination application in each cycle
The number of task computation is carried out, the computing resource is not done only herein such as can be 300MHZ, 400MHZ, 500MHZ, 1GHZ
One limits.
As can be seen that in the embodiment of the present application, mobile terminal is examined during obtaining local terminal operational objective application program first
Measure the operating parameter of user;Secondly, the CPU configuration strategies of the mobile terminal are determined according to the operating parameter;Finally, press
It is the default internal operation scene configuration computing resource according to the CPU configuration strategies.Because mobile terminal can be answered according to target
Flexible resource distribution is carried out with the operating parameter of the user detected in program operation process, can both avoid low operating frequency
Configure excess resource and cause resource distribution redundancy, high operating frequency can be avoided to configure very few resource and cause resource distribution again
Deficiency, be advantageous to improve the degree of accuracy and flexibility of running of mobile terminal destination application configuration computing resource.
In a possible example, the mobile terminal determines the CPU of the mobile terminal according to the operating parameter
Configuration strategy, including:The mobile terminal determines the default internal operation scene of destination application according to the operating parameter;
Obtain CPU configuration strategies corresponding to default internal operation scene.
Wherein, CPU configuration strategies can be the quantity for the CPU to be enabled, and each CPU distributes to the calculating of the scene
Resource.
Wherein, the default internal operation scene of different application is usually different, by taking game application as an example, trip
Default internal operation scene in application program of playing does not do unique restriction herein such as can be a battlefield scape, store scene.
For example, by default internal operation scene settings be game application in group's battlefield scape, user's touching display screen
Number be operating parameter.Assuming that in 2 minutes, mobile terminal detects that the touch-control for the A game application scenes being currently running shows
The number of display screen is 100 times, wherein touch-control number corresponding to default battlefield scape is more than 40 beats/min, then passes through calculating
Show that A game applications scene for group's battlefield scape, inquires about CPU configuration strategies corresponding to default battlefield scape.
It can be seen that in this example, mobile terminal is by statistical operation parameter, it is determined that specific internal operation scene, for spy
The specific CPU configuration strategies of fixed internal operation scene configuration, be advantageous to improve the configuration of running of mobile terminal destination application
Become more meticulous degree and the flexibility of computing resource.
In a possible example, detected during the acquisition for mobile terminal running of mobile terminal destination application
Before the operating parameter of the user arrived, methods described also includes:The strategy bag that the mobile terminal the reception server is sent, it is described
Strategy includes the default internal operation scene and corresponding CPU configuration strategies.
Wherein, the strategy bag transmitted by server can be that server is counting the default internal operation of other mobile terminals
Obtained after the log of scene, in the specific implementation, server can obtain multiple operation mesh that multiple mobile terminals are sent
The log of the default internal operation scene of application program is marked, the log can specifically include corresponding mobile terminal and exist
The configuring condition of the performance parameter (such as frame per second, image quality) and system resource when presetting internal operation scene is run, is entered
And server can analyze the log got, the runnability evaluation of estimate for calculating each log (such as can basis
Account for rate and image quality carry out COMPREHENSIVE CALCULATING and goes out runnability evaluation of estimate), and filter out the higher operation note of runnability evaluation of estimate
Record, so as to which the above-mentioned strategy of log generation screened according to this wraps.
It can be seen that in this example, the target that mobile terminal can determine currently to run based on the strategy bag that server is sent should
With the CPU configuration strategies of the default internal operation scene of program, complicated calculations are carried out without itself, are advantageous to improve mobile terminal
The convenience and efficiency of resource distribution are carried out for presetting internal operation scene.
In a possible example, detected during the acquisition for mobile terminal running of mobile terminal destination application
Before the operating parameter of the user arrived, methods described also includes:The mobile terminal counts the default internal operation scene
Multiple logs, the log include fluency, image quality and frame per second;Run according in the multiple log
State meets at least one log of preparatory condition, determines CPU configuration strategies corresponding to the default internal operation scene.
Wherein, the preparatory condition is that frame per second is more than preset frame rate, fluency is more than default fluency and image quality
It is in or high.
For example, the log of mobile terminal statistics used multiple application program Run-time scenarios in five days,
Such as group's battlefield scape of A game applications, the frame per second of first is 60, image quality grade is medium level, and in this case CPU is configured
Strategy distributes 500MHZ computing resources for the first CPU and gives A game applications;The frame per second of second is 80, image quality grade is high
Etc. level, in this case CPU configuration strategies are that the 2nd CPU distribution 800MHZ computing resources give A game applications;The frame per second of N fields
It is medium level for 100, image quality grade, in this case CPU configuration strategies are that N CPU distribution 500MHZ computing resources are given
A game applications.After five days when mobile terminal is again introduced into group's battlefield scape of A game applications, according to above-mentioned log, matching
Preparatory condition is that frame per second is 100, and image quality grade is medium group's battlefield scape, and A game is again introduced into after thus obtaining five days
The CPU configuration strategies of group's battlefield scape of application are N CPU configuration strategies, so as to quickly match default internal operation field
The CPU configuration strategies of scape.
It can be seen that in this example, mobile terminal is by the way that by counting log, intelligent screening goes out the higher fortune of runnability
Row record, and the CPU configuration strategies in the log are determined as current CPU configuration strategies to be used, so as to guide movement
Terminal accurately configures CPU computing resources, improves the degree of accuracy of resource distribution and intelligent.
In a possible example, the mobile terminal determines that the CPU of the local terminal is configured according to the operating parameter
Strategy, including:The mobile terminal identifies by inquiry of the operating parameter, inquires about the behaviour of the default destination application
Make the mapping relations between parameter and CPU configuration strategies, determine CPU configuration strategies corresponding to the operating parameter.
As an example it is assumed that during running of mobile terminal B application programs, number of operations and the CPU of the user detected are configured
Mapping relations between strategy are the corresponding first CPU configuration strategies of the first number of operations, and corresponding 2nd CPU of the second number of operations matches somebody with somebody
Strategy is put, the number of operations detected is the first number of operations, then is identified by inquiry of the first number of operations, inquire about above-mentioned mapping
Relation, it is determined that corresponding CPU configuration strategies are the first CPU configuration strategies.
As can be seen that in this example, operating system is inquiry mark and default mapping by the number of operations detected
Relation compares one by one, can accurately determine CPU configuration strategies corresponding to operating parameter, determination process is simply efficient, is advantageous to
Improve the convenience and real-time of resource distribution.
In this possible example, the mapping between the operating parameter and CPU configuration strategies of above-mentioned destination application is closed
System can be configured in advance by user, or the built in machine learning algorithm intellectual analysis history log by mobile terminal
It is determined that.
For example, mobile terminal can show the function interface for setting the mapping relations, and operating parameter side can be with
Editable operating parameter segment is shown, each segment corresponds to a CPU configuration strategy, and CPU configuration strategies side can
With show it is complete have a CPU, and each CPU working frequency and distributed under corresponding working frequency how many computing resource to
The related content of destination application.User is based on the function interface typing configuration information, and mobile terminal can generate above-mentioned reflect
Penetrate relation.
Again for example, mobile terminal can count the history log of destination application, each history run note
Record all includes operating parameter and corresponding CPU configuration strategies, and runnability evaluation of estimate, for each operating parameter section,
The average configuration strategy of the higher multiple CPU configuration strategies of runnability evaluation of estimate corresponding to calculating, so that it is determined that going out each behaviour
Make CPU configuration strategies corresponding to parameter section, ultimately form above-mentioned mapping relations.
It can be seen that in this example, mobile terminal can be based on the modes such as user mutual or machine learning and flexibly set target
Mapping relations between the operating parameter and CPU configuration strategies of application program, in order to subsequently quickly determine current operation ginseng
CPU configuration strategies corresponding to number, improve the degree of accuracy and flexibility of resource distribution.
In a possible example, the mobile terminal is the default internal operation field according to the CPU configuration strategies
Scape configures computing resource, including:The mobile terminal is the default internal fortune according to the CPU configuration strategies in preset period of time
Row scene configuration computing resource.
Wherein, the preset period of time can be determined by the duration information in the CPU configuration strategies that determine, this when long letter
Cease for indicating that mobile terminal needs to carry out the configuration of computing resource in the range of the duration information.
Wherein, the computing resource for distributing to each application program can specifically include distributing to each application program
The computing resource of at least one process, the type of the process include following at least one:Null process, background process, service into
Journey, visible process and foreground process.That is, the managing computing resources of mobile terminal can become more meticulous to process-level, from
And more accurately distribute computing resource.
It can be seen that in this example, by the restriction of preset period of time, timely and effectively can be calculated with the configuration of CPU configuration strategies
Resource, avoid time-out from distributing rationally and cause system unstable and high power consumption, be advantageous to improve destination application it is default in
Portion's Run-time scenario reliability of operation and endurance.
It is consistent with the embodiment shown in described Fig. 2, referring to Fig. 3, a kind of application that Fig. 3, which is the embodiment of the present application, to be provided
The schematic flow sheet of program feature control method.As illustrated, application Properties Control method includes:
S301, the strategy that the mobile terminal the reception server is sent wrap, and the strategy bag includes the default internal fortune
Row scene and corresponding CPU configuration strategies
S302, the operation of the user detected during the acquisition for mobile terminal running of mobile terminal destination application
Parameter.
S303, the mobile terminal determine the default internal operation scene of destination application according to the operating parameter.
S304, the acquisition for mobile terminal preset CPU configuration strategies corresponding to internal operation scene.
S305, the mobile terminal are the default internal operation scene according to the CPU configuration strategies in preset period of time
Configure computing resource.
As can be seen that in the embodiment of the present application, mobile terminal is examined during obtaining local terminal operational objective application program first
Measure the operating parameter of user;Secondly, the CPU configuration strategies of the mobile terminal are determined according to the operating parameter;Finally, press
It is the default internal operation scene configuration computing resource according to the CPU configuration strategies.Because mobile terminal can be answered according to target
Flexible resource distribution is carried out with the operating parameter of the user detected in program operation process, can both avoid low operating frequency
Configure excess resource and cause resource distribution redundancy, high operating frequency can be avoided to configure very few resource and cause resource distribution again
Deficiency, be advantageous to improve the degree of accuracy and flexibility of running of mobile terminal destination application configuration computing resource.
In addition, mobile terminal can determine the pre- of the destination application currently run based on the strategy bag that server is sent
If the CPU configuration strategies of internal operation scene, complicated calculations are carried out without itself, are advantageous to improve mobile terminal for default interior
Portion's Run-time scenario carries out the convenience and efficiency of resource distribution.
It is consistent with the embodiment shown in described Fig. 2, referring to Fig. 4, a kind of application that Fig. 4, which is the embodiment of the present application, to be provided
The schematic flow sheet of program feature control method, applied to mobile terminal, application Properties Control method includes:
S401, multiple logs of the default internal operation scene of mobile terminal statistics, log include smoothness
Degree, image quality and frame per second.
S402, the mobile terminal meet at least one operation of preparatory condition according to running status in multiple logs
Record, it is determined that CPU configuration strategies corresponding to default internal operation scene.
S403, the operation of the user detected during the acquisition for mobile terminal running of mobile terminal destination application
Parameter.
S404, the mobile terminal identify by inquiry of operating parameter, inquire about the operation ginseng of default destination application
Mapping relations between number and CPU configuration strategies, determine CPU configuration strategies corresponding to operating parameter.
S405, the mobile terminal are default internal operation scene configuration according to the CPU configuration strategies in preset period of time
Computing resource.
As can be seen that in the embodiment of the present application, mobile terminal is examined during obtaining local terminal operational objective application program first
Measure the operating parameter of user;Secondly, the CPU configuration strategies of the mobile terminal are determined according to the operating parameter;Finally, press
It is the default internal operation scene configuration computing resource according to the CPU configuration strategies.Because mobile terminal can be answered according to target
Flexible resource distribution is carried out with the operating parameter of the user detected in program operation process, can both avoid low operating frequency
Configure excess resource and cause resource distribution redundancy, high operating frequency can be avoided to configure very few resource and cause resource distribution again
Deficiency, be advantageous to improve the degree of accuracy and flexibility of running of mobile terminal destination application configuration computing resource.
In addition, mobile terminal, by counting log, intelligent screening goes out the higher log of runnability, and determines
CPU configuration strategies in the log are current CPU configuration strategies to be used, so as to which guiding mobile terminal accurately configures
CPU computing resources, improve the degree of accuracy of resource distribution and intelligent.
It is consistent with the embodiment shown in described Fig. 2, Fig. 3, Fig. 4, provided referring to Fig. 5, Fig. 5 is the embodiment of the present application
A kind of structural representation of mobile terminal, the running of mobile terminal have one or more application programs and operating system, as schemed institute
Showing, the mobile terminal includes processor, memory, communication interface and one or more programs, wherein, it is one or more of
Program is different from one or more of application programs, and one or more of programs are stored in the memory, and
And be configured by the computing device, described program includes being used for the instruction for performing following steps;
Obtain the operating parameter of the user detected during running of mobile terminal destination application;
The CPU configuration strategies of the mobile terminal are determined according to the operating parameter;
It is that the destination application configures computing resource according to the CPU configuration strategies.
As can be seen that in the embodiment of the present application, mobile terminal is examined during obtaining local terminal operational objective application program first
Measure the operating parameter of user;Secondly, the CPU configuration strategies of the mobile terminal are determined according to the operating parameter;Finally, press
It is the default internal operation scene configuration computing resource according to the CPU configuration strategies.Because mobile terminal can be answered according to target
Flexible resource distribution is carried out with the operating parameter of the user detected in program operation process, can both avoid low operating frequency
Configure excess resource and cause resource distribution redundancy, high operating frequency can be avoided to configure very few resource and cause resource distribution again
Deficiency, be advantageous to improve the degree of accuracy and flexibility of running of mobile terminal destination application configuration computing resource.Computing resource
In a possible example, determine that the CPU of the mobile terminal configures plan according to the operating parameter described
In terms of slightly, the instruction in described program is specifically used for performing following operate:Destination application is determined according to the operating parameter
Default internal operation scene;And obtain CPU configuration strategies corresponding to default internal operation scene.
In a possible example, in the use for obtaining and being detected during running of mobile terminal destination application
Aspect before the operating parameter at family, the instruction in described program are specifically used for performing following operate:What the reception server was sent
Strategy bag, the strategy include the default internal operation scene and corresponding CPU configuration strategies;Or statistics is described pre-
If multiple logs of internal operation scene, the log includes fluency, image quality and frame per second;And according to institute
At least one log that running status in multiple logs meets preparatory condition is stated, determines the default internal operation field
CPU configuration strategies corresponding to scape.
In a possible example, determine that the CPU of the mobile terminal configures plan according to the operating parameter described
In terms of slightly, the instruction in described program is specifically used for performing following operate:Identified by inquiry of the operating parameter, inquiry is default
The destination application operating parameter and CPU configuration strategies between mapping relations, and determine the operating parameter
Corresponding CPU configuration strategies.
In a possible example, calculated described according to the CPU configuration strategies for destination application configuration
In terms of resource, the instruction in described program is specifically used for performing following operate:It is according to the CPU configuration strategies in preset period of time
The default internal operation scene configuration computing resource.
Fig. 6 shows a kind of possible functional unit of application program capacity control device involved in the embodiment
Composition frame chart.Application program capacity control device 600 is applied to mobile terminal, on the mobile terminal operation have operating system and
One or more application programs, it is single that application program capacity control device 600 includes acquiring unit 601, determining unit 602 and configuration
Member 603, wherein,
The acquiring unit 601, for obtaining the user's detected during running of mobile terminal destination application
Operating parameter;
The determining unit 602, for determining that the CPU of the mobile terminal configures plan according to the operating system parameter
Slightly;
The dispensing unit 603, for being that the destination application configures computing resource according to the CPU configuration strategies.
As can be seen that in the embodiment of the present application, mobile terminal is examined during obtaining local terminal operational objective application program first
Measure the operating parameter of user;Secondly, the CPU configuration strategies of the mobile terminal are determined according to the operating parameter;Finally, press
It is the default internal operation scene configuration computing resource according to the CPU configuration strategies.Because mobile terminal can be answered according to target
Flexible resource distribution is carried out with the operating parameter of the user detected in program operation process, can both avoid low operating frequency
Configure excess resource and cause resource distribution redundancy, high operating frequency can be avoided to configure very few resource and cause resource distribution again
Deficiency, be advantageous to improve the degree of accuracy and flexibility of running of mobile terminal destination application configuration computing resource.Computing resource
In a possible example, determine that the CPU of the mobile terminal configures plan according to the operating parameter described
Slightly aspect, the determining unit 602 are specifically used for:The default internal operation of destination application is determined according to the operating parameter
Scene;And obtain CPU configuration strategies corresponding to default internal operation scene.
In a possible example, in the use for obtaining and being detected during running of mobile terminal destination application
Aspect before the operating parameter at family, the determining unit 602 are specifically used for:The strategy bag that the reception server is sent, the plan
Slightly include the default internal operation scene and corresponding CPU configuration strategies;Or the statistics default internal operation scene
Multiple logs, the log includes fluency, image quality and frame per second;And according to the multiple log
Middle running status meets at least one log of preparatory condition, determines that CPU corresponding to the default internal operation scene matches somebody with somebody
Put strategy.
In a possible example, determine that the CPU of the mobile terminal configures plan according to the operating parameter described
Slightly aspect, the determining unit 602 are specifically used for:Identified by inquiry of the operating parameter, inquiring about the default target should
With the mapping relations between the operating parameter and CPU configuration strategies of program, determine that CPU corresponding to the operating parameter configures plan
Slightly.
In a possible example, calculated described according to the CPU configuration strategies for destination application configuration
In terms of resource, the dispensing unit 603 is specifically used for:According to the CPU configuration strategies it is the default inside in preset period of time
Run-time scenario configures computing resource.
Wherein it is determined that unit 602 and configuration 603 can be processor or controller, acquiring unit 601 can be processor
Internal communications interface between program running space, such as processor and the communication interface in operating system space, or processor
With the communication interface of user's space etc..
Referring to Fig. 7, Fig. 7, which is a kind of of the embodiment of the present application offer, is applied to above-mentioned application program capacity control method
The structural representation of smart mobile phone 700, the smart mobile phone 700 include:Housing 710, touching display screen 720, mainboard 730, electricity
Pond 740 and subplate 750, front camera 731, processor 732, memory 733, power management chip are provided with mainboard 730
734 etc., oscillator 751, integral sound chamber 752, VOOC are provided with subplate and is dodged and fills interface 753 and fingerprint recognition module 754.
Wherein, smart mobile phone 700 can obtain the behaviour that user is detected during running of mobile terminal destination application
Make parameter;Secondly, the CPU configuration strategies of the mobile terminal are determined according to the operating parameter;Finally, configured according to the CPU
Strategy configures computing resource for the destination application.
The processor 732 is the control centre of smart mobile phone, utilizes various interfaces and the whole smart mobile phone of connection
Various pieces, by running or performing the software program and/or module that are stored in memory 733, and call and be stored in
Data in memory 733, the various functions and processing data of smart mobile phone are performed, so as to carry out overall prison to smart mobile phone
Control.Optionally, processor 732 may include one or more processing units;Preferably, processor 732 can integrate application processor
And modem processor, wherein, application processor mainly handles operating system, user interface and application program etc., modulatedemodulate
Processor is adjusted mainly to handle radio communication.It is understood that the modem processor can not also be integrated into processor
In 732.The processor 732 for example can be central processing unit (Central Processing Unit, CPU), general procedure
Device, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application-
Specific Integrated Circuit, ASIC), field programmable gate array (Field Programmable Gate
Array, FPGA) either other PLDs, transistor logic, hardware component or its any combination.It can
To realize or perform the various exemplary logic blocks with reference to described by present disclosure, module and circuit.The place
It can also be the combination for realizing computing function to manage device, such as is combined comprising one or more microprocessors, DSP and microprocessor
Combination etc..
The memory 733 can be used for storage software program and module, and processor 732 is stored in memory by operation
733 software program and module, so as to perform the various function application of smart mobile phone and data processing.Memory 733 can
Mainly include storing program area and storage data field, wherein, storing program area can storage program area, needed at least one function
Application program etc.;Storage data field can store uses created data etc. according to smart mobile phone.In addition, memory 733
High-speed random access memory can be included, can also include nonvolatile memory, a for example, at least disk memory,
Flush memory device or other volatile solid-state parts.The memory 733 for example can be random access memory (Random
Access Memory, RAM), flash memory, read-only storage (Read Only Memory, ROM), the read-only storage of erasable programmable
Device (Erasable Programmable ROM, EPROM), EEPROM (Electrically
EPROM, EEPROM), register, hard disk, mobile hard disk, read-only optical disc (CD-ROM) or any other shape well known in the art
The storage medium of formula.
The embodiment of the present application also provides a kind of computer-readable storage medium, wherein, the computer-readable storage medium is stored for electricity
The computer program that subdata exchanges, the computer program cause computer to perform any as described in methods described embodiment
The part or all of step of method, the computer include mobile terminal.
The embodiment of the present application also provides a kind of computer program product, and the computer program product includes storing calculating
The non-transient computer-readable recording medium of machine program, the computer program are operable to make computer perform such as the side
The part or all of step of either method described in method embodiment.The computer program product can be a software installation
Bag, the computer include mobile terminal.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, the application is not limited by described sequence of movement because
According to the application, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know
Know, embodiment described in this description belongs to preferred embodiment, involved action and module not necessarily the application
It is necessary.
In the described embodiment, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, can be by another way
Realize.For example, device embodiment described above is only schematical, such as the division of the unit, it is only one kind
Division of logic function, can there is an other dividing mode when actually realizing, such as multiple units or component can combine or can
To be integrated into another system, or some features can be ignored, or not perform.Another, shown or discussed is mutual
Coupling direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit,
Can be electrical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.The integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer-readable access to memory.Based on such understanding, the technical scheme of the application substantially or
Person say the part to be contributed to prior art or the technical scheme all or part can in the form of software product body
Reveal and, the computer software product is stored in a memory, including some instructions are causing a computer equipment
(can be personal computer, server or network equipment etc.) performs all or part of each embodiment methods described of the application
Step.And foregoing memory includes:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory
(RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with the medium of store program codes.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of the embodiment is can
To instruct the hardware of correlation to complete by program, the program can be stored in a computer-readable memory, memory
It can include:Flash disk, read-only storage (English:Read-Only Memory, referred to as:ROM), random access device (English:
Random Access Memory, referred to as:RAM), disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and
Embodiment is set forth, and the explanation of above example is only intended to help and understands the present processes and its core concept;
Meanwhile for those of ordinary skill in the art, according to the thought of the application, can in specific embodiments and applications
There is change part, in summary, this specification content should not be construed as the limitation to the application.
Claims (10)
- A kind of 1. application program capacity control method, it is characterised in that including:Obtain the operating parameter of the user detected during running of mobile terminal destination application;The CPU configuration strategies of the mobile terminal are determined according to the operating parameter;It is that the destination application configures computing resource according to the CPU configuration strategies.
- 2. according to the method for claim 1, it is characterised in that described that the mobile terminal is determined according to the operating parameter CPU configuration strategies, including:The default internal operation scene of destination application is determined according to the operating parameter;Obtain CPU configuration strategies corresponding to default internal operation scene.
- 3. according to the method for claim 2, it is characterised in that the acquisition running of mobile terminal destination application process In before the operating parameter of user that detects, methods described also includes:The strategy bag that the reception server is sent, the strategy bag configure comprising the default internal operation scene with corresponding CPU Strategy;OrCount multiple logs of the default internal operation scene, the log include fluency, image quality and Frame per second;Meet at least one log of preparatory condition according to running status in the multiple log, determine described default CPU configuration strategies corresponding to internal operation scene.
- 4. according to the method for claim 1, it is characterised in that described that the mobile terminal is determined according to the operating parameter CPU configuration strategies, including:Identified by inquiry of the operating parameter, inquire about the operating parameter and CPU configuration plans of the default destination application Mapping relations between slightly, determine CPU configuration strategies corresponding to the operating parameter.
- 5. according to the method described in claim any one of 1-4, it is characterised in that described according to the CPU configuration strategies is described Destination application configures computing resource, including:According to the CPU configuration strategies it is the default internal operation scene configuration computing resource in preset period of time.
- A kind of 6. application program capacity control device, it is characterised in that including acquiring unit, determining unit and dispensing unit, its In,The acquiring unit, the operation for obtaining the user detected during running of mobile terminal destination application are joined Number;The determining unit, for determining the CPU configuration strategies of the mobile terminal according to the operating system parameter;The dispensing unit, for being that the destination application configures computing resource according to the CPU configuration strategies.
- 7. device according to claim 6, it is characterised in that the movement is determined eventually according to the operating parameter described In terms of the CPU configuration strategies at end, the determining unit is specifically used for:The pre- of destination application is determined according to the operating parameter If internal operation scene;And obtain CPU configuration strategies corresponding to default internal operation scene.
- 8. device according to claim 7, it is characterised in that in the acquisition running of mobile terminal destination application mistake Aspect before the operating parameter of the user detected in journey, the determining unit are specifically used for:The plan that the reception server is sent Slightly wrap, the strategy includes the default internal operation scene and corresponding CPU configuration strategies;Or statistics is described default Multiple logs of internal operation scene, the log include fluency, image quality and frame per second;And according to described Running status meets at least one log of preparatory condition in multiple logs, determines the default internal operation scene Corresponding CPU configuration strategies.
- A kind of 9. mobile terminal, it is characterised in that including processor, memory, communication interface and one or more programs, its In, one or more of programs are stored in the memory, and are configured by the computing device, described program Instruction including requiring the step in any one of 1-5 method for perform claim.
- 10. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium storage is used for electron number According to the computer program of exchange, wherein, the computer program causes computer to perform as described in claim any one of 1-5 Method, the computer include mobile terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710941133.2A CN107807852B (en) | 2017-10-11 | 2017-10-11 | Application program performance control method, device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710941133.2A CN107807852B (en) | 2017-10-11 | 2017-10-11 | Application program performance control method, device and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107807852A true CN107807852A (en) | 2018-03-16 |
CN107807852B CN107807852B (en) | 2020-07-07 |
Family
ID=61592020
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710941133.2A Expired - Fee Related CN107807852B (en) | 2017-10-11 | 2017-10-11 | Application program performance control method, device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107807852B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109471574A (en) * | 2018-11-21 | 2019-03-15 | 北京百度网讯科技有限公司 | For configuring the method and device of resource |
CN110096315A (en) * | 2019-03-22 | 2019-08-06 | 华为技术有限公司 | A kind of component loading method and device |
CN110716759A (en) * | 2018-06-26 | 2020-01-21 | 深圳富泰宏精密工业有限公司 | Electronic device, computer readable storage medium and operation parameter configuration method |
CN111538636A (en) * | 2020-04-24 | 2020-08-14 | 深圳华锐金融技术股份有限公司 | Computer equipment determination method and device and storage medium |
CN112764933A (en) * | 2021-01-27 | 2021-05-07 | 惠州Tcl移动通信有限公司 | CPU configuration method, device, terminal and computer readable storage medium |
CN113769387A (en) * | 2021-09-18 | 2021-12-10 | 网易(杭州)网络有限公司 | Game graphic parameter configuration method and device and terminal equipment |
WO2022247446A1 (en) * | 2021-05-28 | 2022-12-01 | 华为技术有限公司 | Performance optimization method and related device |
WO2023142664A1 (en) * | 2022-01-27 | 2023-08-03 | 腾讯科技(深圳)有限公司 | Image display method, terminal device, server, electronic device, storage medium, and program product |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104731304A (en) * | 2015-03-20 | 2015-06-24 | 广东欧珀移动通信有限公司 | Adjusting method and device for CPU frequency adjustment mode in terminal |
CN106020987A (en) * | 2016-05-31 | 2016-10-12 | 广东欧珀移动通信有限公司 | Method and device for determining kernel running configurations in processor |
CN106293803A (en) * | 2016-07-22 | 2017-01-04 | 宇龙计算机通信科技(深圳)有限公司 | A kind of application control method and device |
-
2017
- 2017-10-11 CN CN201710941133.2A patent/CN107807852B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104731304A (en) * | 2015-03-20 | 2015-06-24 | 广东欧珀移动通信有限公司 | Adjusting method and device for CPU frequency adjustment mode in terminal |
CN106020987A (en) * | 2016-05-31 | 2016-10-12 | 广东欧珀移动通信有限公司 | Method and device for determining kernel running configurations in processor |
CN106293803A (en) * | 2016-07-22 | 2017-01-04 | 宇龙计算机通信科技(深圳)有限公司 | A kind of application control method and device |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110716759A (en) * | 2018-06-26 | 2020-01-21 | 深圳富泰宏精密工业有限公司 | Electronic device, computer readable storage medium and operation parameter configuration method |
CN109471574A (en) * | 2018-11-21 | 2019-03-15 | 北京百度网讯科技有限公司 | For configuring the method and device of resource |
CN109471574B (en) * | 2018-11-21 | 2020-04-10 | 北京百度网讯科技有限公司 | Method and device for configuring resources |
CN110096315A (en) * | 2019-03-22 | 2019-08-06 | 华为技术有限公司 | A kind of component loading method and device |
CN110096315B (en) * | 2019-03-22 | 2020-09-04 | 华为技术有限公司 | Component loading method and device |
CN111538636A (en) * | 2020-04-24 | 2020-08-14 | 深圳华锐金融技术股份有限公司 | Computer equipment determination method and device and storage medium |
CN112764933A (en) * | 2021-01-27 | 2021-05-07 | 惠州Tcl移动通信有限公司 | CPU configuration method, device, terminal and computer readable storage medium |
WO2022247446A1 (en) * | 2021-05-28 | 2022-12-01 | 华为技术有限公司 | Performance optimization method and related device |
CN113769387A (en) * | 2021-09-18 | 2021-12-10 | 网易(杭州)网络有限公司 | Game graphic parameter configuration method and device and terminal equipment |
WO2023142664A1 (en) * | 2022-01-27 | 2023-08-03 | 腾讯科技(深圳)有限公司 | Image display method, terminal device, server, electronic device, storage medium, and program product |
Also Published As
Publication number | Publication date |
---|---|
CN107807852B (en) | 2020-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107807852A (en) | Application program capacity control method and equipment | |
CN107577537A (en) | Resource allocation method and Related product | |
CN107426432A (en) | Resource allocation method and Related product | |
CN107547746A (en) | Resource allocation method and related product | |
CN107577533A (en) | Resource allocation method and Related product | |
CN107589998A (en) | Resource allocation method and Related product | |
CN107483725A (en) | Resource allocation method and Related product | |
CN107613107A (en) | Resource allocation method and related product | |
CN107832141A (en) | Application program progress control method and equipment | |
CN107515787A (en) | Resource allocation method and Related product | |
CN107479970A (en) | Resource allocation method and Related product | |
CN107861814A (en) | Resource allocation method and equipment | |
CN107547745A (en) | Resource allocation method and Related product | |
CN107894920A (en) | Resource allocation method and Related product | |
CN107528976A (en) | Resource allocation method and Related product | |
CN107450988A (en) | Resource allocation method and Related product | |
CN107635078A (en) | Game control method and equipment | |
CN108037999A (en) | Resource allocation method and Related product | |
CN107547744A (en) | Resource allocation method and Related product | |
CN107632697B (en) | Processing method, device, storage medium and the electronic equipment of application program | |
CN109960507A (en) | Compile optimization method, device, storage medium, intelligent terminal and server | |
CN107589977A (en) | Resource allocation method and related product | |
CN107786748A (en) | Method for displaying image and equipment | |
CN107797868A (en) | resource adjusting method and device | |
CN107621981A (en) | Resource allocation method and Related product |
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 | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200707 |
|
CF01 | Termination of patent right due to non-payment of annual fee |