CN104008030A - Kernel performance testing method and device - Google Patents

Kernel performance testing method and device Download PDF

Info

Publication number
CN104008030A
CN104008030A CN201310061784.4A CN201310061784A CN104008030A CN 104008030 A CN104008030 A CN 104008030A CN 201310061784 A CN201310061784 A CN 201310061784A CN 104008030 A CN104008030 A CN 104008030A
Authority
CN
China
Prior art keywords
test
core performance
function
information
output
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.)
Pending
Application number
CN201310061784.4A
Other languages
Chinese (zh)
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 CN201310061784.4A priority Critical patent/CN104008030A/en
Publication of CN104008030A publication Critical patent/CN104008030A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention is suitable for the technical field of information processing and provides a kernel performance testing method and device. The kernel performance testing method comprises the steps of receiving kernel performance testing request information; executing a pre-stored testing command to obtain a testing result; displaying the testing result in a graphical mode, wherein received kernel performance testing request information includes kernel performance testing instruction sent by a user side or kernel performance testing trigger information produced according to a preset time interval. By adopting the kernel performance testing method and device, automatic kernel performance testing can be achieved, and the testing efficiency can be improved. In addition, the testing result can be monitored in real time in a graphical mode.

Description

Method and the device of core performance test
Technical field
The invention belongs to technical field of information processing, relate in particular to method and the device of mobile terminal core performance test.
Background technology
Existing terminal device, when carrying out core performance test, needs user manually to input number order, for example, by manual input cat/proc/meminfo order, check internal memory service condition.Manually input needs user to learn these orders by heart, and testing efficiency is lower.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of method of core performance test, to solve the lower problem of existing core performance testing efficiency.
The embodiment of the present invention is achieved in that a kind of method of core performance test, and described method comprises:
Receive the solicited message of core performance test;
The test command that execution prestores is to obtain test result;
In patterned mode, show described test result;
The solicited message of described reception core performance test comprises the core performance test instruction that user side sends, or the trigger message of testing according to the core performance that the default time interval produces.
Another object of the embodiment of the present invention is to provide a kind of device of core performance test, and described device comprises:
Information receiving unit, for receiving the solicited message of core performance test, the solicited message of described reception core performance test comprises the core performance test instruction that user side sends, or the trigger message of testing according to the core performance that the default time interval produces;
Performance element, for carrying out the test command that prestores to obtain test result;
Display unit, for showing described test result in patterned mode.
The beneficial effect that the embodiment of the present invention compared with prior art exists is: pre-stored test command, when receiving TRM, automatically performs the described test command that prestores to obtain test result, and show described test result in patterned mode.The embodiment of the present invention no longer needs the manual input test order of user, thereby can effectively improve the efficiency of test.And user, when testing, does not need to learn by heart described test command.In addition, also provide patterned display mode, facilitated the real-time test results monitored of user.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the realization flow figure of the core performance method of testing that provides of first embodiment of the invention;
Fig. 2 is the exemplary plot of the core performance test interface that provides of first embodiment of the invention;
Fig. 3 is the composition structural drawing of the core performance proving installation that provides of second embodiment of the invention;
Fig. 4 is the applicable scene graph of core performance proving installation that third embodiment of the invention provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
For technical solutions according to the invention are described, below by specific embodiment, describe.
embodiment mono-:
Fig. 1 shows the realization flow of the core performance method of testing that the first embodiment provides, and details are as follows for the method process:
In step S101, receive the solicited message of core performance test.
In the present embodiment, the solicited message of described reception core performance test comprises but is not limited to the core performance test instruction that user side sends, or the trigger message of for example, testing according to the core performance that the default time interval (1 second/time) produces.
It should be noted that, the core performance test instruction that user side sends described in the present embodiment refers to the instruction that starts to carry out core performance test that user side sends, and does not refer to the test command that user inputs.
In step S102, the test command that execution prestores is to obtain test result.
In the present embodiment, the test command prestoring includes but not limited to PS order, cat/proc/meminfo order etc.Wherein, PS order is for process viewing command under linux system, by this order can determine that system has which process is moved, the state of process operation and process take resource etc.Cat/proc/meminfo order, for checking the memory information of linux system, comprises the memory value of total memory value and current residual etc.
Preferably, in order to improve testing efficiency, make test more targeted, in the present embodiment described request information, carry information to be tested;
The test command that described execution prestores specifically comprises to obtain test result:
The test command relevant to described information to be tested that execution prestores.For example, while carrying process detecting information in described request information, carry out PS order, and when showing test results, show the information relevant to this process list.
Further, in the present embodiment described request information, can also carry test period information;
The test command that described execution prestores specifically comprises to obtain test result:
According to described test period, carry out the test command relevant to described information to be tested prestoring.For example, every 1 second, carry out a PS order.
Further, in order to improve the security of test, in the present embodiment described request information, also carry the information such as login user name and password.
It should be noted that, in described request information, do not carry information to be tested, carry out the whole test commands that prestore.
In step S103, in patterned mode, show described test result.
In the present embodiment, while not carrying information to be tested in described request information, in patterned mode, show whole test results (carrying out the test result obtaining after the whole test commands that prestore).While carrying information to be tested in described request information, in patterned mode, show the test result relevant to described information to be tested.For example, while carrying process detecting information in described request information, carry out PS order, when showing test results, demonstration to described in the relevant information of the process detecting information that carries.Described with patterned mode show described test result refer to by test result by chart etc. intuitively mode be presented at test terminal (prior art is directly to output test result, not with chart etc. in conjunction with).
Preferably, the present embodiment, when showing described test result in patterned mode, also provides several functions to select for user in patterned mode.Exemplary, in the mode of function menu button, provide several functions to select for user, described function comprises and starts output function, stops output function and output internal memory curve map function, as shown in Figure 2.
In the present embodiment, described beginning output function represents to start to carry out core performance test, identical with the processing procedure receiving after the solicited message of core performance test.
Preferably, when receiving the instruction of output internal memory curve map function, from tabular array, read the free memory value prestoring, and generate free memory value curve map according to the described free memory value reading.
During the described free memory value of the present embodiment in reading tabular array, according to the described free memory value reading, every Preset Time interval, (identical with the update cycle) once draws (as horizontal ordinate represents interval time, ordinate represents the free memory value reading), thus the situation of change of whole free memory value is depicted in and on icon, is shown to user.
Preferably, when receiving the instruction that stops output function, stop data output, and obtain the data of having exported, according to the obtained generating report forms of output data.
In the present embodiment, when receiving the instruction that stops output function, stop data output (stopping test), obtain the data of having exported, call EXCEL form function, according to obtained output data, generate EXCEL form.Wherein, the described data of having exported comprise following at least one: the process list data of internal storage data, CPU usage data, current operation etc.
It should be noted that, while carrying information to be tested in described request information, obtain and the described information for the treatment of that measurement information is relevant, directly according to obtain described to described in treat the Information generation form that measurement information is relevant, directly generate the required form of user, avoid the report data of generation too many, need the operation of the manual filtering data of user.
By the present embodiment, can realize the automatic test of core performance, make user not need manual input test order just can view fast, in real time measured terminal device core performance situation (comprising the situations of change such as process list and free memory value), effectively improve core performance testing efficiency.And, in patterned mode, provide several functions to select for user, facilitate user to the operation of test process and control.
embodiment bis-:
Fig. 3 shows the composition structure of the core performance proving installation that second embodiment of the invention provides, and for convenience of explanation, only shows the part relevant to the embodiment of the present invention.
This core performance proving installation can be to run on the unit that software unit, hardware cell or software and hardware in each terminal device (such as mobile phone, panel computer etc.) combine, and also can be used as independently suspension member and is integrated in described terminal device or runs in the application system of described terminal device.
This core performance proving installation comprises information receiving unit 31, performance element 32 and display unit 33.Wherein, the concrete function of each unit is as follows:
Information receiving unit 31, for receiving the solicited message of core performance test;
Performance element 32, for carrying out the test command that prestores to obtain test result;
Display unit 33, for showing described test result in patterned mode.
Wherein, the solicited message of described reception core performance test comprises the core performance test instruction that user side sends, or the trigger message of testing according to the core performance that the default time interval produces.
Preferably, in described request information, carry information to be tested;
Described performance element 32 specifically for, carry out the test command relevant to described information to be tested prestore.
Further, described device also comprises:
Function provides unit 34, and for provide several functions to select for user in patterned mode, described function comprises beginning output function, stops output function and output internal memory curve map function.
Further, described device comprises:
Image generation unit 35 for when receiving the instruction of output internal memory curve map function, reads the free memory value prestoring, and generates free memory value curve map according to the described free memory value reading from tabular array;
Report generation unit 36, for when receiving the instruction that stops output function, stops data output, and obtains the data of having exported, according to obtained data generating report forms.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only the division with above-mentioned each functional unit is illustrated, in practical application, can above-mentioned functions be distributed and by different functional units, completed as required, the inner structure that is about to core performance proving installation is divided into different functional units or module, to complete all or part of function described above.Each functional unit in embodiment can be integrated in a processing unit, also can be that the independent physics of unit exists, also can be integrated in a unit two or more unit, above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.In addition, the concrete title of each functional unit also, just for the ease of mutual differentiation, is not limited to the application's protection domain.The specific works process of unit in said apparatus, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
embodiment tri-:
Fig. 4 shows the applicable application scenarios of core performance proving installation that the embodiment of the present invention three provides, and for convenience of explanation, only shows the part relevant to the present embodiment.
This application scenarios comprises test lead 1 and tested end 2.Wherein, wherein, test lead 1 can be to have arbitrarily the terminal device that is connected communication function with tested end 2, includes but not limited to mobile phone, panel computer etc.In described test lead 1, include the core performance proving installation 11 described in embodiment bis-.
Take test lead 1 as computer, tested end 2 is illustrated for IPhone mobile phone, computer detect IPhone mobile phone by USB interface with after it is connected, iTools(terminal unit management instrument on operation computer) to set up safety shell protocol (Secure Shell Protocol, SSH) passage, after setting up SSH passage, start core performance proving installation (as IPhone Memory Info Monitor instrument) 11, receive process name to be tested and the test period of user's input, for example, every described test period (1 second), carry out a PS order, show that the test result relevant to described process name to be tested (comprises internal storage data, cpu data etc.), and receive user click on core performance proving installation 11 stop output function button time, stop data output, obtain the data relevant to described process name to be measured, call EXCEL function form, the data relevant according to the described and described process name to be measured obtaining generate EXCEL form, to facilitate user to check.In addition, described core performance proving installation 11 also provides and starts output function and output internal memory curve map function etc., and each function detailed process as mentioned above, does not repeat them here.
The application scenarios that the present embodiment provides, only for explaining the present invention, does not limit protection scope of the present invention
In sum, the pre-stored test command of the present embodiment, when receiving TRM, automatically performs the described test command prestoring, and shows described test result in patterned mode.By the embodiment of the present invention, make user no longer need manual input test order just can view fast, in real time measured terminal device core performance situation, effectively improve core performance testing efficiency.And, patterned display mode is also provided, facilitate the real-time test results monitored of user.In addition, all right required form of one-touch generation user of the embodiment of the present invention, does not need the manual filtering data of user, improves the output efficiency of test result.
Those of ordinary skills it is also understood that, the all or part of step realizing in above-described embodiment method is to come the hardware that instruction is relevant to complete by program, described program can be in being stored in a computer read/write memory medium, described storage medium, comprises ROM/RAM, disk, CD etc.
Above content is in conjunction with concrete preferred implementation further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention; make without departing from the inventive concept of the premise some alternative or obvious modification that are equal to; and performance or purposes identical, all should be considered as belonging to the present invention by the definite scope of patent protection of submitted to claims.

Claims (8)

1. a method for core performance test, is characterized in that, described method comprises:
Receive the solicited message of core performance test;
The test command that execution prestores is to obtain test result;
In patterned mode, show described test result;
The solicited message of described reception core performance test comprises the core performance test instruction that user side sends, or the trigger message of testing according to the core performance that the default time interval produces.
2. the method for claim 1, is characterized in that, carries information to be tested in described request information;
The test command that described execution prestores specifically comprises to obtain test result:
The test command relevant to described information to be tested that execution prestores.
3. the method for claim 1, is characterized in that, when described showing test results, also comprises:
In patterned mode, provide several functions to select for user, described function comprises beginning output function, stops output function and output internal memory curve map function.
4. method as claimed in claim 3, is characterized in that, described method comprises:
When receiving the instruction of output internal memory curve map function, from tabular array, read the free memory value prestoring, and generate free memory value curve map according to the described free memory value reading;
When receiving the instruction that stops output function, stop data output, and obtain the data of having exported, according to obtained data generating report forms.
5. a device for core performance test, is characterized in that, described device comprises:
Information receiving unit, for receiving the solicited message of core performance test;
Performance element, for carrying out the test command that prestores to obtain test result;
Display unit, for showing described test result in patterned mode;
The solicited message of described reception core performance test comprises the core performance test instruction that user side sends, or the trigger message of testing according to the core performance that the default time interval produces.
6. device as claimed in claim 5, is characterized in that, carries information to be tested in described request information;
Described performance element specifically for, carry out the test command relevant to described information to be tested prestore.
7. device as claimed in claim 5, is characterized in that, described device also comprises:
Function provides unit, and for provide several functions to select for user in patterned mode, described function comprises beginning output function, stops output function and output internal memory curve map function.
8. device as claimed in claim 7, is characterized in that, described device comprises:
Image generation unit for when receiving the instruction of output internal memory curve map function, reads the free memory value prestoring, and generates free memory value curve map according to the described free memory value reading from tabular array;
Report generation unit, for when receiving the instruction that stops output function, stops data output, and obtains the data of having exported, according to obtained data generating report forms.
CN201310061784.4A 2013-02-27 2013-02-27 Kernel performance testing method and device Pending CN104008030A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310061784.4A CN104008030A (en) 2013-02-27 2013-02-27 Kernel performance testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310061784.4A CN104008030A (en) 2013-02-27 2013-02-27 Kernel performance testing method and device

Publications (1)

Publication Number Publication Date
CN104008030A true CN104008030A (en) 2014-08-27

Family

ID=51368691

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310061784.4A Pending CN104008030A (en) 2013-02-27 2013-02-27 Kernel performance testing method and device

Country Status (1)

Country Link
CN (1) CN104008030A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105988909A (en) * 2015-02-06 2016-10-05 展讯通信(天津)有限公司 Real-time monitoring system as well as method and mobile terminal
CN106155860A (en) * 2015-03-31 2016-11-23 展讯通信(上海)有限公司 A kind of internal memory monitoring system and method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05134830A (en) * 1991-06-10 1993-06-01 Internatl Business Mach Corp <Ibm> Method and apparatus for monitoring real-time system source in data processing system
CN1350228A (en) * 2001-12-04 2002-05-22 上海复旦光华信息科技股份有限公司 Automatic WINDOWS NT course protecting system
CN101403983A (en) * 2008-11-25 2009-04-08 北京航空航天大学 Resource monitoring method and system for multi-core processor based on virtual machine
CN101587456A (en) * 2009-07-08 2009-11-25 腾讯科技(深圳)有限公司 Protection processing method and apparatus of software operation
CN101986280A (en) * 2010-11-29 2011-03-16 浙江大学 Automatic testing platform for virtual computing system
JP5021623B2 (en) * 2005-04-15 2012-09-12 マイクロソフト コーポレーション Method and apparatus for performance analysis of software programs

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05134830A (en) * 1991-06-10 1993-06-01 Internatl Business Mach Corp <Ibm> Method and apparatus for monitoring real-time system source in data processing system
CN1350228A (en) * 2001-12-04 2002-05-22 上海复旦光华信息科技股份有限公司 Automatic WINDOWS NT course protecting system
JP5021623B2 (en) * 2005-04-15 2012-09-12 マイクロソフト コーポレーション Method and apparatus for performance analysis of software programs
CN101403983A (en) * 2008-11-25 2009-04-08 北京航空航天大学 Resource monitoring method and system for multi-core processor based on virtual machine
CN101587456A (en) * 2009-07-08 2009-11-25 腾讯科技(深圳)有限公司 Protection processing method and apparatus of software operation
CN101986280A (en) * 2010-11-29 2011-03-16 浙江大学 Automatic testing platform for virtual computing system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘东冶 编著: "《电脑入门新手指南针》", 31 January 2012 *
刘莺迎: "Windows系统进程运行监控", 《科技情报开发与经济》 *
黄琦: "Android智能手机应用软件自动化测试工具的设计和开发", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105988909A (en) * 2015-02-06 2016-10-05 展讯通信(天津)有限公司 Real-time monitoring system as well as method and mobile terminal
CN106155860A (en) * 2015-03-31 2016-11-23 展讯通信(上海)有限公司 A kind of internal memory monitoring system and method

Similar Documents

Publication Publication Date Title
CN104765678B (en) The method and device tested the application on mobile terminal device
CN110493812B (en) Distribution network test processing method, device and system, processor and master control equipment
CN106126424B (en) A kind of visual automated testing method of script, device and mobile terminal
CN103516557A (en) Method and system for testing
WO2014169565A1 (en) Terminal testing method and device
CN107045475B (en) Test method and device
CN109344066B (en) Method, system and terminal for testing browser page
CN103440091A (en) Method for realizing shortcut operation and mobile terminal
US20170017295A1 (en) User device power consumption monitoring and analysis
WO2017049893A1 (en) Application program testing method, testing apparatus, and mobile terminal
CA2862046C (en) Method and device for prompting program uninstallation
CN104346279A (en) Method and device for software testing
CN112333057A (en) Intelligent household equipment distribution network testing method and device, execution machine and storage medium
CN105988904A (en) Self-adaptive testing method and system
CN113407393A (en) Chip verification method, terminal device, verification platform and storage medium
CN111400167A (en) Redfish service compliance verification method, device, equipment and medium
CN113608812A (en) Remote control method, device, system and storage medium
CN109491908B (en) Page detection method and device, electronic equipment and storage medium
CN108738059B (en) WIFI module testing method and device
CN104008030A (en) Kernel performance testing method and device
CN103729258A (en) Automatic testing method, terminal and system
CN105022688A (en) Device test method and apparatus
CN111128139B (en) Non-invasive voice test method and device
CN104424098B (en) A kind of application testing method and device
CN106445479A (en) Information pushing method and apparatus

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20140827

RJ01 Rejection of invention patent application after publication