CN104834529A - Method and device for optimizing performance of application - Google Patents

Method and device for optimizing performance of application Download PDF

Info

Publication number
CN104834529A
CN104834529A CN201510271566.2A CN201510271566A CN104834529A CN 104834529 A CN104834529 A CN 104834529A CN 201510271566 A CN201510271566 A CN 201510271566A CN 104834529 A CN104834529 A CN 104834529A
Authority
CN
China
Prior art keywords
described
detected parameters
according
adjustment
optimisation strategy
Prior art date
Application number
CN201510271566.2A
Other languages
Chinese (zh)
Inventor
薛鹏
宋潇捷
孙晖
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to CN201510271566.2A priority Critical patent/CN104834529A/en
Publication of CN104834529A publication Critical patent/CN104834529A/en

Links

Abstract

The invention discloses a method for optimizing the performance of an application. The method comprises the steps that when an application program runs, according to detection identification in a detection strategy, values of detecting parameters indicated by the detection identification are obtained from the application program; according to the values of the detecting parameters, detecting parameters which need to be adjusted in the detecting parameters are determined; according to an optimization strategy, the detecting parameters which need to be adjusted are adjusted, and the performance optimization of the application is achieved. By means of the method for optimizing the performance of the application, the application performance can be optimized automatically when the application program runs, thereby the optimization efficiency and optimization effect are improved. A corresponding device is further provided.

Description

A kind of method of performance optimization of application and device

Technical field

The present invention relates to field of computer technology, be specifically related to a kind of method and device of performance optimization of application.

Background technology

Game needs timing optimization, and the method optimized of playing in prior art has the optimization method based on tool analysis, the optimization method based on device class and adjusts the optimization method of ginseng based on hardware.

Optimization method based on tool analysis refers to the performance adjustment device that exploitation external member provides, or by mobile device hardware monitoring tool, finds performance bottleneck and realize optimizing.

Optimization method based on device class refers to according to hardware configuration, and current main flow mobile device is divided into some classes, the game level of detail that each class is corresponding respective, realizes performance optimization by classification.

Optimization method based on hardware tune ginseng refers to the runtime parameter by adjusting hardware in real time, makes game under different scene, have better performance or lower consumption.

In prior art, based on the optimization method of tool analysis, can only common question be solved, and higher to optimization person's skill requirement; The data relied on based on the optimization method of device class are taken from current, therefore automatically cannot solve replacement problem, and industry does not have a kind of general mode classification, usually process more rough; Adjust the optimization method of ginseng in practical operation, have larger difficulty based on hardware, non-controllable risk is higher, and room for promotion is limited and may bring poor experience.In a word, optimization method of the prior art, optimization efficiency and effect of optimization are all very poor.

Summary of the invention

The embodiment of the present invention provides a kind of method of performance optimization of application, automatically can be optimized the performance of application, thus improve optimization efficiency and effect of optimization when application program is run.The embodiment of the present invention additionally provides corresponding device.

First aspect present invention provides a kind of method of performance optimization of application, comprising:

When application program is run, according to the detection mark in inspection policies, from described application program, obtain the described value detecting the detected parameters indicated by identifying;

According to the value of described detected parameters, determine the detected parameters needing in described detected parameters to adjust;

According to optimisation strategy, the described detected parameters of adjustment that needs is adjusted, realizes the performance optimization of described application.

Second aspect present invention provides a kind of device of performance optimization of application, comprising:

Acquiring unit, for when application program is run, according to the detection mark in inspection policies, obtains the described value detecting the detected parameters indicated by identifying from described application program;

Determining unit, for the value of described detected parameters obtained according to described acquiring unit, determines the detected parameters needing in described detected parameters to adjust;

Optimize unit, for according to optimisation strategy, the described detected parameters of adjustment that needs that described determining unit is determined is adjusted, realizes the performance optimization of described application.

The embodiment of the present invention adopts when application program is run, according to the detection mark in inspection policies, the described value detecting the detected parameters indicated by identifying is obtained from described application program, according to the value of described detected parameters, determine the detected parameters needing in described detected parameters to adjust, according to optimisation strategy, the described detected parameters of adjustment that needs is adjusted, realizes the performance optimization of described application.Cannot Automatic Optimal with the performance applied in prior art, and the difficulty optimized is compared more greatly, the method of the performance optimization of the application that the embodiment of the present invention provides, automatically can be optimized the performance of application when application program is run, thus improve optimization efficiency and effect of optimization.

Accompanying drawing explanation

In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those skilled in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.

Fig. 1 is an embodiment schematic diagram of the method for the performance optimization of applying in the embodiment of the present invention;

Fig. 2 is another embodiment schematic diagram of the method for the performance optimization of applying in the embodiment of the present invention;

Fig. 3 is an embodiment schematic diagram of the device of the performance optimization of applying in the embodiment of the present invention;

