CN105204987B - Data capture method, device and electronic equipment - Google Patents

Data capture method, device and electronic equipment Download PDF

Info

Publication number
CN105204987B
CN105204987B CN201410293370.9A CN201410293370A CN105204987B CN 105204987 B CN105204987 B CN 105204987B CN 201410293370 A CN201410293370 A CN 201410293370A CN 105204987 B CN105204987 B CN 105204987B
Authority
CN
China
Prior art keywords
interface
performance parameter
application
measured
system performance
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
CN201410293370.9A
Other languages
Chinese (zh)
Other versions
CN105204987A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410293370.9A priority Critical patent/CN105204987B/en
Publication of CN105204987A publication Critical patent/CN105204987A/en
Application granted granted Critical
Publication of CN105204987B publication Critical patent/CN105204987B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a kind of data capture method, device and electronic equipments, system performance parameter acquisition interface is incorporated into application to be measured, in the performance test, the application to be measured is opened, determines that goal systems performance parameter corresponding with first functional function interface of application to be measured obtains interface;First functional function interface and the goal systems performance parameter is called to obtain interface acquisition system performance parameter corresponding with first function according to calling rule is preset.Realize and treat ranging sequence in electronic equipment unilateral side and be tested for the property, when the electronic equipment is mobile device, can be tested in the environment of not computer, to improve in mobile device using the convenience being tested for the property.

Description

Data capture method, device and electronic equipment
Technical field
The present invention relates to technical fields, more specifically to a kind of data capture method, device and electronic equipment.
Background technology
In order to the demands such as optimizing applied to the application in mobile device, need to be tested for the property application.Property Energy test refers to the process for the system performance parameter that mobile device is acquired in application operation.
Some current mobile devices, as based on IOS (by the Mobile operating system that Apple Inc. is iPhone exploitations) Mobile device, based on Windows Phone (Mobile operating system issued by Microsoft, abbreviation:WP mobile device etc.), is not propped up Hold off line test, that is, mobile device must connect computer and can just be tested for the property, therefore, current performance test tested person Condition limits, and cannot then be tested in the place of not computer, convenience is poor.
Therefore, how to improve to becoming urgent problem to be solved using the convenience being tested for the property in mobile device.
Invention content
The object of the present invention is to provide a kind of data capture method, device and electronic equipments, to improve in mobile device Using the convenience being tested for the property.
To achieve the above object, the present invention provides following technical solutions:
A kind of data capture method is applied to electronic equipment, the method includes:
Application to be measured is opened, system performance parameter has been incorporated into the application to be measured and has obtained interface;
Determine that goal systems performance parameter corresponding with first functional function interface of application to be measured obtains interface;
First functional function interface and goal systems performance parameter acquisition is called to connect according to calling rule is preset Mouthful, to obtain system performance parameter corresponding with first function of application to be measured.
The above method, it is preferred that include by the realization process that system performance parameter acquisition interface is incorporated into application to be measured::
System performance parameter acquisition interface is added in the engineering of the application to be measured;
The engineering of application to be measured to the system performance parameter is added is compiled, and generation has been incorporated into system performance parameter Obtain the application to be measured of interface.
The above method, it is preferred that determination target corresponding with first functional function interface of application to be measured System performance parameter obtains interface:
It is target system corresponding with first functional function interface to determine that scheduled system performance parameter obtains interface Performance parameter of uniting obtains interface.
The above method, it is preferred that determination target corresponding with first functional function interface of application to be measured System performance parameter obtains interface:
Determine that goal systems performance parameter acquisition corresponding with first functional function interface connects according to selection instruction Mouthful.
The above method, it is preferred that further include:
The acquired system performance parameter of display.
A kind of data acquisition facility, is applied to electronic equipment, and described device includes:
Opening module has been incorporated into system performance parameter and has obtained interface for opening application to be measured in the application to be measured;
Determining module, for determining goal systems performance corresponding with first functional function interface of application to be measured Parameter acquiring interface;
Calling module, for calling first functional function interface and the goal systems according to preset calling rule Performance parameter obtains interface, to obtain system performance parameter corresponding with first function of application to be measured.
Above-mentioned apparatus, it is preferred that further include:
It is incorporated into module, is incorporated into application to be measured for system performance parameter to be obtained interface, including:
Adding device, for system performance parameter acquisition interface to be added in the engineering of the application to be measured;
Compilation unit, for being compiled to the engineering for adding the application to be measured that the system performance parameter obtains interface, It generates and is incorporated into the application to be measured that system performance parameter obtains interface.
Above-mentioned apparatus, it is preferred that the determining module includes:
First determination unit is to be connect with first power function for determining that scheduled system performance parameter obtains interface The corresponding goal systems performance parameter of mouth obtains interface.
Above-mentioned apparatus, it is preferred that the determining module includes:
Second determination unit, for determining target system corresponding with first functional function interface according to selection instruction Performance parameter of uniting obtains interface.
Above-mentioned apparatus, it is preferred that further include:
Display module, for showing acquired system performance parameter.
A kind of electronic equipment, including the data acquisition facility described in any one as above.
It, will be systemic by above scheme it is found that a kind of data capture method, device and electronic equipment provided by the present application Can parameter acquiring interface be incorporated into application to be measured, in the performance test, open the application to be measured, determine with it is described to be measured The corresponding goal systems performance parameter of the first functional function interface of application obtains interface;Institute is called according to calling rule is preset It states the first functional function interface and the goal systems performance parameter obtains interface and obtains system corresponding with first function System performance parameter.It realizes and treats ranging sequence in electronic equipment unilateral side and be tested for the property, when the electronic equipment is that movement is set When standby, it can facilitate and test electronic equipment in the environment of not computer, to improve to answering in mobile device With the convenience being tested for the property.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of implementation flow chart of data capture method provided by the embodiments of the present application;
System performance parameter acquisition interface is incorporated into a kind of realization in application to be measured by Fig. 2 to be provided by the embodiments of the present application Flow chart;
Fig. 3 is another implementation flow chart of data capture method provided by the embodiments of the present application;
Fig. 4 is a kind of structural schematic diagram of data acquisition facility provided by the embodiments of the present application;
Fig. 5 is another structural schematic diagram of data acquisition facility provided by the embodiments of the present application;
Fig. 6 is a kind of structural schematic diagram of determining module provided by the embodiments of the present application;
Fig. 7 is another structural schematic diagram of determining module provided by the embodiments of the present application;
Fig. 8 is another structural schematic diagram of data acquisition facility provided by the embodiments of the present application;
Fig. 9 is another structural schematic diagram of data acquisition facility provided by the embodiments of the present application;
A kind of hardware architecture diagram of Figure 10 electronic equipments provided by the embodiments of the present application.
Term " first ", " second ", " third " " the 4th " in specification and claims and above-mentioned attached drawing etc. (if In the presence of) it is for distinguishing similar part, without being used to describe specific sequence or precedence.It should be appreciated that using in this way Data can be interchanged in the appropriate case, so that embodiments herein described herein can be in addition to illustrating herein Sequence in addition is implemented.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Data capture method and device provided by the embodiments of the present application are applied in electronic equipment, which can transport Row application to be measured.
In the embodiment of the present application, it is incorporated into system performance parameter in application to be measured and has obtained interface;
The system performance parameter obtains interface and can be set according to testing requirement, such as may include:Obtain network flow Interface;The interface of current residual electricity is obtained, the interface of CPU parameters is obtained, obtains the interface of internal storage data, obtains fluency Interface in any one or arbitrary combination, certainly, according to test needs, the system performance parameter obtains interface can be with Including other interfaces, such as obtain the interface of frame per second.
After system performance parameter acquisition interface is incorporated into application to be measured, be incorporated into system can be called in application to be measured Performance parameter obtains interface.
Referring to Fig. 1, Fig. 1 is a kind of implementation flow chart of data capture method provided by the embodiments of the present application, can wrap It includes:
Step S11:Application to be measured is opened, system performance parameter has been incorporated into the application to be measured and has obtained interface;
In the embodiment of the present application, before being tested for the property, system performance parameter acquisition interface is first incorporated into be measured answer In, therefore, during the application is implemented, it is to open to be incorporated into system performance parameter and obtain later to be measured of interface to open application to be measured Using.
Step S12:Determine goal systems performance parameter corresponding with first functional function interface of application to be measured Obtain interface;
First functional function interface can be the arbitrary with functional function interface of application to be measured, specifically call which function letter Number interface can be set according to testing requirement.
Step S13:First functional function interface and goal systems performance ginseng are called according to calling rule is preset Number obtains interface, to obtain system performance parameter corresponding with first function of application to be measured.
In the embodiment of the present application, call the first functional function interface to realize the first function of application to be measured, and call mesh Mark system performance parameter obtains interface, to obtain system performance parameter corresponding with first function of application to be measured.
In the embodiment of the present application, calling rule can be set according to testing requirement.Such as:
Can first invocation target system performance parameter obtain interface, obtain first group of system performance parameter;Then, the is called One functional function interface realizes the first function of application to be measured;Then invocation target system performance parameter obtains interface again, obtains Take second group of system performance parameter.So as to be analyzed application to be measured, optimized according to two groups of system performance parameters.
The first functional function interface can also be directly invoked, while according to preset calling period invocation target system performance Parameter acquiring interface, to obtain multigroup system performance parameter.So as to according to acquired multigroup system performance parameter pair Application to be measured is analyzed, is optimized.
Certainly, the embodiment of the present application is not limited to both the above method of calling, can also there is other method of calling, such as:
It can be by multiple first functional function interfaces be called simultaneously, while according to preset calling period invocation target system Performance parameter obtains interface, to obtain multigroup system performance parameter, so as to according to acquired multigroup system performance ginseng It is several that application to be measured is analyzed, is optimized.
System performance parameter acquisition interface is incorporated into application to be measured by a kind of data capture method provided by the embodiments of the present application In, in the performance test, the application to be measured is opened, determination is opposite with first functional function interface of application to be measured The goal systems performance parameter answered obtains interface;First functional function interface and the mesh are called according to calling rule is preset Mark system performance parameter obtains interface, to obtain system performance parameter corresponding with first function.It realizes in electronics Equipment unilateral side is treated survey application and is tested for the property, and when the electronic equipment is mobile device, can facilitate electronic equipment It is tested in the environment of not computer, to improve to applying the convenience being tested for the property in mobile device.
In addition, being answered to be measured since data capture method provided by the embodiments of the present application can be realized in electronic equipment unilateral side With being tested for the property, thus, during the test therefore electronic equipment only passes through the embodiment of the present application in discharge condition The data capture method of offer can acquire the power consumption data of electronic equipment.And in the prior art, due in connection computer In the process, electronic equipment is in charged state, and therefore, the prior art can not acquire the power consumption data of electronic equipment.
In above-described embodiment, it is preferred that system performance parameter acquisition interface is incorporated into a kind of realization stream in application to be measured Journey figure is as shown in Fig. 2, may include:
Step S21:System performance parameter acquisition interface is added in the engineering to be applied;
Step S22:The engineering of application to be tested to the system performance parameter is added is compiled, and generation, which has been incorporated into, is Performance parameter of uniting obtains the application to be measured of interface.
In above-described embodiment, it is preferred that the determination with it is described to be measured corresponding using the first functional function interface of journey Goal systems performance parameter interface may include:
It is target system corresponding with first functional function interface to determine that scheduled system performance parameter obtains interface Performance parameter of uniting obtains interface.
In the embodiment of the present application, it is to set in advance that goal systems performance parameter corresponding with the first power function, which obtains interface, It has been set that, so as to automatic according to preset system performance parameter acquisition interface and the correspondence of the first functional function interface Determine that goal systems performance parameter obtains interface, to realize the automated performance testing to application to be measured.
In above-described embodiment, it is preferred that the determination is corresponding with first functional function interface of application to be measured Goal systems performance parameter obtains interface:
Determine that goal systems performance parameter acquisition corresponding with first functional function interface connects according to selection instruction Mouthful.
It, can be by tester during the test according to testing requirement selection and first function in the embodiment of the present application The corresponding goal systems performance parameter of function interface obtains interface.
That is, in the embodiment of the present application, the option that system performance parameter obtains interface can be provided for tester, By tester, selection target system performance parameter obtains interface in option.
In above-described embodiment, it is preferred that on the basis of embodiment shown in Fig. 1, data provided by the embodiments of the present application obtain Another implementation flow chart of method is taken as shown in figure 3, can also include:
Step S31:The acquired system performance parameter of display.
In the embodiment of the present application, after obtaining system performance parameter, the system performance parameter of the acquisition is shown, To facilitate tester to be analyzed application to be measured, optimized according to system performance parameter.
Above-mentioned data capture method provided by the embodiments of the present application, can be realized by way of plug-in unit.
Corresponding with embodiment of the method, the embodiment of the present application also provides a kind of data acquisition facility, in the embodiment of the present application, It has been incorporated into system performance parameter in application to be measured and has obtained interface;
The system performance parameter obtains interface and can be set according to testing requirement, such as may include:Obtain network flow Interface;The interface of current residual electricity is obtained, the interface of CPU parameters is obtained, obtains the interface of internal storage data, obtains fluency Interface in any one or arbitrary combination, certainly, according to test needs, the system performance parameter obtains interface can be with Including other interfaces, such as obtain the interface of frame per second.
A kind of structural schematic diagram of data acquisition facility provided by the embodiments of the present application is as shown in figure 4, may include:
Opening module 41, determining module 42 and calling module 43;Wherein,
Opening module 41 has been incorporated into system performance parameter and has obtained interface for opening application to be measured in the application to be measured;
In the embodiment of the present application, before being tested for the property, system performance parameter acquisition interface is first incorporated into be measured answer In, therefore, during the application is implemented, it is to open to be incorporated into system performance parameter and obtain later to be measured of interface to open application to be measured Using.
Determining module 42 is for determining goal systems corresponding with first functional function interface of application to be measured It can parameter acquiring interface;
First functional function interface can be the arbitrary with functional function interface of application to be measured, specifically call which function letter Number interface can be set according to testing requirement.
Calling module 43 is used to call first functional function interface and the goal systems according to default calling rule Performance parameter obtains interface, to obtain system performance parameter corresponding with first function of application to be measured.
In the embodiment of the present application, call the first functional function interface to realize the first function of application to be measured, and call mesh Mark system performance parameter obtains interface, to obtain system performance parameter corresponding with first function of application to be measured.
In the embodiment of the present application, calling rule can be set according to testing requirement.Such as:
Can first invocation target system performance parameter obtain interface, obtain first group of system performance parameter;Then, the is called One functional function interface realizes the first function of application to be measured;Then invocation target system performance parameter obtains interface again, obtains Take second group of system performance parameter.So as to be analyzed application to be measured, optimized according to two groups of system performance parameters.
The first functional function interface can also be directly invoked, while according to preset calling period invocation target system performance Parameter acquiring interface, to obtain multigroup system performance parameter.So as to according to acquired multigroup system performance parameter pair Application to be measured is analyzed, is optimized.
Certainly, the embodiment of the present application is not limited to both the above calling rule, can also there is other calling rules, such as:
It can be by multiple first functional function interfaces be called simultaneously, while according to preset calling period invocation target system Performance parameter obtains interface, to obtain multigroup system performance parameter, so as to according to acquired multigroup system performance ginseng It is several that application to be measured is analyzed, is optimized.
System performance parameter acquisition interface is incorporated into application to be measured by a kind of data acquisition facility provided by the embodiments of the present application In, in the performance test, the application to be measured is opened, determination is opposite with first functional function interface of application to be measured The goal systems performance parameter answered obtains interface;First functional function interface and the mesh are called according to calling rule is preset Mark system performance parameter obtains interface, to obtain system performance parameter corresponding with first function.It realizes in electronics Equipment unilateral side is treated survey application and is tested for the property, and when the electronic equipment is mobile device, can facilitate electronic equipment It is moved in true environment and is tested, to improve to applying the convenience being tested for the property in mobile device.
In addition, being answered to be measured since data acquisition facility provided by the embodiments of the present application can be realized in electronic equipment unilateral side With being tested for the property, thus, the power supply unit (such as battery) of electronic equipment is only in discharge condition during the test, because This can acquire the power consumption data of electronic equipment by data acquisition facility provided by the embodiments of the present application.And the prior art In, since during connecting computer, electronic equipment is in charged state, therefore, the prior art can not acquire electronics and set Standby power consumption data.
On the basis of embodiment shown in Fig. 4, another structure of data acquisition facility provided by the embodiments of the present application is shown It is intended to as shown in figure 5, can also include:
It is incorporated into module 51, for system performance parameter acquisition interface to be incorporated into application to be measured, can specifically include:
Adding device 511, for system performance parameter acquisition interface to be added in the engineering of the application to be measured.
Compilation unit 512, for being compiled to the engineering for adding the application to be measured that the system performance parameter obtains interface It translates, generates and be incorporated into the application to be measured that system performance parameter obtains interface.
In above-described embodiment, it is preferred that a kind of structural schematic diagram of the determining module 42 is as shown in fig. 6, may include:
First determination unit 61 is and first power function for determining that scheduled system performance parameter obtains interface The corresponding goal systems performance parameter of interface obtains interface.
In the embodiment of the present application, it is to set in advance that goal systems performance parameter corresponding with the first power function, which obtains interface, It has been set that, so as to automatic according to preset system performance parameter acquisition interface and the correspondence of the first functional function interface Determine that goal systems performance parameter obtains interface, to realize the automated performance testing to application to be measured.
In above-described embodiment, it is preferred that another structural schematic diagram of the determining module 42 is as shown in fig. 7, can wrap It includes:
Second determination unit 71, for determining target corresponding with first functional function interface according to selection instruction System performance parameter obtains interface.
It, can be by tester during the test according to testing requirement selection and first function in the embodiment of the present application The corresponding goal systems performance parameter of function interface obtains interface.
That is, in the embodiment of the present application, the option that system performance parameter obtains interface can be provided for tester, By tester, selection target system performance parameter obtains interface in option.
On the basis of embodiment shown in Fig. 4, another structure of data acquisition facility provided by the embodiments of the present application is shown It is intended to as shown in figure 8, can also include:
Display module 81, for showing acquired system performance parameter.
In the embodiment of the present application, after obtaining system performance parameter, the system performance parameter of the acquisition is shown, To facilitate tester to be analyzed application to be measured, optimized according to system performance parameter.
Another structural schematic diagram of data acquisition facility provided by the embodiments of the present application is as shown in figure 9, may include:
At least one processor 91 and the memory 92 coupled at least one processor;Wherein,
At least one processor 91 is configured as:
Open application to be measured;Wherein, it has been incorporated into system performance parameter in the application to be measured and has obtained interface;
Determine that goal systems performance parameter corresponding with first functional function interface of application to be measured obtains interface;
First functional function interface and goal systems performance parameter acquisition is called to connect according to calling rule is preset Mouthful, to obtain system performance parameter corresponding with first function.
Specifically, the method that above-mentioned the embodiment of the present application discloses can be applied in processor 91, in other words by processor 91 realize.Processor 91 may be a kind of IC chip, the processing capacity with signal.During realization, above-mentioned side Each step of method can be completed by the integrated logic circuit of the hardware in processor 91 or the instruction of software form.For holding Row the embodiment of the present application disclose method, above-mentioned processor can be general processor, digital signal processor (DSP), specially With integrated circuit (ASIC), ready-made programmable gate array (FPGA) either other programmable logic device, discrete gate or crystal Pipe logical device, discrete hardware components.It may be implemented or execute the disclosed each method in the embodiment of the present invention, step and patrol Collect block diagram.General processor can be microprocessor or the processor can also be any conventional processor, decoder etc.. The step of method in conjunction with disclosed in the embodiment of the present application, can be embodied directly in hardware processor and execute completion, or with processing Hardware and software module combination in device execute completion.Software module can be located at random access memory ram, flash memory Flash This fields such as Memory, read only memory ROM, programmable read only memory or electrically erasable programmable memory, register In ripe storage medium.The storage medium is located at memory 92, and processor reads the information in memory 92, in conjunction with its hardware The step of completing the above method.
The embodiment of the present application also provides a kind of electronic equipment, and there are the data described in any one device embodiment as above to obtain Take device.
Figure 10 shows the hardware block diagram of electronic equipment provided by the embodiments of the present application, which can be intelligence Energy mobile phone, tablet computer, laptop etc., referring to Figure 10, which may include:
Processor 101, memory 102, communication interface 103 and communication bus 104;Wherein,
Processor 101, memory 102 and communication interface 103 can complete mutual communication by communication bus 104;
Optionally, communication interface 103 can be the interface of communication module, such as the interface of gsm module;
Processor 101 is for executing program;
Memory 102 is for storing program;
Program may include program code, and said program code includes computer-managed instruction.
Processor 101 may be a central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road.
Memory 102 may include high-speed RAM memory, it is also possible to further include nonvolatile memory (non- Volatile memory), for example, memory 102 can be at least one magnetic disk storage.
Wherein, program can be specifically used for:
Application to be measured is opened, system performance parameter has been incorporated into the application to be measured and has obtained interface;
Determine that goal systems performance parameter corresponding with first functional function interface of application to be measured obtains interface;
First functional function interface and goal systems performance parameter acquisition is called to connect according to calling rule is preset Mouthful, to obtain system performance parameter corresponding with first function of application to be measured.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, depends on the specific application and design constraint of technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit It closes or communicates to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic disc or CD.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest range caused.

Claims (7)

1. a kind of data capture method is applied to electronic equipment, which is characterized in that the method includes:
Application to be measured is opened, system performance parameter has been incorporated into the application to be measured and has obtained interface;
Determine that goal systems performance parameter corresponding with first functional function interface of application to be measured obtains interface, packet It includes:It is goal systems performance corresponding with first functional function interface to determine that scheduled system performance parameter obtains interface Parameter acquiring interface, alternatively, determining goal systems performance corresponding with first functional function interface according to selection instruction Parameter acquiring interface;
First functional function interface and the goal systems performance parameter is called to obtain interface according to calling rule is preset, with Obtain system performance parameter corresponding with first function of application to be measured.
2. according to the method described in claim 1, it is characterized in that, system performance parameter acquisition interface is incorporated into application to be measured Realization process include:
System performance parameter acquisition interface is added in the engineering of the application to be measured;
The engineering of application to be measured to the system performance parameter is added is compiled, and generation has been incorporated into system performance parameter acquisition The application to be measured of interface.
3. method according to claim 1 or 2, which is characterized in that further include:
The acquired system performance parameter of display.
4. a kind of data acquisition facility, it is applied to electronic equipment, which is characterized in that described device includes:
Opening module has been incorporated into system performance parameter and has obtained interface for opening application to be measured in the application to be measured;
Determining module, for determining goal systems performance parameter corresponding with first functional function interface of application to be measured Interface is obtained, including:
First determination unit is and the first functional function interface phase for determining that scheduled system performance parameter obtains interface Corresponding goal systems performance parameter obtains interface;Alternatively, the second determination unit, for being determined and described the according to selection instruction The corresponding goal systems performance parameter of one functional function interface obtains interface;
Calling module, for calling first functional function interface and goal systems performance ginseng according to default calling rule Number obtains interface, to obtain system performance parameter corresponding with first function of application to be measured.
5. device according to claim 4, which is characterized in that further include:
It is incorporated into module, is incorporated into application to be measured for system performance parameter to be obtained interface, including:
Adding device, for system performance parameter acquisition interface to be added in the engineering of the application to be measured;
Compilation unit, the engineering for the application to be measured to the system performance parameter is added are compiled, and generation, which has been incorporated into, is Performance parameter of uniting obtains the application to be measured of interface.
6. device according to claim 4 or 5, which is characterized in that further include:
Display module, for showing acquired system performance parameter.
7. a kind of electronic equipment, which is characterized in that include the data acquisition facility as described in claim 4-6 any one.
CN201410293370.9A 2014-06-25 2014-06-25 Data capture method, device and electronic equipment Active CN105204987B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410293370.9A CN105204987B (en) 2014-06-25 2014-06-25 Data capture method, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410293370.9A CN105204987B (en) 2014-06-25 2014-06-25 Data capture method, device and electronic equipment

Publications (2)

Publication Number Publication Date
CN105204987A CN105204987A (en) 2015-12-30
CN105204987B true CN105204987B (en) 2018-09-07

Family

ID=54952681

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410293370.9A Active CN105204987B (en) 2014-06-25 2014-06-25 Data capture method, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN105204987B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1976526A (en) * 2006-11-15 2007-06-06 华为技术有限公司 Mobile telephone automation testing system and testing method
CN102411541A (en) * 2010-10-13 2012-04-11 微软公司 Dynamic cache configuration using separate read and write caches
CN103457784A (en) * 2012-06-01 2013-12-18 腾讯科技(深圳)有限公司 Performance testing method and device
CN103514069A (en) * 2012-11-22 2014-01-15 Tcl集团股份有限公司 Method and system for testing APIs of HAL of Android system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10776233B2 (en) * 2011-10-28 2020-09-15 Teradyne, Inc. Programmable test instrument

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1976526A (en) * 2006-11-15 2007-06-06 华为技术有限公司 Mobile telephone automation testing system and testing method
CN102411541A (en) * 2010-10-13 2012-04-11 微软公司 Dynamic cache configuration using separate read and write caches
CN103457784A (en) * 2012-06-01 2013-12-18 腾讯科技(深圳)有限公司 Performance testing method and device
CN103514069A (en) * 2012-11-22 2014-01-15 Tcl集团股份有限公司 Method and system for testing APIs of HAL of Android system

Also Published As

Publication number Publication date
CN105204987A (en) 2015-12-30

Similar Documents

Publication Publication Date Title
CN104618054B (en) Parameter regulation means and device
CN110525823A (en) A kind of method, apparatus and system that monitoring rubbish is put on by classification
CN102967815B (en) Chip testing method, automated testing equipment and system
CN109656767A (en) A kind of acquisition methods, system and the associated component of CPLD status information
CN108052094A (en) A kind of extension card identification method, device and frequency converter
CN106100939B (en) The network equipment starts time test method and test console
CN106326171A (en) Method and device for recognizing hard disk type of hard disk back plate
CN110196404A (en) A kind of metering chip calibration method, device and the terminal device of charging pile
CN110247796A (en) Monitoring alarm method, apparatus and relevant device
CN105847169B (en) A kind of method and device for flow control
CN106598530A (en) Display panel configuration method and device
CN106708688B (en) Module test method and terminal
CN108092784A (en) A kind of method, terminal and computer-readable medium for creating group
CN109839548A (en) Interface test method, apparatus and system
CN107678955A (en) A kind of computational methods, device, equipment and the storage medium of functional interface time delay
CN107515811A (en) A kind of method and apparatus for obtaining application program power consumption
CN109884427A (en) Electrostatic detection methods and relevant apparatus
CN106055420A (en) Method, device and equipment for data verification
CN105204987B (en) Data capture method, device and electronic equipment
CN107172293A (en) The control based reminding method and system of terminal flow
CN109426598A (en) A kind of hard disk state indicator lamp control method and device
CN107608923A (en) The processing method and Related product of test
CN105354491B (en) Intelligent terminal standby mode detection method and device
CN110069274A (en) Pond server ReDriver chip configures update method and device
CN108347355A (en) A kind of detection method and its equipment of application state

Legal Events

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