CN103810042B - Method and system for adjusting browser parameters - Google Patents

Method and system for adjusting browser parameters Download PDF

Info

Publication number
CN103810042B
CN103810042B CN201210439927.6A CN201210439927A CN103810042B CN 103810042 B CN103810042 B CN 103810042B CN 201210439927 A CN201210439927 A CN 201210439927A CN 103810042 B CN103810042 B CN 103810042B
Authority
CN
China
Prior art keywords
resource
metric
obtaining
state
total
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.)
Active
Application number
CN201210439927.6A
Other languages
Chinese (zh)
Other versions
CN103810042A (en
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201210439927.6A priority Critical patent/CN103810042B/en
Publication of CN103810042A publication Critical patent/CN103810042A/en
Application granted granted Critical
Publication of CN103810042B publication Critical patent/CN103810042B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method for adjusting browser parameters. The method includes the steps that resource consumption information of a current system is acquired; an idleness degree measurement value is determined according to the resource consumption information acquired currently and resource consumption information acquired the last time; whether the idleness degree measurement value is smaller than a first threshold value or not is judged, and if yes, the browser parameters are adjusted to weaken a special effect and improve a response speed; whether the idleness degree measurement value is larger than a second threshold value or not is judged, and if yes, the browser parameters are adjusted to enhance the special effect. Correspondingly, the invention further discloses a system for adjusting the browser parameters. By means of the method and system for adjusting the browser parameters, the browser parameters can be dynamically adjusted by monitoring the busyness degree of a system CPU load, so that user experience is improved; furthermore, cost is low.

Description

A kind of method and system of adjustment browser parameters
Technical field
The present invention relates to browser application field, more particularly to a kind of method and system of adjustment browser parameters.
Background technology
With the continuous development of network technology, people pass through user terminal access network, to obtain information, picture, stream matchmaker The demand of the contents such as body is increasing, but, due to the spread in performance of user terminal it is uneven, when user adopt CPU processing speeds When relatively low user terminal access takes resource larger business, easily because cpu resource deficiency causes user key-press response speed Slack-off the problems such as, so as to affect Consumer's Experience.
In order to solve the above problems, the solution being typically readily apparent that is the processing speed for increasing user terminal CPU, but It is that this mode cost is larger, does not still propose the processing speed without increasing user terminal CPU at present, and can adopt When the relatively low user terminal access of CPU processing speeds takes resource larger business, it is ensured that user key-press response speed, improve and use The related art scheme of family experience.
The content of the invention
In view of this, present invention is primarily targeted at providing a kind of method and system of adjustment browser parameters, can Consumer's Experience is improved, and cost is less.
To reach above-mentioned purpose, the technical scheme is that what is be achieved in that:
A kind of method of adjustment browser parameters, including:
Obtain the resource cost information of current system;
The resource cost information obtained according to this and the last resource cost information for obtaining, determine that idle degrees are weighed Value;
Judge that the idle degrees metric less than first threshold, then adjusts browser parameters, reduce special effect, to add Fast-response speed;Judge that the idle degrees metric more than Second Threshold, then adjusts browser parameters, increase special effect.
The resource cost information includes:Total idling-resource, always resource is expended using state and total kernel state expends resource.
The resource cost information obtained with the last time according to this resource cost information for obtaining, determines idle degrees Metric is:
According toIdle degrees metric M is asked for, wherein, A is what this obtained Total idling-resource, A ' are the last total idling-resource for obtaining, and B is that the total of this acquisition expends resource using state, and B ' is upper one The state of always applying of secondary acquisition expends resource, and C is that this total kernel state for obtaining expends resource, and C ' is total kernel of last acquisition State expends resource.
The resource cost information for obtaining current system is periodically acquisition.
The browser parameters include following one or more:Picture refreshing speed, browser process priority, specially good effect are every Second frame number, translucent Processing Algorithm, stretching algorithm.
A kind of system of adjustment browser parameters, including:Resource cost data obtaining module, idle degrees metric determine Module, judge module and adjusting module;Wherein,
The resource cost data obtaining module, for obtaining the resource cost information of current system;
The idle degrees metric determining module, the resource cost information for being obtained according to this are obtained with last Resource cost information, determine idle degrees metric;
The judge module, for whether judging the idle degrees metric less than first threshold, and judges described Whether idle degrees metric is more than Second Threshold;
The adjusting module, for when judge module judges that the idle degrees metric is less than first threshold, adjusting Browser parameters, reduce special effect, to accelerate response speed;And judge that the idle degrees metric is big in judge module When Second Threshold, browser parameters are adjusted, increase special effect.
The resource cost data obtaining module, specifically for obtaining total idling-resource, always using state consuming resource and always Kernel state expends resource.
The idle degrees metric determining module, specifically for basisAsk Idle degrees metric M is taken, wherein, A is total idling-resource that this obtains, and A ' is the last total idling-resource for obtaining, and B is The state of always applying of this acquisition expends resource, and B ' is that the state of always applying of last time acquisition expends resource, and C is the total interior of this acquisition Core state expends resource, and C ' is that the last total kernel state for obtaining expends resource.
The resource cost data obtaining module, obtains resource cost information specifically for periodicity.
The adjusting module, it is following one or more specifically for adjustment:Picture refreshing speed, browser process are preferential Level, specially good effect number of pictures per second, translucent Processing Algorithm, stretching algorithm.
The method and system of present invention adjustment browser parameters, obtain the resource cost information of current system;According to this The resource cost information of acquisition and the last resource cost information for obtaining, determine idle degrees metric;Judge the free time Degree metric is less than first threshold, then adjust browser parameters, reduces special effect, to accelerate response speed;Judge described Idle degrees metric is more than Second Threshold, then adjust browser parameters, increases special effect.The present invention can be by monitoring system The busy extent of system cpu load, dynamically adjusts browser parameters, and so as to improve Consumer's Experience, and cost is less.
Description of the drawings
Fig. 1 is a kind of method flow schematic diagram of adjustment browser parameters of the embodiment of the present invention;
Fig. 2 is a kind of system structure diagram of adjustment browser parameters of the embodiment of the present invention.
Specific embodiment
The present invention basic thought be:Obtain the resource cost information of current system;According to the resource cost that this obtains Information and the last resource cost information for obtaining, determine idle degrees metric;Judge that the idle degrees metric is less than First threshold, then adjust browser parameters, reduces special effect, to accelerate response speed;Judge the idle degrees metric More than Second Threshold, then browser parameters are adjusted, increase special effect.
The embodiment of the present invention proposes a kind of method of adjustment browser parameters, as shown in figure 1, the method includes:
Step 101:Obtain the resource cost information of current system;
Optionally, the resource cost information includes:Total idling-resource, always resource is expended using state and total kernel state expends Resource.
Optionally, the resource cost information for obtaining current system for example, can be obtained with each second periodically to obtain Total idling-resource of current system, always resource is expended using state and total kernel state expends resource.
It should be noted that heretofore described total idling-resource, always expending resource, total kernel state using state and expending money Source, refers to from system boot and starts when resource cost information is obtained, and total idling-resource, resource, kernel state consumption is expended using state Take resource.
Step 102:The resource cost information obtained according to this and the last resource cost information for obtaining, it is determined that idle Degree metric;
Optionally, the resource cost information obtained with the last time according to this resource cost information for obtaining, it is determined that Idle degrees metric is:
According toIdle degrees metric M is asked for, wherein, A is what this obtained Total idling-resource, A ' are the last total idling-resource for obtaining, and B is that the total of this acquisition expends resource using state, and B ' is upper one The state of always applying of secondary acquisition expends resource, and C is that this total kernel state for obtaining expends resource, and C ' is total kernel of last acquisition State expends resource.
Step 103:Judge that the idle degrees metric less than first threshold, then adjusts browser parameters, reduce specially good effect Effect, to accelerate response speed;Judge that the idle degrees metric more than Second Threshold, then adjusts browser parameters, increase Special effect, makes the effect that Consumer's Experience is more dazzled.
Here, when idle degrees metric is between first threshold and Second Threshold, it is not necessary to adjust browser ginseng Number.
Optionally, the first threshold is 30%, and the second threshold values is 50%, and two threshold value differences 20% are in order to avoid trembling It is dynamic.
Optionally, the browser parameters include following one or more:Picture refreshing speed, browser process are preferential Level, specially good effect number of pictures per second, translucent Processing Algorithm, stretching algorithm.
It should be noted that browser parameters, first threshold, Second Threshold are default setting, can be dynamic by environmental variable State is arranged.
For example, browser parameters are adjusted, reducing special effect is:Picture refreshing speed is reduced to often from 40 frame per second 20 frames of second, and/or browser priority lifting 10, and/or specially good effect interval increasing 10ms.Increase special effect in contrast.
The present invention also correspondingly proposes a kind of system of adjustment browser parameters, as shown in Fig. 2 the system includes:Money Data obtaining module, idle degrees metric determining module, judge module and adjusting module are expended in source;Wherein,
The resource cost data obtaining module, for obtaining the resource cost information of current system;
The idle degrees metric determining module, the resource cost information for being obtained according to this are obtained with last Resource cost information, determine idle degrees metric;
The judge module, for whether judging the idle degrees metric less than first threshold, and judges described Whether idle degrees metric is more than Second Threshold;
The adjusting module, for when judge module judges that the idle degrees metric is less than first threshold, adjusting Browser parameters, reduce special effect, to accelerate response speed;And judge that the idle degrees metric is big in judge module When Second Threshold, browser parameters are adjusted, increase special effect.
Optionally, the resource cost data obtaining module, specifically for obtaining total idling-resource, always expending money using state Source and total kernel state expend resource.
Optionally, the idle degrees metric determining module, specifically for basisIdle degrees metric M is asked for, wherein, A is total idling-resource that this obtains, A ' is the last total idling-resource for obtaining, and B is that the state of always applying of this acquisition expends resource, and B ' is always answering for last acquisition Resource is expended with state, C is that this total kernel state for obtaining expends resource, and C ' is that the last total kernel state for obtaining expends resource.
Optionally, the resource cost data obtaining module, obtains resource cost information specifically for periodicity.
Optionally, the adjusting module, it is following one or more specifically for adjustment:Picture refreshing speed, browser enter Journey priority, specially good effect number of pictures per second, translucent Processing Algorithm, stretching algorithm.
The busy extent of embodiment of the present invention monitor in real time current system, if system is busy, reduces refresh rate, improves Browser process priority, increases specially good effect number of pictures per second, reduces the priority of other tasks such as video playback, is provided with central system Source processes browser inter-related task, lifts the response speed of user key-press.If system is idle, refresh rate is improved, reduce special Effect number of pictures per second, be that Consumer's Experience more dazzles more rich effect, so as to, by the present invention can using CPU processing speeds compared with When low user terminal access takes resource larger business, it is ensured that user key-press response speed, Consumer's Experience, and cost are improved It is less.
The above, only presently preferred embodiments of the present invention is not intended to limit protection scope of the present invention.

Claims (8)

1. it is a kind of adjustment browser parameters method, it is characterised in that the method includes:
Obtain the resource cost information of current system;
The resource cost information obtained according to this and the last resource cost information for obtaining, determine idle degrees metric; The resource cost information obtained with the last time according to this resource cost information for obtaining, determines idle degrees metric For:According toIdle degrees metric M is asked for, wherein, A is total sky that this obtains Not busy resource, A ' are the last total idling-resource for obtaining, and B is that this state of always applying for obtaining expends resource, and B ' was obtained for the last time What is taken always expends resource using state, and C is that this total kernel state for obtaining expends resource, and C ' is the last total kernel state consumption for obtaining Take resource;
Judge that the idle degrees metric less than first threshold, then adjusts browser parameters, reduce special effect, to accelerate to ring Answer speed;Judge that the idle degrees metric more than Second Threshold, then adjusts browser parameters, increase special effect.
2. method according to claim 1, it is characterised in that the resource cost information includes:Total idling-resource, always should Resource is expended with state and total kernel state expends resource.
3. the method according to any one of claim 1 to 2, it is characterised in that the resource cost of the acquisition current system Information is periodically acquisition.
4. the method according to any one of claim 1 to 2, it is characterised in that the browser parameters are included with the next item down Or it is multinomial:Picture refreshing speed, browser process priority, specially good effect number of pictures per second, translucent Processing Algorithm, stretching algorithm.
5. it is a kind of adjustment browser parameters system, it is characterised in that the system includes:Resource cost data obtaining module, sky Not busy degree metric determining module, judge module and adjusting module;Wherein,
The resource cost data obtaining module, for obtaining the resource cost information of current system;
The idle degrees metric determining module, the money that the resource cost information for being obtained according to this was obtained with the last time Information is expended in source, determines idle degrees metric;The idle degrees metric determining module, specifically for basisIdle degrees metric M is asked for, wherein, A is total idling-resource that this obtains, A ' is the last total idling-resource for obtaining, and B is that the state of always applying of this acquisition expends resource, and B ' is always answering for last acquisition Resource is expended with state, C is that this total kernel state for obtaining expends resource, and C ' is that the last total kernel state for obtaining expends resource;
The judge module, for whether judging the idle degrees metric less than first threshold, and judges the free time Whether degree metric is more than Second Threshold;
The adjusting module, for when judge module judges that the idle degrees metric is less than first threshold, adjustment is browsed Device parameter, reduces special effect, to accelerate response speed;And judge the idle degrees metric more than the in judge module During two threshold values, browser parameters are adjusted, increase special effect.
6. system according to claim 5, it is characterised in that
The resource cost data obtaining module, specifically for obtaining total idling-resource, always expending resource and total kernel using state State expends resource.
7. the system according to any one of claim 5 to 6, it is characterised in that
The resource cost data obtaining module, obtains resource cost information specifically for periodicity.
8. the system according to any one of claim 5 to 6, it is characterised in that
The adjusting module, it is following one or more specifically for adjustment:Picture refreshing speed, browser process priority, spy Effect number of pictures per second, translucent Processing Algorithm, stretching algorithm.
CN201210439927.6A 2012-11-07 2012-11-07 Method and system for adjusting browser parameters Active CN103810042B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210439927.6A CN103810042B (en) 2012-11-07 2012-11-07 Method and system for adjusting browser parameters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210439927.6A CN103810042B (en) 2012-11-07 2012-11-07 Method and system for adjusting browser parameters

Publications (2)

Publication Number Publication Date
CN103810042A CN103810042A (en) 2014-05-21
CN103810042B true CN103810042B (en) 2017-04-26

Family

ID=50706851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210439927.6A Active CN103810042B (en) 2012-11-07 2012-11-07 Method and system for adjusting browser parameters

Country Status (1)

Country Link
CN (1) CN103810042B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996101A (en) * 2009-08-13 2011-03-30 北京搜狗科技发展有限公司 Method and device for optimizing application program performance
CN102073545A (en) * 2011-02-28 2011-05-25 中国人民解放军国防科学技术大学 Process scheduling method and device for preventing screen jam of user interface in operating system
CN102331994A (en) * 2011-06-24 2012-01-25 中兴通讯股份有限公司 Realization method of embedded system page special effect and embedded system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996101A (en) * 2009-08-13 2011-03-30 北京搜狗科技发展有限公司 Method and device for optimizing application program performance
CN102073545A (en) * 2011-02-28 2011-05-25 中国人民解放军国防科学技术大学 Process scheduling method and device for preventing screen jam of user interface in operating system
CN102331994A (en) * 2011-06-24 2012-01-25 中兴通讯股份有限公司 Realization method of embedded system page special effect and embedded system

Also Published As

Publication number Publication date
CN103810042A (en) 2014-05-21

Similar Documents

Publication Publication Date Title
WO2015172725A1 (en) Method and device for adjusting hardware refresh rate of terminal
CN106095052B (en) Control the method and device of CPU power consumption
TWI634420B (en) Terminal device and operating method thereof
CN104932659B (en) Image display method and display system
TWI489257B (en) Electronic device with power management mechanism and power management method thereof
CN103475790B (en) A kind of intelligent mobile terminal power consumption management
CN107451979B (en) Image processing method, device and storage medium
CN109345992A (en) The method of adjustment of electronic device and screen refresh frequency
CN103151019B (en) Control method and control device of display refresh rate of mobile terminal
CN106445151B (en) A kind of control method and terminal of screen luminance of terminal
US20080143728A1 (en) System, method and computer program product for adjusting a refresh rate of a display
EP2824911A1 (en) Mobile terminal video display method and device
CN108061426A (en) Control method, refrigerator and the computer readable storage medium of refrigerator
CN107729216B (en) Application program control method and device, storage medium and electronic equipment
US10482843B2 (en) Selective reduction of blue light in a display frame
CN102592555A (en) Regulating circuit and regulating method capable of reducing power consumption of screen
CN104571990A (en) Method and system for adjusting operating state of display screen
WO2020078172A1 (en) Frame rate control method, device, terminal and storage medium
WO2019052524A1 (en) View rendering method and apparatus, medium, and intelligent terminal
CN107844187A (en) Power consumption management method, device and electronic equipment
CN112333556B (en) Control method for monitoring video transmission bandwidth, terminal equipment and readable storage medium
CN100493134C (en) Method and system for processing image
CN109669740A (en) List loading method, device, equipment and computer readable storage medium
WO2023061096A1 (en) Method and apparatus for adjusting refresh frame rate of display screen, and processor, chip and terminal
CN104808793A (en) Method and device for adjusting fonts of electronic book and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant