CN104461741B - Graphics device interface based computing device optimizing method and device - Google Patents

Graphics device interface based computing device optimizing method and device Download PDF

Info

Publication number
CN104461741B
CN104461741B CN201410778851.9A CN201410778851A CN104461741B CN 104461741 B CN104461741 B CN 104461741B CN 201410778851 A CN201410778851 A CN 201410778851A CN 104461741 B CN104461741 B CN 104461741B
Authority
CN
China
Prior art keywords
gdi
optimization
current
occupation information
resource occupation
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
CN201410778851.9A
Other languages
Chinese (zh)
Other versions
CN104461741A (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410778851.9A priority Critical patent/CN104461741B/en
Publication of CN104461741A publication Critical patent/CN104461741A/en
Application granted granted Critical
Publication of CN104461741B publication Critical patent/CN104461741B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a graphics device interface based computing device optimizing method and device. The optimizing device comprises a process analysis unit, a strategy determination unit, a GDI (graphics device interface) range searching unit and an optimizing unit. The process analysis unit is used for acquiring an identifier of a process in a device, number of current GDI objects of the process and current resource occupation information of the process; the strategy determination unit is used for acquiring a resource allocation strategy corresponding to the identifier according to the identifier of the process; the GDI range searching unit is used for searching a GDI range corresponding to the current resource occupation information of the process from the resource allocation strategy according to the current resource occupation information of the process; the optimizing unit is used for optimizing the process or displaying optimization operation interfaces when the number of the current GDI objects of the process is out of the GDI range searched by the GDI range searching unit. By the optimizing device, normal operation of applications in the device can be guaranteed effectively, and user experience is improved.

Description

Computing device optimization method and device based on GDI
Technical field
The present invention relates to Internet technology, and in particular to a kind of computing device optimization method based on GDI and Device.
Background technology
GDI (Graphics Device Interface, abbreviation GDI) refers to the system that is responsible for and drawing journey Information between sequence is exchanged, and processes the images outputting of all Windows programs.
Under Windows operating system, the application program that the overwhelming majority possesses graphical interfaces all be unable to do without GDI, using GDI Numerous functions/object/the controls for being provided just can easily in screen, printer and output pattern on other output equipments, Text etc. is operated.The appearance of GDI make programmer without need be concerned about hardware device and device drives, it is possible to by the defeated of application program Go out to be converted into the output on hardware device, realize isolating for program developer and hardware device, greatly facilitate development.
Currently, an application program runs to the regular hour in equipment, it may appear that window is imperfect (flower screen), occurs Reporting an error for " required resource cannot being obtained ", now, if user opens explorer, in " checking " " alternative column ", adds Plus " GDI objects ", can be apparent from seeing, with the operation of program, GDI objects rapidly increase, when quantity reaches 9999 When, program window interface may occur imperfect phenomenon, now, if the scroll bar in dragging program will occur it is serious Hua Ping, or even an incomplete alert box can be also ejected, warning user " required resource cannot be obtained ".
Above-mentioned phenomenon is to create GDI objects in one or more application programs in Windows operating system, afterwards not There are the caused GDI resource leakages such as release or destruction, cause user to carry out the operation of follow-up any application, destruction is used Experience at family.
The content of the invention
For defect of the prior art, the invention provides a kind of computing device optimization side based on GDI Method and device, the method can effectively ensure that the normal operation of each application program in equipment, improve Consumer's Experience.
In a first aspect, the present invention provides a kind of optimization device based on GDI, including:
Process analysis unit, for current GDI GDI pairs of the mark and the process of process in acquisition equipment As number, the current resource occupation information of the process;
Policy determining unit, for the mark according to the process, obtains resource allocation strategy corresponding with the mark;
GDI range-based searching units, for according to the current resource occupation information of the process in the resource allocation strategy Search the corresponding GDI scopes of the current resource occupation information of the process;
Optimization unit, for the GDI searched beyond the GDI range-based searchings unit in the current GDI number of objects of the process During scope, optimization operation or displaying optimization operate interface are performed to the process.
Alternatively, optimize unit, be additionally operable to
In the current resource occupation information of the process that the process analysis unit is obtained in the resource allocation strategy During the maximum magnitude of the resource occupation information of the process of record, optimization operation is performed to the process.
Alternatively, described device also includes:
Tip element, for the showing interface prompt window in the equipment, the prompt window includes:For the process The information of middle GDI leakages, and/or, for the optimization operate interface optimized to the process for GDI leakages occur.
Alternatively, the optimization unit, is additionally operable to the triggering to the optimization operate interface according to user, and startup is entered to this Journey optimizes operation.
Alternatively, the resource allocation strategy is the resource of each process in the corresponding device downloaded from server in advance The strategy of configuration,
The resource allocation strategy includes:The resource occupation information of each process, and the corresponding GDI of the resource occupation information Scope.
Alternatively, policy determining unit specifically for
The mark of the process is sent into Cloud Server, so that Cloud Server is corresponding with the mark according to the mark determination Resource allocation strategy;
Receive the resource allocation strategy corresponding with the mark of the process that Cloud Server sends;
Wherein, the resource allocation strategy includes:The resource occupation information of each process, and resource occupation information correspondence GDI scopes.
Alternatively, the resource occupation information of the process is calculated according to following one or more information:
The memory usage of process, central processor CPU occupancy, disk input and output IO information, network throughput.
Alternatively, the optimization processing unit, specifically for
The GDI objects that the corresponding application program of current process is created are destroyed in release;
And/or,
The idle internal memory and junk data that the corresponding application program of release current process takes;
And/or,
Terminate current process.
Second aspect, the present invention also provides a kind of computing device optimization method based on GDI, including:
The mark of process and the current GDI GDI number of objects of the process, the process are current in acquisition equipment Resource occupation information;
According to the mark of the process, resource allocation strategy corresponding with the mark is obtained;
The current resource of the process is searched in the resource allocation strategy according to the current resource occupation information of the process The corresponding GDI scopes of occupied information;
If the current GDI number of objects of the process exceeds the GDI scopes, optimization operation is performed to the process or is shown Optimization operate interface.
Alternatively, if the current resource occupation information of process process of record in the resource allocation strategy The maximum magnitude of resource occupation information, then perform optimization operation to the process.
Alternatively, before performing optimization operation to the process, methods described also includes:
In the showing interface prompt window of the equipment, the prompt window includes:GDI is revealed in for pointing out the process Information, and/or, for the optimization operate interface that optimizes of process to there are GDI leakages.
Alternatively, the triggering according to user to the optimization operate interface, startup optimizes operation to the process.
Alternatively, the resource allocation strategy is the resource of each process in the corresponding device downloaded from server in advance The strategy of configuration,
The resource allocation strategy includes:The resource occupation information of each process, and the corresponding GDI of the resource occupation information Scope.
Alternatively, according to the mark of the process, it is determined that resource allocation strategy corresponding with the mark, including:
The mark of the process is sent into server, so that server determines money corresponding with the mark according to the mark Source configuration strategy;
The resource allocation strategy corresponding with the mark of the process that the reception server sends;
Wherein, the resource allocation strategy includes:The resource occupation information of each process, and resource occupation information correspondence GDI scopes.
Alternatively, the resource occupation information of the process is calculated according to following one or more information:
The memory usage of process, central processor CPU occupancy, disk input and output IO information, network throughput.
Alternatively, the startup optimizes treatment to the process includes:
The GDI objects that the corresponding application program of current process is created are destroyed in release;
And/or,
Idle internal memory and data cached or ephemeral data that the corresponding application program of release current process takes;
And/or,
Terminate current process.
As shown from the above technical solution, the present invention is provided computing device optimization method and dress based on GDI Put, the method determines that the resource of current process is matched somebody with somebody by the resource occupation information and GDI number of objects of each process in acquisition equipment Strategy is put, and then determines whether the GDI number of objects of the process belongs to the corresponding GDI models of the current resource occupation information of the process Enclose, if exceeding GDI scopes, the process is set and optimizes operation or soldier's optimization operate interface, to realize reminding user GDI needs the information of release, thus can effectively ensure that the normal operation of each application program of equipment, while improving user uses body Test.
Brief description of the drawings
The flow of the computing device optimization method based on GDI that Fig. 1 is provided for one embodiment of the invention is illustrated Figure;
The schematic diagram of the process list that Fig. 2 is provided for one embodiment of the invention;
The schematic diagram of the prompt window that Fig. 3 is provided for one embodiment of the invention;
Fig. 4 shows for the flow of the computing device optimization method based on GDI that another embodiment of the present invention is provided It is intended to;
The structural representation of the optimization device based on GDI that Fig. 5 is provided for one embodiment of the invention.
Specific embodiment
Below in conjunction with the accompanying drawings, the specific embodiment invented is further described.Following examples are only used for more clear Chu's ground explanation technical scheme, and can not be limited the scope of the invention with this.
Currently, each process is set with GDI object quotas in Windows systems, if in process running, the process The GDI objects for using then, cause Windows operating system correctly to show that other should beyond the GDI object quotas of setting With programs menu, and the menu of current process correspondence program cannot be normally shown, and then destroy Consumer's Experience.
Fig. 1 shows the flow of the computing device optimization method based on GDI that one embodiment of the invention is provided Schematic diagram, as shown in figure 1, the computing device optimization method based on GDI of the present embodiment is as described below.
The current resource of the current GDI number of objects of the mark and the process of process, the process in step 101, acquisition equipment Occupied information.
It will be appreciated that process refers to the program being currently running in equipment.The schematic diagram of process list as shown in Figure 2. In actual applications, all process lists that can obtain equipment by using application programming interfaces ActivityManager are (i.e. List including active schedule and inactive process), and obtain the mark of each process in the process list, and the process Information, the GDI number of objects of current shared system resource.
For example, in fig. 2, process identification (PID) can be the image name on the left of Fig. 2, and the name of the process can be also identified for other Claim, the present embodiment is not limited thereof.Or the mark of process can be indications for distinguishing different processes of selection etc. Deng.Fig. 2 right sides different lines correspond to the information of the current shared system resource of each process respectively.
For example the type of system resource can be shared by process, shown in Fig. 2 is current:The internal memory of the process is used The types such as rate, CPU occupation rates/utilization rate, magnetic disc i/o information, network throughput.
In a particular application, if the information of the current occupying system resources of process is multinomial (as above shown in polytype Fig. 2 Polytype), then the information of the current occupying system resources of the process can be obtained according to multinomial information weighting treatment.For example, every The information of the current occupying system resources of one process is calculated according to following one or more information:The internal memory of the process is used Rate, CPU occupation rates, disk I/O information, network throughput etc..
It should be noted that the current GDI number of objects of process is not calculated in the information of the current occupying system resources of the process.
Step 102, the mark according to the process, obtain resource allocation strategy corresponding with the mark.
For example, the resource allocation strategy in the step can be each in the corresponding device of download from server in advance The strategy of the resource distribution of process,
The resource allocation strategy may include:The resource occupation information of each process, and the resource occupation information is corresponding GDI scopes.Such as a kind of information of resource allocation strategy downloaded from server that table 1 is illustrated.
Server in the present embodiment can be Cloud Server.
Table 1
That is, in a particular application, equipment can be downloaded and device operating system environment phase to Cloud Server in advance Resource allocation strategy with each process, so that equipment can determine that user in current device checks according to the resource allocation strategy Whether the GDI number of objects that process is called is normal.Operating system environment at this may include hardware environment and software environment, such as interior Deposit, the information such as disk.Generally, Cloud Server can in real time obtain the operating system environment of any appliance.
In actual applications, Cloud Server can obtain the various operation systems of correspondence according to field feedback or monitoring information The resource allocation strategy of each process in system.Generally, the resource occupation of each process is believed in resource allocation strategy in Cloud Server Breath be also one in CPU occupation rates, the memory usage of process, disk I/O information, network throughput according to the process or The multinomial resource occupation information being calculated.
Certainly, Cloud Server can regularly update the resource allocation strategy in each operating system environment, and then equipment can be regular To the resource allocation strategy after Cloud Server down loading updating with the operating system environment information match of the equipment.
Step 103, searched in the resource allocation strategy according to the current resource occupation information of the process process work as The corresponding GDI scopes of preceding resource occupation information;
If the current GDI number of objects of step 104, the process exceeds the GDI scopes, optimization behaviour is performed to the process Make or displaying optimization operate interface.
Certainly, if the current GDI number of objects of the process can skip the process, without excellent without departing from the GDI scopes The use for changing the GDI number of objects of the process, i.e. current process belongs to normal range (NR).
Optimization operation in the present embodiment can be the GDI number of objects for discharging the process, or directly terminate the process.
The computing device optimization method based on GDI of the present embodiment, by each process in acquisition equipment Resource occupation information and GDI number of objects, determine the resource allocation strategy of current process, and then determine the GDI number of objects of the process Whether belong to the corresponding GDI scopes of the current resource occupation information of the process, if exceeding GDI scopes, the process is performed Optimization operation, to realize the information for reminding user GDI to need release, thus, in can effectively ensure that equipment each application program is being just Often operation, and user experience is improved simultaneously.
In addition, it should be noted that in abovementioned steps 103, if the current resource occupation information of process exceeds the money The maximum magnitude of the resource occupation information of the process recorded in the configuration strategy of source, then directly optimize operation to the process, For example terminate the process, or the GDI number of objects for discharging process occupancy.
If with reference to foregoing table 1 for example, being determined by obtaining the internal memory and disk I/O information of Mse.exe in equipment The resource occupation information of the Mse.exe is 92, then it is believed that the resource occupation information of the Mse.exe is beyond Mse.exe in table 1 The maximum magnitude of resource occupation information, it is process to be optimized that can directly set the process.
Thus, in actual applications, optimization operation being performed to process can be:Terminate the process, or discharge the process to account for With freememory, it is ensured that the normal operation of each application program in equipment.
Alternatively, after the step of performing optimization operation to process in abovementioned steps 104, optimization method may also include The step of not shown in following figures 104a:
Step 104a, the showing interface prompt window (as shown in Figure 3) in the equipment, the prompt window include:With The information of GDI leakages in the process is pointed out, and/or, the optimization operation for being optimized to the process for GDI leakages occur connects Mouth (first optimization operate interface in left side in such as Fig. 3);
And/or,
The information optimized for pointing out the process to need, and/or, it is excellent for being carried out to the process that needs are optimized The optimization operate interface (second optimization operate interface in left side in such as Fig. 3) of change.
In a particular application, if user triggers the key cleaning operation interface in Fig. 3, can also to the internal memory of system, The complete liquidations such as CPU occupation rates, process, garbage files.
That is, by carrying out resource analysis and the analysis of GDI number of objects to current some process in equipment, if should The resource occupation information of process is abnormal, or GDI number of objects is abnormal, issues the user with prompt message, such as passes through data The mode of frame or window issues the user with prompt message, so that user decides whether to optimize the process treatment.
If the corresponding optimization operate interface of user's triggering current process, can be according to user to the optimization operate interface Triggering, start to beyond GDI scopes process perform optimization operation.
For example, when the GDI number of objects of the process is abnormal, the corresponding application program wound of releasable or destruction current process The GDI objects built;
When the resource occupation information of the process is abnormal, it is idle that the corresponding application program of releasable current process takes Internal memory and junk data;For example, calling system internal memory cleaning function SetProcessWorkingSetSize clears up the process The internal memory of occupancy.
The GDI number of objects of the process is abnormal or during abnormal resource occupation information of the process, can terminate current Process, for example, closing the process by the way of killProcess functions are called.
The present embodiment is only illustrated to optimization processing, and the mode of operation and optimization processing of the optimization processing are not limited Content.For example, optimization processing may also include:Web page tag process or thread are closed, browser plug-in process is closed, is closed system Current operation process and/or service, releasing memory, cleaning system rubbish etc. in system.
Above-mentioned optimization method can effectively ensure that the normal operation of each application program in equipment, and raising user uses simultaneously Experience.
Fig. 4 shows the flow of the computing device optimization method based on GDI that one embodiment of the invention is provided Schematic diagram, as shown in figure 4, the computing device optimization method based on GDI of the present embodiment is as described below.
The current GDI number of objects of the mark and the process of each process, the process are current in step 401, acquisition equipment Resource occupation information.
In current device, each process is operated in the operating system of equipment, and takes a part of system of operating system Resource (such as memory usage, CPU occupation rates and magnetic disc i/o information).The information of the current shared system resource of acquisition process Can be that (including direct access is obtained, obtained by one or more given functions or variable by reading system record file Or by calculating indirect gain) or the statistics acquisition etc. come outside of the corresponding statistical function of designed, designed, the present embodiment is to this It is not restricted.
Step 402, the mark transmission server by the process, so that server determines and the mark according to the mark Corresponding resource allocation strategy.
The resource occupation information of each process can be by big in resource configuration strategy in the present embodiment in server What the statistics of amount was obtained meets the resource occupation information of process correspondence application program laws of use.Wherein, resource configuration plan The GDI number of objects of each process is also to meet process correspondence application program laws of use by what substantial amounts of statistics was obtained in slightly GDI number of objects.
Step 403, the resource allocation strategy corresponding with the mark of the process for receiving Cloud Server transmission.
Wherein, the resource allocation strategy includes:The resource occupation information of each process, and resource occupation information correspondence GDI scopes.
Step 404, searched in the resource allocation strategy according to the current resource occupation information of the process process work as The corresponding GDI scopes of preceding resource occupation information.
If the current GDI number of objects of step 405, the process exceeds the GDI scopes, it is to be optimized that the process is set Optimization mark.
Certainly, if the current GDI number of objects of the process can skip the process, without excellent without departing from the GDI scopes The use for changing the GDI number of objects of the process, i.e. current process belongs to normal range (NR).
Step 406, the showing interface prompt window (as shown in Figure 3) in the equipment, the prompt window include:For Prompting is provided with the information of GDI leakages in the process of optimization mark, and/or, for what is optimized to the process for GDI leakages occur Optimization operate interface (first optimization operate interface in left side in such as Fig. 3).
Certainly, in specific operation process, the prompt window may also include:For being carried out to the process that needs are optimized The optimization operate interface of optimization.The process that needs are optimized at this can be that the current resource occupation information of process exceeds the money The maximum magnitude of the resource occupation information of the process recorded in the configuration strategy of source.
Generally, the resource occupation information of each process can be a following information in equipment:
The memory usage of process, central processor CPU occupancy, disk input and output IO information.If the money of process When source occupied information is multinomial, information that can be multinomial to this is weighted treatment.
If step 407, the corresponding optimization operate interface of user's triggering current process, can be according to user to the optimization The triggering of operate interface, starts and performs optimization operation to the process for being provided with optimization mark.
For example, the GDI objects that release or the corresponding application program of destruction current process are created;And/or, discharge current process The idle internal memory and junk data that corresponding application program takes;And/or, terminate current process.
A kind of for internal memory and the Optimizing Flow example of GDI, the technical side of the specific displaying embodiment of the present invention is shown below Case optional technical characteristic in every respect:
Under Windows operating system, the process title for obtaining each process per second, memory usage and GDI number of objects, The memory usage 10% and GDI number of objects 10500 of such as process entitled " abc.exe ".Then, downloaded in Cloud Server The resource allocation strategy of process " abc.exe ", inquire corresponding to 8% to 12% memory usage it is corresponding normal GDI pairs As several scopes is 200 to 900, scope of the current GDI number of objects beyond regulation is judged, so as to process " abc.exe " Optimization mark is set.
It is subsequently assumed that prompting the user with user's triggering after the message that the GDI number of objects with " abc.exe " is 10500 Corresponding optimization operate interface, then clear up process occupancy internal memory and continue observation GDI number of objects whether be down to 900 with Under, if not then attempt release or destroy the GDI objects that the corresponding program of process " abc.exe " is created, and can not in operation Terminate the process in the case of causing mistake with can avoiding.
Optimization method in the present embodiment can effectively ensure that the normal operation of each application program in equipment, and improve simultaneously User experience.
Fig. 5 shows the structural representation of the optimization device based on GDI that one embodiment of the invention is provided, As shown in figure 5, the optimization device based on GDI of the present embodiment includes:Process analysis unit 51, strategy determine single Unit 52, GDI range-based searchings unit 53 and optimization flag setting unit 54;
Wherein, process analysis unit 51 is used for the mark and the current GDI number of objects of the process of process in acquisition equipment, should The current resource occupation information of process;
Policy determining unit 52 is used for the mark according to the process, obtains resource allocation strategy corresponding with the mark;
GDI range-based searchings unit 53 is used for according to the current resource occupation information of the process in the resource allocation strategy Search the corresponding GDI scopes of the current resource occupation information of the process;
Optimization unit 54 is used for the GDI searched beyond the GDI range-based searchings unit in the current GDI number of objects of the process During scope, optimization operation or displaying optimization operate interface are performed to the process.
Alternatively, optimization unit 54 is additionally operable to, in the current resource occupation of the process of the process analysis unit 51 acquisition During the maximum magnitude of the resource occupation information of the process that information is recorded in the resource allocation strategy, the process is performed Optimization operation.
In a kind of possible implementation, the optimization device in the present embodiment may also include the Tip element not shown in figure 55, the Tip element 55 is used for the showing interface prompt window in the equipment, and the prompt window includes:For pointing out this to enter The information of GDI leakages in journey, and/or, for the optimization operate interface optimized to the process for GDI leakages occur.
In the third possible implementation, optimize unit 56, be additionally operable to according to user to the optimization operate interface Triggering, startup operation is optimized to the process.For example, what release or the corresponding application program of destruction current process were created GDI objects;And/or, the idle internal memory and junk data that the corresponding application program of release current process takes;And/or, terminate Current process.
In the present embodiment, the resource allocation strategy can be in advance from server download corresponding device in it is each enter The strategy of the resource distribution of journey,
The resource allocation strategy includes:The resource occupation information of each process, and the corresponding GDI of the resource occupation information Scope.
In another embodiment, policy determining unit 52 can also be specifically for, and the mark of the process is sent into server, So that server determines resource allocation strategy corresponding with the mark according to the mark;And, the reception server send with The corresponding resource allocation strategy of mark of the process;
Wherein, the resource allocation strategy includes:The resource occupation information of each process, and resource occupation information correspondence GDI scopes.
For example, the resource occupation information of the process in the present embodiment is calculated according to following one or more information Arrive:
The memory usage of process, central processor CPU occupancy, disk input and output IO information, network throughput.
Additionally, the optimization device of the present embodiment can perform the flow in the embodiment of the method shown in foregoing Fig. 1 and Fig. 4, The present embodiment is not described in detail herein.
Optimization device in the present embodiment can effectively ensure that the normal operation of each application program in equipment, and improve simultaneously User experience.
The present invention illustrates that not limiting the above method is used for the operating systems such as iOS, Android by taking Windows systems as an example In.
In specification of the invention, numerous specific details are set forth.It is to be appreciated, however, that embodiments of the invention can be with Put into practice in the case of without these details.In some instances, known method, structure and skill is not been shown in detail Art, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that disclose and help understand or many in each inventive aspect to simplify the present invention Individual, in above to the description of exemplary embodiment of the invention, each feature of the invention is grouped together into single sometimes In embodiment, figure or descriptions thereof.It is intended in reflection is following however, should not explain the method for the disclosure:Want Seek the application claims features more more than the feature being expressly recited in each claim of protection.More precisely, such as As following claims reflect, inventive aspect is all features less than single embodiment disclosed above. Therefore, it then follows thus claims of specific embodiment are expressly incorporated in the specific embodiment, wherein each right will Itself is asked all as separate embodiments of the invention.
It will be understood by those skilled in the art that can adaptively be changed to the module in the equipment in embodiment And they are provided in one or more different equipment of the embodiment.Can the module or unit in embodiment or Component is combined into a module or unit or component, and can be divided into multiple submodule or subelement or subgroup in addition Part.At least some in except such feature and/or process or unit are mutually exclusive parts, can use any combinations To all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed any side All processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint right will Ask, make a summary and accompanying drawing) disclosed in each feature can the alternative features of or similar purpose identical, equivalent by offer replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection is appointed One of meaning mode can be used in any combination.
All parts embodiment of the invention can be realized with hardware, or be run with one or more processor Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) are come in the equipment for realizing a kind of browser terminal according to embodiments of the present invention Some or all parts some or all functions.The present invention is also implemented as performing side as described herein Some or all equipment or program of device (for example, computer program and computer program product) of method.It is such Realize that program of the invention can be stored on a computer-readable medium, or there can be the shape of one or more signal Formula.Such signal can be downloaded from internet website and obtained, or be provided on carrier signal, or with any other shape Formula is provided.
It should be noted that above-described embodiment the present invention will be described rather than limiting the invention, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol being located between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not Element listed in the claims or step.Word "a" or "an" before element is not excluded the presence of as multiple Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent Pipe has been described in detail with reference to foregoing embodiments to the present invention, it will be understood by those within the art that:Its according to The technical scheme described in foregoing embodiments can so be modified, or which part or all technical characteristic are entered Row equivalent;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology The scope of scheme, it all should cover in the middle of the scope of claim of the invention and specification.

Claims (10)

1. a kind of optimization device based on GDI, it is characterised in that including:
Process analysis unit, current GDI GDI pairs of mark and the process for obtaining process in computing device As the current resource occupation information of number, the process;
Policy determining unit, for the mark according to the process, obtains resource allocation strategy corresponding with the mark;Wherein, institute State resource allocation strategy be from server download match with the computing device operation system environments, and correspondence calculating set The strategy of the resource distribution of each process in standby;
GDI range-based searching units, for being searched in the resource allocation strategy according to the current resource occupation information of the process The corresponding GDI scopes of the current resource occupation information of the process;
Optimization unit, for the GDI scopes searched beyond the GDI range-based searchings unit in the current GDI number of objects of the process When, optimization operation or displaying optimization operate interface are performed to the process.
2. device according to claim 1, it is characterised in that optimization unit, is additionally operable to
Recorded in the resource allocation strategy in the current resource occupation information of the process that the process analysis unit is obtained The process resource occupation information maximum magnitude when, to the process perform optimization operation.
3. device according to claim 1 and 2, it is characterised in that described device also includes:
Tip element, for the showing interface prompt window in the computing device, the prompt window includes:For pointing out this The information of GDI leakages in process, and/or, for the optimization operate interface optimized to the process for GDI leakages occur.
4. device according to claim 3, it is characterised in that the optimization unit, is additionally operable to according to user to described excellent Change the triggering of operate interface, start the optimization operation to the process.
5. device according to claim 1 and 2, it is characterised in that
The resource allocation strategy includes:The resource occupation information of each process, and the corresponding GDI models of the resource occupation information Enclose.
6. a kind of computing device optimization method based on GDI, it is characterised in that including:
The mark and the current GDI GDI number of objects of the process, the process for obtaining process in computing device are current Resource occupation information;
According to the mark of the process, resource allocation strategy corresponding with the mark is obtained;Wherein, the resource allocation strategy be from That is downloaded in server matches with the computing device operation system environments, and in correspondence computing device each process resource The strategy of configuration;
The current resource occupation of the process is searched in the resource allocation strategy according to the current resource occupation information of the process The corresponding GDI scopes of information;
If the current GDI number of objects of the process exceeds the GDI scopes, optimization operation or displaying optimization are performed to the process Operate interface.
7. method according to claim 6, it is characterised in that if the current resource occupation information of process exceeds the money The maximum magnitude of the resource occupation information of the process recorded in the configuration strategy of source, then perform optimization operation to the process.
8. the method according to claim 6 or 7, it is characterised in that before optimization operation is performed to the process, methods described Also include:
In the showing interface prompt window of the computing device, the prompt window includes:GDI is revealed in for pointing out the process Information, and/or, for the optimization operate interface that optimizes of process to there are GDI leakages.
9. method according to claim 8, it is characterised in that the triggering according to user to the optimization operate interface, opens The dynamic optimization operation to the process.
10. the method according to claim 6 or 7, it is characterised in that
The resource allocation strategy includes:The resource occupation information of each process, and the corresponding GDI models of the resource occupation information Enclose.
CN201410778851.9A 2014-12-15 2014-12-15 Graphics device interface based computing device optimizing method and device Active CN104461741B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410778851.9A CN104461741B (en) 2014-12-15 2014-12-15 Graphics device interface based computing device optimizing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410778851.9A CN104461741B (en) 2014-12-15 2014-12-15 Graphics device interface based computing device optimizing method and device

Publications (2)

Publication Number Publication Date
CN104461741A CN104461741A (en) 2015-03-25
CN104461741B true CN104461741B (en) 2017-05-24

Family

ID=52907839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410778851.9A Active CN104461741B (en) 2014-12-15 2014-12-15 Graphics device interface based computing device optimizing method and device

Country Status (1)

Country Link
CN (1) CN104461741B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708605B (en) * 2015-07-14 2021-08-24 腾讯科技(深圳)有限公司 Method and device for detecting resource leakage
CN107203418B (en) * 2016-03-16 2021-02-02 斑马智行网络(香港)有限公司 Method and device for selecting resources according to system configuration
CN106095592B (en) * 2016-05-31 2021-08-24 Oppo广东移动通信有限公司 Foreground application program scene synchronization method, device and system
CN106095660B (en) * 2016-06-14 2019-03-08 百度在线网络技术(北京)有限公司 The quality control method and device of application

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883003A (en) * 2009-05-08 2010-11-10 华北电力大学 Mandatory running method of computer operating system
CN104199669A (en) * 2014-09-12 2014-12-10 北京奇虎科技有限公司 Method and device for managing application program processes

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103269456B (en) * 2013-04-18 2016-09-07 青岛海信宽带多媒体技术有限公司 In embedded IPTV set top box, application obtains the method and device of resource
CN103605480B (en) * 2013-10-29 2016-08-17 新浪网技术(中国)有限公司 Web server and disk resource access control method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883003A (en) * 2009-05-08 2010-11-10 华北电力大学 Mandatory running method of computer operating system
CN104199669A (en) * 2014-09-12 2014-12-10 北京奇虎科技有限公司 Method and device for managing application program processes

Also Published As

Publication number Publication date
CN104461741A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN103645914B (en) Software cleaning method and device
CN107911487B (en) Information pushing method and device, server and readable storage medium
CN107450941B (en) Automatic packaging method, device, storage medium and computer equipment
CN102045390B (en) What computer special-purpose software updated automatically configures
CN105144074B (en) It is stored using the block of hybrid memory device
CN106133698A (en) Framework for user model collapse report
CN106302008A (en) Data-updating method and device
US20160300076A1 (en) Privacy authority management method and device
CN104461741B (en) Graphics device interface based computing device optimizing method and device
US20130276124A1 (en) Systems, methods, apparatuses and computer program products for providing mobile device protection
CN107463400B (en) Hot updating method of mobile application and terminal equipment
CN105389191A (en) Software upgrading method, apparatus and system based on local area network
CN105653974B (en) A kind of document means of defence and device
US20160259315A1 (en) Field device commissioning system and method
CN107766310B (en) Grid cell editing method and device
CN110147241A (en) Program configures update method, electronic device, computer equipment and storage medium
US20130254524A1 (en) Automated configuration change authorization
CN108255628A (en) A kind of data processing method and device
CN116185754A (en) Data monitoring method, device, equipment, computer storage medium and program product
CN106445309A (en) Display method and device of application download entry
CN107147711A (en) Application service update method and device
CN106484459B (en) Flow control method and device applied to JavaScript
CN106878562A (en) Control the method and device of wifi functional switches
CN107526584B (en) Data access method and device
CN113132760B (en) Video data acquisition method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220719

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right