Fig. 4 is another embodiment schematic diagram of the device of the performance optimization of applying in the embodiment of the present invention;

Fig. 5 is another embodiment schematic diagram of the device of the performance optimization of applying in the embodiment of the present invention;

Fig. 6 is another embodiment schematic diagram of the device of the performance optimization of applying in the embodiment of the present invention.

Embodiment

The embodiment of the present invention provides a kind of method of performance optimization of application, automatically can be optimized the performance of application, thus improve optimization efficiency and effect of optimization when application program is run.The embodiment of the present invention additionally provides corresponding device.Below be described in detail respectively.

Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those skilled in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.

Consult Fig. 1, an embodiment of the method for the performance optimization of the application that the embodiment of the present invention provides comprises:

101, when application program is run, according to the detection mark in inspection policies, from described application program, the described value detecting the detected parameters indicated by identifying is obtained.

In the embodiment of the present invention, when can be understood as game running when application program is run, instant application is when running, and when other application run.Inspection policies can comprise needs the detection of detected parameters to identify, such as: central processing unit (CPU, Central Processing Unit) rate detection mark, the detection mark of graphic process unit (GPU, Graphic Processing Unit), the detection mark of internal memory or the detection mark etc. of other resources.The described value detecting the detected parameters indicated by identifying can be the speed of CPU, the speed, EMS memory occupation amount, frame per second etc. of GPU.

102, according to the value of described detected parameters, the detected parameters needing in described detected parameters to adjust is determined.

The value of detected parameters obtained can have multiple, but not necessarily each detected parameters needs adjustment, according to the size of value stating detected parameters, can determine the detected parameters needing adjustment.

103, according to optimisation strategy, the described detected parameters of adjustment that needs is adjusted, realizes the performance optimization of described application.

Optimisation strategy can be adjustment related hardware or some hardware parameters, the value of the detected parameters that needs are adjusted returns to the strategy of reasonable value, such as: can be when game running by calling the correlation function of engine, adjustment needs the parameter of adjustment, thus improves the performance of this game.

The embodiment of the present invention adopts when application program is run, according to the detection mark in inspection policies, the described value detecting the detected parameters indicated by identifying is obtained from described application program, according to the value of described detected parameters, determine the detected parameters needing in described detected parameters to adjust, according to optimisation strategy, the described detected parameters of adjustment that needs is adjusted, realizes the performance optimization of described application.Cannot Automatic Optimal with the performance applied in prior art, and the difficulty optimized is compared more greatly, the method of the performance optimization of the application that the embodiment of the present invention provides, automatically can be optimized the performance of application when application program is run, thus improve optimization efficiency and effect of optimization.

Alternatively, on the basis of embodiment corresponding to above-mentioned Fig. 1, in first embodiment of the method for the performance optimization of the application that the embodiment of the present invention provides, the described value according to described detected parameters, determine the detected parameters needing in described detected parameters to adjust, can comprise:

Threshold value corresponding to each detected parameters is obtained from described inspection policies;

The value of described detected parameters is greater than or less than the detected parameters of threshold value corresponding to described detected parameters, is defined as the detected parameters needing adjustment.

In the embodiment of the present invention, mark is detected except comprising in inspection policies, also comprise each threshold value corresponding to detected parameters detected indicated by mark, the corresponding relation detecting the mark threshold value corresponding with indicated detected parameters in inspection policies can be consulted table 1 and understand.

Detect mark Threshold value The mark of frame per second 15 frames/second The mark of CPU speed 100bit/s The mark of memory usage 50% The mark of GPU speed 50bit/s

Suppose that frame per second, CPU speed and GPU speed are defined as the parameter of needs adjustment when being less than corresponding threshold value, when memory usage is greater than corresponding threshold value, be defined as the parameter of needs adjustment.Then can determine which detected parameters is the detected parameters needing adjustment according to the value of the frame per second obtained, the value of CPU speed, the value of memory usage, the value of GPU speed.

Certainly, several being described just enumerated by table 1, and detection in fact in inspection policies mark can have a lot of, and each detections mark can a correspondence threshold value, and this place does not repeat one by one.

Alternatively, on the basis of embodiment corresponding to above-mentioned Fig. 1 or first embodiment, in second embodiment of the method for the performance optimization of the application that the embodiment of the present invention provides, described according to optimisation strategy, the described detected parameters of adjustment that needs is adjusted, realize the performance optimization of described application, can comprise:

According to detecting the corresponding relation of mark with optimisation strategy, determine the described optimisation strategy needing the detected parameters of adjustment corresponding;

According to the optimisation strategy determined, by described need the value of detected parameters of adjustment adjust to described to need under the corresponding threshold value of the detected parameters of adjustment or on, realize the performance optimization of described application.

In the embodiment of the present invention, the corresponding optimisation strategy of mark meeting of frame per second, such as: when the frame per second obtained is 10 frames/second, threshold value corresponding to frame per second is 15 frames/second, then this optimisation strategy can be frame control strategy, such as: frame per second can be heightened by adjustment display performance parameter, frame per second is adjusted to 15 frames/on second, to optimize the performance of application.Certainly, if the occupancy of the internal memory obtained is 70%, then by cleaning internal memory rubbish, the occupancy of internal memory can be adjusted under 50%.

Alternatively, on the basis of embodiment corresponding to above-mentioned Fig. 1 or second embodiment, in 3rd embodiment of the method for the performance optimization of the application that the embodiment of the present invention provides, described according to detecting the corresponding relation of mark with optimisation strategy, determine the described optimisation strategy needing the detected parameters of adjustment corresponding, can comprise:

According to detecting the corresponding relation of mark with at least one optimisation strategy, determine described at least one optimisation strategy needing the detected parameters of adjustment corresponding;

The described optimisation strategy according to determining by described need the value of detected parameters of adjustment adjust to described to need under the corresponding threshold value of the detected parameters of adjustment or on, can comprise:

According at least one optimisation strategy described in determining, obtain a synthesizing evolutionary, and according to described synthesizing evolutionary by described need the value of the detected parameters of adjustment adjust to described to need under the corresponding threshold value of the detected parameters of adjustment or on.

In the embodiment of the present invention, one detect mark can corresponding one or more optimisation strategy, such as: the mark of frame per second can corresponding frame control strategy and animation particle strategy, after determining that frame per second needs adjustment, a comprehensive strategic can be determined, such as: display performance parameter and animation effect parameter can be adjusted to improve frame per second according to frame control strategy and animation particle plan.

Alternatively, on the basis of embodiment corresponding to above-mentioned Fig. 1 or first embodiment, in 4th embodiment of the method for the performance optimization of the application that the embodiment of the present invention provides, described according to the detection mark in inspection policies, obtain the value of the detected parameters indicated by described detection mark from described application program before, described method can also comprise:

When determining that described application program did not load inspection policies, then load described inspection policies;

Described according to optimisation strategy, before adjusting the detected parameters of described needs adjustment, described method also comprises:

When determining that described application program did not load optimisation strategy, then load described optimisation strategy.

In the embodiment of the present invention, after application program launching runs, inspection policies and optimisation strategy might not use before, if do not used, then needed to load this inspection policies and optimisation strategy.

Consult Fig. 2, another embodiment of the method for the performance optimization of the application that the embodiment of the present invention provides comprises:

Strategy Development personnel can develop a set of inspection policies and a set of optimisation strategy, inspection policies can with the form record of inspection policies file set, inspection policies file set can comprise the inspection policies of system default and self-defining inspection policies, and the inspection policies of system default and self-defining inspection policies comprise CPU all respectively and detect file, GPU detection file and internal memory detection file and related resource file.Inspection policies file set eventually compiles to be packaged as and detects storehouse, during for game running, as Fig. 2 step one.

Optimisation strategy also can with the form record of optimisation strategy file set, optimisation strategy file set can comprise that resource loads strategy, resource format strategy, plays up mass measurement, physical simulation strategy, animation particle strategy, CPU use the multiple strategies such as the tactful and self-defined strategy of strategy, frame control strategy, at many levels details (LOD, Levels of Detail).These strategy files can call the correlation function of engine when game running, game performance is improved by adjustment parameter, self-defined strategy is also supported in application, but need additionally to make correlation function in game, these files are packaged as optimisation strategy storehouse together, strategy file and detection file have ID mapping relations, and namely testing result needs for a certain or multiple optimisation strategy, as Fig. 2 step 2.

In Fig. 2 step 3:

111, during game running, start detection.

112, determining whether there is inspection policies, performing step 115 when there is inspection policies, when there is not inspection policies, performing step 113.

113, call inspection policies storehouse, from inspection policies storehouse, transfer inspection policies.

114, the inspection policies transferred is exported.

115, inspection policies is kept in local Test database.

116, from optimisation strategy storehouse, optimisation strategy is obtained.

117, optimization is completed.

Cannot Automatic Optimal with the performance applied in prior art, and the difficulty optimized is compared more greatly, the method of the performance optimization of the application that the embodiment of the present invention provides, automatically can be optimized the performance of application when application program is run, thus improve optimization efficiency and effect of optimization.

The device of the performance optimization of the application that the embodiment of the present invention provides can be the terminal such as mobile phone, computer.

Consult Fig. 3, an embodiment of the device 20 of the performance optimization of the application that the embodiment of the present invention provides comprises:

Acquiring unit 201, for when application program is run, according to the detection mark in inspection policies, obtains the described value detecting the detected parameters indicated by identifying from described application program;

Determining unit 202, for the value of the described detected parameters according to described acquiring unit 201 acquisition, determines the detected parameters needing in described detected parameters to adjust;

Optimize unit 203, for according to optimisation strategy, the described detected parameters of adjustment that needs that described determining unit 202 is determined is adjusted, realizes the performance optimization of described application.

In the embodiment of the present invention, acquiring unit 201, when application program is run, according to the detection mark in inspection policies, obtains the described value detecting the detected parameters indicated by identifying from described application program; The value of the described detected parameters that determining unit 202 obtains according to described acquiring unit 201, determines the detected parameters needing in described detected parameters to adjust; Optimize unit 203 according to optimisation strategy, the described detected parameters of adjustment that needs that described determining unit 202 is determined is adjusted, realizes the performance optimization of described application.Cannot Automatic Optimal with the performance applied in prior art, and the difficulty optimized is compared more greatly, the device of the performance optimization of the application that the embodiment of the present invention provides, automatically can be optimized the performance of application when application program is run, thus improve optimization efficiency and effect of optimization.

Alternatively, on the basis of embodiment corresponding to above-mentioned Fig. 3, in first embodiment of the device 20 of the performance optimization of the application that the embodiment of the present invention provides,

Described determining unit 202, for obtaining threshold value corresponding to each detected parameters from described inspection policies, is greater than or less than the detected parameters of threshold value corresponding to described detected parameters by the value of described detected parameters, be defined as the detected parameters needing adjustment.

In the embodiment of the present invention, mark is detected except comprising in inspection policies, also comprise each threshold value corresponding to detected parameters detected indicated by mark, the description that the corresponding relation detecting the mark threshold value corresponding with indicated detected parameters in inspection policies can consult table 1 and table 1 part is understood.

Alternatively, on the basis of embodiment corresponding to above-mentioned Fig. 3 or first embodiment, consult Fig. 4, in second embodiment of the device 20 of the performance optimization of the application that the embodiment of the present invention provides, described optimization unit comprises:

Determining subelement 2031, for according to detecting the corresponding relation of mark with optimisation strategy, determining the described optimisation strategy needing the detected parameters of adjustment corresponding;

Optimize subelement 2032, for determining according to described the optimisation strategy that subelement 2031 is determined, by described need the value of detected parameters of adjustment adjust to described to need under the corresponding threshold value of the detected parameters of adjustment or on, realize the performance optimization of described application.

In the embodiment of the present invention, the corresponding optimisation strategy of mark meeting of frame per second, such as: when the frame per second obtained is 10 frames/second, threshold value corresponding to frame per second is 15 frames/second, then this optimisation strategy can be frame control strategy, such as: frame per second can be heightened by adjustment display performance parameter, frame per second is adjusted to 15 frames/on second, to optimize the performance of application.Certainly, if the occupancy of the internal memory obtained is 70%, then by cleaning internal memory rubbish, the occupancy of internal memory can be adjusted under 50%.

Alternatively, on the basis of embodiment corresponding to above-mentioned Fig. 3 or second embodiment, consult Fig. 4, in the 3rd embodiment of the device 20 of the performance optimization of the application that the embodiment of the present invention provides,

Describedly determining subelement 2031, for according to detecting the corresponding relation of mark with at least one optimisation strategy, determining described at least one optimisation strategy needing the detected parameters of adjustment corresponding;

Described optimization subelement 2032, for according at least one optimisation strategy described in determining, obtain a synthesizing evolutionary, and according to described synthesizing evolutionary by described need the value of detected parameters of adjustment adjust to described to need under the corresponding threshold value of the detected parameters of adjustment or on.

In the embodiment of the present invention, one detect mark can corresponding one or more optimisation strategy, such as: the mark of frame per second can corresponding frame control strategy and animation particle strategy, after determining that frame per second needs adjustment, a comprehensive strategic can be determined, such as: display performance parameter and animation effect parameter can be adjusted to improve frame per second according to frame control strategy and animation particle plan.

Alternatively, on the basis of embodiment corresponding to above-mentioned Fig. 3 or first embodiment, consult Fig. 5, in second embodiment of the device 20 of the performance optimization of the application that the embodiment of the present invention provides,

Described device also comprises:

First adds subelements, for identifying according to the detection in inspection policies at described acquiring unit, obtain the value of the detected parameters indicated by described detection mark from described application program before, when determining that described application program did not load inspection policies, then load described inspection policies;

Second adds subelements, at described optimization unit according to optimisation strategy, to described need adjustment detected parameters adjust before, when determining that described application program did not load optimisation strategy, then load described optimisation strategy.

In the embodiment of the present invention, after application program launching runs, inspection policies and optimisation strategy might not use before, if do not used, then needed to load this inspection policies and optimisation strategy.

The embodiment of the present invention additionally provides the device of the performance optimization of another kind of application, the device of the performance optimization of this application can be the device needing arbitrarily to carry out application performance optimization, such as terminal, server, robot etc., for terminal: as shown in Figure 6, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to embodiment of the present invention method part.This terminal can for comprising mobile phone, panel computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal), the terminal device arbitrarily such as vehicle-mounted computer, take terminal as mobile phone be example:

Shown in Fig. 6 is the block diagram of the part-structure of the mobile phone relevant to the terminal that the embodiment of the present invention provides.With reference to figure 6, mobile phone comprises: radio frequency (Radio Frequency, RF) parts such as circuit 810, storer 820, input block 830, display unit 840, sensor 850, voicefrequency circuit 860, Wireless Fidelity (wirelessfidelity, WiFi) module 870, processor 880 and power supply 890.It will be understood by those skilled in the art that the handset structure shown in Fig. 6 does not form the restriction to mobile phone, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.

Concrete introduction is carried out below in conjunction with Fig. 6 each component parts to mobile phone:

RF circuit 810 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, process to processor 880; In addition, the up data of design are sent to base station.Usually, RF circuit includes but not limited to antenna, at least one amplifier, transceiver, coupling mechanism, low noise amplifier (Low Noise Amplifier, LNA), diplexer etc.In addition, RF circuit 80 can also by radio communication and network and other devices communicatings.Above-mentioned radio communication can use arbitrary communication standard or agreement, include but not limited to global system for mobile communications (Global System ofMobile communication, GSM), general packet radio service (General Packet RadioService, GPRS), CDMA (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA) (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (LongTerm Evolution, LTE), Email, Short Message Service (Short Messaging Service, SMS) etc.

Storer 820 can be used for storing software program and module, and processor 880 is stored in software program and the module of storer 820 by running, thus performs various function application and the data processing of mobile phone.Storer 820 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of mobile phone.In addition, storer 820 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.

Input block 830 can be used for the numeral or the character information that receive input, and generation arranges with the user of mobile phone 800 and function controls the input of relevant key signals.Particularly, input block 830 can comprise contact panel 831 and other input equipments 832.Contact panel 831, also referred to as touch-screen, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on contact panel 831 or near contact panel 831 such as finger, stylus) thereon, and drive corresponding coupling arrangement according to the formula preset.Optionally, contact panel 831 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 880, and the order that energy receiving processor 880 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize contact panel 831.Except contact panel 831, input block 830 can also comprise other input equipments 832.Particularly, other input equipments 832 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, control lever etc.

Display unit 840 can be used for the various menus showing information or the information being supplied to user and the mobile phone inputted by user.Display unit 840 can comprise display panel 841, optionally, the forms such as liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-EmittingDiode, OLED) can be adopted to configure display panel 841.Further, contact panel 831 can cover display panel 841, when contact panel 831 detects thereon or after neighbouring touch operation, send processor 880 to determine the type of touch event, on display panel 841, provide corresponding vision to export with preprocessor 880 according to the type of touch event.Although in figure 6, contact panel 831 and display panel 841 be as two independently parts to realize input and the input function of mobile phone, but in certain embodiments, can by integrated to contact panel 831 and display panel 841 and realize the input and output function of mobile phone.

Mobile phone 800 also can comprise at least one sensor 850, such as optical sensor, motion sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display panel 841, proximity transducer when mobile phone moves in one's ear, can cut out display panel 841 and/or backlight.As the one of motion sensor, accelerometer sensor can detect the size of all directions (are generally three axles) acceleration, size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as passometer, knock) etc.; As for mobile phone also other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.

Voicefrequency circuit 860, loudspeaker 861, microphone 862 can provide the audio interface between user and mobile phone.Voicefrequency circuit 860 can by receive voice data conversion after electric signal, be transferred to loudspeaker 861, by loudspeaker 861 be converted to voice signal export; On the other hand, the voice signal of collection is converted to electric signal by microphone 862, voice data is converted to after being received by voicefrequency circuit 860, after again voice data output processor 880 being processed, through RF circuit 810 to send to such as another mobile phone, or export voice data to storer 820 to process further.

WiFi belongs to short range wireless transmission technology, and mobile phone can help user to send and receive e-mail by WiFi module 870, browse webpage and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Fig. 6 shows WiFi module 870, be understandable that, it does not belong to must forming of mobile phone 800, can omit in the scope of essence not changing invention as required completely.

Processor 880 is control centers of mobile phone, utilize the various piece of various interface and the whole mobile phone of connection, software program in storer 820 and/or module is stored in by running or performing, and call the data be stored in storer 820, perform various function and the process data of mobile phone, thus integral monitoring is carried out to mobile phone.Optionally, processor 880 can comprise one or more processing unit; Preferably, processor 880 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 880.

Mobile phone 800 also comprises the power supply 890 (such as battery) of powering to all parts, preferably, power supply can be connected with processor 880 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.

Although not shown, mobile phone 800 can also comprise camera, bluetooth module etc., does not repeat them here.

In embodiments of the present invention, the processor 880 included by this terminal also has following functions:

When application program is run, according to the detection mark in inspection policies, from described application program, obtain the described value detecting the detected parameters indicated by identifying;

According to the value of described detected parameters, determine the detected parameters needing in described detected parameters to adjust;

According to optimisation strategy, the described detected parameters of adjustment that needs is adjusted, realizes the performance optimization of described application.

Above embodiment, cannot Automatic Optimal with the performance applied in prior art, and the difficulty optimized is compared more greatly, the method of the performance optimization of the application that the embodiment of the present invention provides, automatically can be optimized the performance of application when application program is run, thus improve optimization efficiency and effect of optimization.

Alternatively, the described value according to described detected parameters, determine the detected parameters needing in described detected parameters to adjust, comprising:

Threshold value corresponding to each detected parameters is obtained from described inspection policies;

The value of described detected parameters is greater than or less than the detected parameters of threshold value corresponding to described detected parameters, is defined as the detected parameters needing adjustment.

In the embodiment of the present invention, mark is detected except comprising in inspection policies, also comprise each threshold value corresponding to detected parameters detected indicated by mark, the description that the corresponding relation detecting the mark threshold value corresponding with indicated detected parameters in inspection policies can consult table 1 and table 1 part is understood.

Described according to optimisation strategy, the described detected parameters of adjustment that needs is adjusted, realizes the performance optimization of described application, can comprise:

According to detecting the corresponding relation of mark with optimisation strategy, determine the described optimisation strategy needing the detected parameters of adjustment corresponding;

According to the optimisation strategy determined, by described need the value of detected parameters of adjustment adjust to described to need under the corresponding threshold value of the detected parameters of adjustment or on, realize the performance optimization of described application.

In the embodiment of the present invention, the corresponding optimisation strategy of mark meeting of frame per second, such as: when the frame per second obtained is 10 frames/second, threshold value corresponding to frame per second is 15 frames/second, then this optimisation strategy can be frame control strategy, such as: frame per second can be heightened by adjustment display performance parameter, frame per second is adjusted to 15 frames/on second, to optimize the performance of application.Certainly, if the occupancy of the internal memory obtained is 70%, then by cleaning internal memory rubbish, the occupancy of internal memory can be adjusted under 50%.

Alternatively, described according to detecting the corresponding relation of mark with optimisation strategy, determine the described optimisation strategy needing the detected parameters of adjustment corresponding, can comprise:

According to detecting the corresponding relation of mark with at least one optimisation strategy, determine described at least one optimisation strategy needing the detected parameters of adjustment corresponding;

The described optimisation strategy according to determining by described need the value of detected parameters of adjustment adjust to described to need under the corresponding threshold value of the detected parameters of adjustment or on, can comprise:

According at least one optimisation strategy described in determining, obtain a synthesizing evolutionary, and according to described synthesizing evolutionary by described need the value of the detected parameters of adjustment adjust to described to need under the corresponding threshold value of the detected parameters of adjustment or on.

In the embodiment of the present invention, one detect mark can corresponding one or more optimisation strategy, such as: the mark of frame per second can corresponding frame control strategy and animation particle strategy, after determining that frame per second needs adjustment, a comprehensive strategic can be determined, such as: display performance parameter and animation effect parameter can be adjusted to improve frame per second according to frame control strategy and animation particle plan.

Alternatively, described method can also comprise:

When determining that described application program did not load inspection policies, then load described inspection policies;

Described according to optimisation strategy, before adjusting the detected parameters of described needs adjustment, described method also comprises:

When determining that described application program did not load optimisation strategy, then load described optimisation strategy.

In the embodiment of the present invention, after application program launching runs, inspection policies and optimisation strategy might not use before, if do not used, then needed to load this inspection policies and optimisation strategy.

One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is that the hardware that can carry out instruction relevant by program has come, this program can be stored in a computer-readable recording medium, and storage medium can comprise: ROM, RAM, disk or CD etc.

Above the method for the performance optimization of the application that the embodiment of the present invention provides and device are described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. a method for the performance optimization of application, is characterized in that, comprising:
When application program is run, according to the detection mark in inspection policies, from described application program, obtain the described value detecting the detected parameters indicated by identifying;
According to the value of described detected parameters, determine the detected parameters needing in described detected parameters to adjust;
According to optimisation strategy, the described detected parameters of adjustment that needs is adjusted, realizes the performance optimization of described application.
2. method according to claim 1, is characterized in that, the described value according to described detected parameters, determines the detected parameters needing in described detected parameters to adjust, comprising:
Threshold value corresponding to each detected parameters is obtained from described inspection policies;
The value of described detected parameters is greater than or less than the detected parameters of threshold value corresponding to described detected parameters, is defined as the detected parameters needing adjustment.
3. method according to claim 1 and 2, is characterized in that, described according to optimisation strategy, adjusts, realize the performance optimization of described application, comprising the described detected parameters of adjustment that needs:
According to detecting the corresponding relation of mark with optimisation strategy, determine the described optimisation strategy needing the detected parameters of adjustment corresponding;
According to the optimisation strategy determined, by described need the value of detected parameters of adjustment adjust to described to need under the corresponding threshold value of the detected parameters of adjustment or on, realize the performance optimization of described application.
4. method according to claim 3, is characterized in that, described according to detecting the corresponding relation of mark with optimisation strategy, determines the described optimisation strategy needing the detected parameters of adjustment corresponding, comprising:
According to detecting the corresponding relation of mark with at least one optimisation strategy, determine described at least one optimisation strategy needing the detected parameters of adjustment corresponding;
The described optimisation strategy according to determining by described need the value of detected parameters of adjustment adjust to described to need under the corresponding threshold value of the detected parameters of adjustment or on, comprising:
According at least one optimisation strategy described in determining, obtain a synthesizing evolutionary, and according to described synthesizing evolutionary by described need the value of the detected parameters of adjustment adjust to described to need under the corresponding threshold value of the detected parameters of adjustment or on.
5. method according to claim 1 and 2, is characterized in that, described according to the detection mark in inspection policies, obtain the value of the detected parameters indicated by described detection mark from described application program before, described method also comprises:
When determining that described application program did not load inspection policies, then load described inspection policies;
Described according to optimisation strategy, before adjusting the detected parameters of described needs adjustment, described method also comprises:
When determining that described application program did not load optimisation strategy, then load described optimisation strategy.
6. a device for the performance optimization of application, is characterized in that, comprising:
Acquiring unit, for when application program is run, according to the detection mark in inspection policies, obtains the described value detecting the detected parameters indicated by identifying from described application program;
Determining unit, for the value of described detected parameters obtained according to described acquiring unit, determines the detected parameters needing in described detected parameters to adjust;
Optimize unit, for according to optimisation strategy, the described detected parameters of adjustment that needs that described determining unit is determined is adjusted, realizes the performance optimization of described application.
7. device according to claim 6, is characterized in that,
Described determining unit, for obtaining threshold value corresponding to each detected parameters from described inspection policies, is greater than or less than the detected parameters of threshold value corresponding to described detected parameters by the value of described detected parameters, be defined as the detected parameters needing adjustment.
8. the device according to claim 6 or 7, is characterized in that, described optimization unit comprises:
Determining subelement, for according to detecting the corresponding relation of mark with optimisation strategy, determining the described optimisation strategy needing the detected parameters of adjustment corresponding;
Optimize subelement, for determining according to described the optimisation strategy that subelement is determined, by described need the value of detected parameters of adjustment adjust to described to need under the corresponding threshold value of the detected parameters of adjustment or on, realize the performance optimization of described application.
9. device according to claim 8, is characterized in that,
Describedly determining subelement, for according to detecting the corresponding relation of mark with at least one optimisation strategy, determining described at least one optimisation strategy needing the detected parameters of adjustment corresponding;
Described optimization subelement, for according at least one optimisation strategy described in determining, obtain a synthesizing evolutionary, and according to described synthesizing evolutionary by described need the value of detected parameters of adjustment adjust to described to need under the corresponding threshold value of the detected parameters of adjustment or on.
10. the device according to claim 6 or 7, is characterized in that, described device also comprises:
First adds subelements, for identifying according to the detection in inspection policies at described acquiring unit, obtain the value of the detected parameters indicated by described detection mark from described application program before, when determining that described application program did not load inspection policies, then load described inspection policies;
Second adds subelements, at described optimization unit according to optimisation strategy, to described need adjustment detected parameters adjust before, when determining that described application program did not load optimisation strategy, then load described optimisation strategy.
CN201510271566.2A 2015-05-25 2015-05-25 Method and device for optimizing performance of application CN104834529A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510271566.2A CN104834529A (en) 2015-05-25 2015-05-25 Method and device for optimizing performance of application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510271566.2A CN104834529A (en) 2015-05-25 2015-05-25 Method and device for optimizing performance of application

Publications (1)

Publication Number Publication Date
CN104834529A true CN104834529A (en) 2015-08-12

Family

ID=53812439

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510271566.2A CN104834529A (en) 2015-05-25 2015-05-25 Method and device for optimizing performance of application

Country Status (1)

Country Link
CN (1) CN104834529A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105242973A (en) * 2015-11-10 2016-01-13 上海斐讯数据通信技术有限公司 Internal memory optimization method of Android system
CN105975273A (en) * 2016-05-04 2016-09-28 腾讯科技(深圳)有限公司 Particle animation realization method and system as well as purification process display method and system for optimization tool
CN106412276A (en) * 2016-09-26 2017-02-15 宇龙计算机通信科技(深圳)有限公司 Method for adjusting terminal parameters and mobile terminal
CN106445783A (en) * 2016-09-27 2017-02-22 北京金山安全软件有限公司 Method and device for detecting electronic equipment for detecting electronic equipment lag and electronic equipment
CN106802856A (en) * 2015-11-26 2017-06-06 腾讯科技(深圳)有限公司 The performance test methods of game application, server and game application client
CN107343083A (en) * 2017-06-01 2017-11-10 努比亚技术有限公司 One kind lifting game experiencing method, apparatus and computer-readable recording medium
CN107436812A (en) * 2017-07-28 2017-12-05 北京深思数盾科技股份有限公司 A kind of method and device of linux system performance optimization
CN107832142A (en) * 2017-10-11 2018-03-23 广东欧珀移动通信有限公司 The resource allocation method and equipment of application program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685412A (en) * 2012-09-19 2014-03-26 腾讯科技(深圳)有限公司 Method and system for optimizing performance of intelligent terminal
CN104536813A (en) * 2014-12-29 2015-04-22 北京奇虎科技有限公司 Accelerating method and device for computing equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685412A (en) * 2012-09-19 2014-03-26 腾讯科技(深圳)有限公司 Method and system for optimizing performance of intelligent terminal
CN104536813A (en) * 2014-12-29 2015-04-22 北京奇虎科技有限公司 Accelerating method and device for computing equipment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105242973A (en) * 2015-11-10 2016-01-13 上海斐讯数据通信技术有限公司 Internal memory optimization method of Android system
CN106802856B (en) * 2015-11-26 2020-02-04 腾讯科技(深圳)有限公司 Performance testing method of game application program, server and game application client
CN106802856A (en) * 2015-11-26 2017-06-06 腾讯科技(深圳)有限公司 The performance test methods of game application, server and game application client
CN105975273A (en) * 2016-05-04 2016-09-28 腾讯科技(深圳)有限公司 Particle animation realization method and system as well as purification process display method and system for optimization tool
CN105975273B (en) * 2016-05-04 2019-04-02 腾讯科技(深圳)有限公司 The realization of particle animation and the purification process methods of exhibiting and system of optimization tool
CN106412276A (en) * 2016-09-26 2017-02-15 宇龙计算机通信科技(深圳)有限公司 Method for adjusting terminal parameters and mobile terminal
CN106445783A (en) * 2016-09-27 2017-02-22 北京金山安全软件有限公司 Method and device for detecting electronic equipment for detecting electronic equipment lag and electronic equipment
CN107343083A (en) * 2017-06-01 2017-11-10 努比亚技术有限公司 One kind lifting game experiencing method, apparatus and computer-readable recording medium
CN107436812A (en) * 2017-07-28 2017-12-05 北京深思数盾科技股份有限公司 A kind of method and device of linux system performance optimization
CN107832142A (en) * 2017-10-11 2018-03-23 广东欧珀移动通信有限公司 The resource allocation method and equipment of application program

Similar Documents

Publication Publication Date Title
CN103327102B (en) A kind of method and apparatus recommending application program
CN104383681B (en) Method for controlling game program, device and mobile terminal
CN104869468A (en) Method and apparatus for displaying screen information
CN106453767B (en) Fall rear fault detection method and device
CN106020987A (en) Method and device for determining kernel running configurations in processor
CN103905885A (en) Video live broadcast method and device
CN103458305A (en) Video playing method and device, terminal device and server
CN103281687A (en) Network flow management method and device of double-card terminal
CN103473051B (en) A kind of method and apparatus for saving power consumption of terminal
CN104468679A (en) Geographic position sharing method and system and terminals
CN103578474A (en) Method, device and equipment for voice control
CN104243671B (en) Volume adjusting method, device and electronic equipment
CN104967896A (en) Method for displaying bulletscreen comment information, and apparatus thereof
CN104135500B (en) The method and system that prompting application upgrades
CN104462119B (en) Data migration method and device
CN103442330A (en) Position notification method and device
CN103414766A (en) Method, device and terminal equipment for installing application
CN103473011B (en) A kind of mobile terminal performance detection method, device and mobile terminal
CN103076917B (en) A kind of method of adjustment of display interface fluency and terminal
US10462764B2 (en) Method and apparatus for identifying pseudo base-station, and terminal
CN104965721A (en) Method and apparatus for updating an application
CN103473092B (en) A kind of download the processing method of application, device and terminal unit
CN103294515A (en) Method, device and system for acquiring application programs
CN104518953A (en) Message deleting method, instant messaging terminal and system
CN103327189A (en) Method and device for uploading, browsing and deleting pictures

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination