CN104008029A - Kernel performance testing method and device - Google Patents
Kernel performance testing method and device Download PDFInfo
- Publication number
- CN104008029A CN104008029A CN201310061172.5A CN201310061172A CN104008029A CN 104008029 A CN104008029 A CN 104008029A CN 201310061172 A CN201310061172 A CN 201310061172A CN 104008029 A CN104008029 A CN 104008029A
- Authority
- CN
- China
- Prior art keywords
- memory value
- function
- free memory
- core performance
- instruction
- 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
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; displaying a testing result, 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.
Description
Technical field
The invention belongs to technical field of information processing, relate in particular to method and the device of core performance test under linux system.
Background technology
Existing terminal device, in the time carrying out core performance test, needs user manually to input some test commands, for example, check Installed System Memory information by manual input cat/proc/meminfo order.Manual operation needs user to learn these test commands by heart, and operating 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;
Show test results;
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 prestoring;
Display unit, for showing test results.
The beneficial effect that the embodiment of the present invention compared with prior art exists is: pre-stored test command, in the time receiving TRM, automatically perform the described test command prestoring, and no longer need the manual input test order of user and learn described test command by heart, thereby can effectively improve the efficiency of test.And in the time that needs are tested, can be in many ways (comprise core performance test instruction that user side sends or the trigger message of the inland river performance test that produces according to the default time interval etc.) trigger test request.
Brief description of the drawings
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 skill in the art, 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 realization flow figure of the core performance method of testing that provides of second embodiment of the invention;
Fig. 4 is the free memory value trend exemplary plot that second embodiment of the invention provides;
Fig. 5 is the composition structural drawing of the core performance proving installation that provides of third embodiment of the invention;
Fig. 6 is the applicable scene graph of core performance proving installation that fourth 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, describe below by specific embodiment.
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, carry out the test command prestoring.
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.
In step S103, show test results.
In the present embodiment, show test results in the mode of graphical interfaces, as shown in Figure 2, shown in test result comprise the information such as current process list and free memory value.
The embodiment of the present invention, by pre-stored test command, in the time receiving TRM, automatically performs the described test command prestoring, and no longer needs the manual input test order of user, thereby can effectively improve the efficiency of test.
embodiment bis-:
Fig. 3 shows the realization flow of the core performance method of testing that the second embodiment provides, and details are as follows for the method process:
In step S301, receive 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;
In step S302, carry out the test command prestoring;
In step S303, show test results.
The present embodiment step S301 to S303 is identical to step S103 with step S101 in embodiment mono-, and its specific implementation process refers to step S101 in embodiment mono-and, to the associated description of step S103, do not repeat them here.
In step S304, provide several functions to select for user in patterned mode.
Wherein, described function includes but not limited to monitoring process list and free memory value function, the function that clears data, generates free memory value trend map function and save as text function.
Exemplary, provide several functions to select for user in the mode of function menu button, as shown in Figure 2.
Preferably, in the time receiving the instruction of monitoring process list and free memory value function, the process list and the free memory value that for example, arrive according to renewal of default update cycle (1 second/time) display monitoring;
In the time receiving the instruction of the function that clears data, remove the information of current demonstration;
In the time receiving the instruction that generates free memory value trend map function, from tabular array, read the free memory value prestoring, and generate free memory value trend map according to the described free memory value reading, as shown in Figure 4.
In the present embodiment, such as, when terminal device (mobile phone, panel computer etc.) is carrying out in the process of core performance test, receive user and start terminal device and accelerate when application function, terminal device will be closed the application program of moving.Because the function of now monitoring process list and free memory value starts, thereby the free memory value of pent process and variation is by by real-time showing, and can generate free memory value trend map according to the free memory value changing, as shown in Figure 4, horizontal ordinate represents the update cycle (3 seconds/time), ordinate is illustrated in and in the update cycle, monitors free memory value (unit is K, 1K=1024 byte).
Preferably, in order to facilitate user side to derive test result, described test result is added up, analyzed, the present embodiment also comprises:
In the time receiving the instruction that saves as text function, all process lists that monitor in different cycles and free memory value are stored in text.
Preferably, for the situation of change of Real-time Obtaining memory value, the present embodiment also comprises:
According to the free memory value monitoring in total memory value and each update cycle, calculate the first memory value in each update cycle, and described the first memory value calculating is stored to tabular array, described the first memory value is the poor of described total memory value and described free memory value;
From described tabular array, read described the first memory value, and according to the first read memory value generating report forms.
In the present embodiment, in the time of the instruction that receives generating report forms, read described the first memory value in tabular array, by calling EXCEL form function, generate EXCEL form.In addition, the present embodiment is in the time of described the first memory value reading in tabular array, can also be according to described the first memory value reading, every Preset Time interval, (identical with the update cycle) once draws (as horizontal ordinate represents interval time, ordinate represents the first memory value reading), thus whole memory value situation of change is depicted in and on icon, is shown to user.
Can realize the automatic test of core performance by the present embodiment, make user not need manual input test order just can view fast, in real time measured terminal device core performance situation (comprising the situation of change such as process list and free memory value), effectively improve core performance testing efficiency.And, provide several functions to select for user in patterned mode, facilitate operation and the control of user to test process.
embodiment tri-:
Fig. 5 shows the composition structure of the core performance proving installation that fourth 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 such as, software unit, hardware cell or software and hardware in each terminal device (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 51, performance element 52 and display unit 53.Wherein, the concrete function of each unit is as follows:
Information receiving unit 51, 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 52, for carrying out the test command prestoring;
Display unit 53, for showing test results.
Wherein, 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 testing according to the core performance that the default time interval produces.
Further, described device also comprises:
Function provides unit 54, for provide several functions to select for user in patterned mode, described function comprises monitoring process list and free memory value function, the function that clears data, generates free memory value trend map function and save as text function.
Further, described device comprises:
Monitoring unit 55, in the time receiving the instruction of monitoring process list and free memory value function, the process list and the free memory value that arrive according to default update cycle renewal display monitoring;
Clearing cell 56, in the time receiving the instruction of the function that clears data, removes the information of current demonstration;
Image generation unit 57 in the time receiving the instruction that generates free memory value trend map function, reads the free memory value prestoring, and generates free memory value trend map according to the described free memory value reading from tabular array;
The first storage unit 58, in the time receiving the instruction that saves as text function, is stored to all process lists that monitor in different cycles and free memory value in text.
Further, described device also comprises:
The second storage unit 59, be used for the free memory value monitoring according in total memory value and each update cycle, calculate the first memory value in each update cycle, and described the first memory value is stored to tabular array, described the first memory value is the poor of described total memory value and described free memory value;
Reading unit 510, for read described the first memory value from described tabular array, and according to the first read memory value generating report forms.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only be illustrated with the division of above-mentioned each functional unit, in practical application, can above-mentioned functions be distributed and completed by different functional units as required, the inner structure that is about to obtain geographical location information device 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 tetra-:
Fig. 6 shows the applicable application scenarios of core performance proving installation that the embodiment of the present invention four 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 tri-.
Exemplary, test lead 1 is computer, tested end 2 is mobile phone, mobile phone is connected with computer by USB interface, after successful connection, start core performance proving installation 11, after core performance proving installation 11 guarantees that by order line Android Debug Bridge mobile phone is connected normally with described core performance proving installation 11, for example, carry out PS order and cat/proc/meminfo order every Preset Time interval (1 second), and show test results.In addition, described core performance proving installation 11 also provides several functions to select for user in the mode of function menu button, described function comprises monitoring process list and free memory value function, the function that clears data, generates free memory value trend map function and save as text function etc., each function detailed process is described above, does not repeat them here.
In the present embodiment, in the time that mobile phone receives user and starts mobile phone accelerating application, mobile phone will cut out the current application program of moving.Now, core performance proving installation 11 is the situation of change of process list and free memory value in real-time monitoring cell-phone accelerator, and described situation of change is shown by the mode such as trend map, form, facilitates user to check.
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, in the time receiving TRM, automatically perform the described test command prestoring, make user not need manual input test order just can view fast, in real time measured terminal device core performance situation (comprising the situation of change such as process list and free memory value), effectively improve core performance testing efficiency.And, provide several functions to select for user in patterned mode, facilitate operation and the control of user to test process.
Those of ordinary skill in the art it is also understood that, the all or part of step realizing in above-described embodiment method is can carry out the hardware that instruction is relevant by program to complete, described program can be 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;
Show test results;
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, in the time of described showing test results, also comprises:
Provide several functions to select for user in patterned mode, described function comprises monitoring process list and free memory value function, the function that clears data, generates free memory value trend map function and save as text function.
3. method as claimed in claim 2, is characterized in that, described method comprises:
In the time receiving the instruction of monitoring process list and free memory value function, the process list and the free memory value that arrive according to default update cycle renewal display monitoring;
In the time receiving the instruction of the function that clears data, remove the information of current demonstration;
In the time receiving the instruction that generates free memory value trend map function, from tabular array, read the free memory value prestoring, and generate free memory value trend map according to the described free memory value reading;
In the time receiving the instruction that saves as text function, all process lists that monitor in different cycles and free memory value are stored in text.
4. the method as described in claims 1 to 3 any one, is characterized in that, described method also comprises:
According to the free memory value monitoring in total memory value and each update cycle, calculate the first memory value in each update cycle, and described the first memory value calculating is stored to tabular array, described the first memory value is the poor of described total memory value and described free memory value;
From described tabular array, read described the first memory value, and according to the first read memory value 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 prestoring;
Display unit, for showing test results;
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, described device also comprises:
Function provides unit, and for provide several functions to select for user in patterned mode, described function comprises monitoring process list and free memory value function, the function that clears data, generates free memory value trend map function and save as text function.
7. device as claimed in claim 6, is characterized in that, described device comprises:
Monitoring unit, in the time receiving the instruction of monitoring process list and free memory value function, the process list and the free memory value that arrive according to default update cycle renewal display monitoring;
Clearing cell, in the time receiving the instruction of the function that clears data, removes the information of current demonstration;
Image generation unit in the time receiving the instruction that generates free memory value trend map function, reads the free memory value prestoring, and generates free memory value trend map according to the described free memory value reading from tabular array;
The first storage unit, in the time receiving the instruction that saves as text function, is stored to all process lists that monitor in different cycles and free memory value in text.
8. the device as described in claim 5 to 7 any one, is characterized in that, described device also comprises:
The second storage unit, be used for the free memory value monitoring according in total memory value and each update cycle, calculate the first memory value in each update cycle, and described the first memory value is stored to tabular array, described the first memory value is the poor of described total memory value and described free memory value;
Reading unit, for read described the first memory value from described tabular array, and according to the first read memory value generating report forms.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310061172.5A CN104008029A (en) | 2013-02-27 | 2013-02-27 | Kernel performance testing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310061172.5A CN104008029A (en) | 2013-02-27 | 2013-02-27 | Kernel performance testing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104008029A true CN104008029A (en) | 2014-08-27 |
Family
ID=51368690
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310061172.5A Pending CN104008029A (en) | 2013-02-27 | 2013-02-27 | Kernel performance testing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104008029A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105872777A (en) * | 2016-03-29 | 2016-08-17 | 乐视控股(北京)有限公司 | System performance obtaining method and device |
CN113868068A (en) * | 2021-12-01 | 2021-12-31 | 统信软件技术有限公司 | Kernel performance testing method, computing device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5572672A (en) * | 1991-06-10 | 1996-11-05 | International Business Machines Corporation | Method and apparatus for monitoring data processing system resources in real-time |
CN1350228A (en) * | 2001-12-04 | 2002-05-22 | 上海复旦光华信息科技股份有限公司 | Automatic WINDOWS NT course protecting system |
US20120102423A1 (en) * | 2008-09-30 | 2012-04-26 | Microsoft Corporation | Visualization for resource capacity management |
CN102722434A (en) * | 2012-05-24 | 2012-10-10 | 兰雨晴 | Performance test method and tool aiming at Linux process scheduling |
CN102890652A (en) * | 2012-11-07 | 2013-01-23 | 武汉光迅信息技术有限公司 | Method for constructing testing software and testing system employing method |
-
2013
- 2013-02-27 CN CN201310061172.5A patent/CN104008029A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5572672A (en) * | 1991-06-10 | 1996-11-05 | International Business Machines Corporation | Method and apparatus for monitoring data processing system resources in real-time |
CN1350228A (en) * | 2001-12-04 | 2002-05-22 | 上海复旦光华信息科技股份有限公司 | Automatic WINDOWS NT course protecting system |
US20120102423A1 (en) * | 2008-09-30 | 2012-04-26 | Microsoft Corporation | Visualization for resource capacity management |
CN102722434A (en) * | 2012-05-24 | 2012-10-10 | 兰雨晴 | Performance test method and tool aiming at Linux process scheduling |
CN102890652A (en) * | 2012-11-07 | 2013-01-23 | 武汉光迅信息技术有限公司 | Method for constructing testing software and testing system employing method |
Non-Patent Citations (3)
Title |
---|
刘莺迎: "Windows系统进程运行监控", 《科技情报开发与经济》 * |
工信部通信行业职业技能鉴定指导中心 和 中国移动互联网基地 编著: "《移动应用开发技术》", 31 January 2012 * |
黄琦: "Android智能手机应用软件自动化测试工具的设计和开发", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105872777A (en) * | 2016-03-29 | 2016-08-17 | 乐视控股(北京)有限公司 | System performance obtaining method and device |
CN113868068A (en) * | 2021-12-01 | 2021-12-31 | 统信软件技术有限公司 | Kernel performance testing method, computing device and storage medium |
CN113868068B (en) * | 2021-12-01 | 2022-03-18 | 统信软件技术有限公司 | Kernel performance testing method, computing device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10853232B2 (en) | Adaptive system for mobile device testing | |
CN104765678B (en) | The method and device tested the application on mobile terminal device | |
CN103516557B (en) | test method and system | |
CN105260082B (en) | A kind of test data methods of exhibiting and exploitation terminal | |
CN105573484A (en) | Projection method and terminal | |
CN104346279A (en) | Method and device for software testing | |
CN113407393A (en) | Chip verification method, terminal device, verification platform and storage medium | |
KR20080052341A (en) | Automatic-testing system and method for embedded system software and test scenario composing method | |
CN111159047A (en) | Android equipment auxiliary debugging device with visual interface and operation method thereof | |
CN105988904A (en) | Self-adaptive testing method and system | |
CN110188043A (en) | A kind of method and control equipment of the test of control multiple devices | |
CN107704499A (en) | A kind of page jump control method and device of application program | |
CN109582524A (en) | A kind of test method, system and electronic equipment and storage medium | |
CN103729258A (en) | Automatic testing method, terminal and system | |
CN104008029A (en) | Kernel performance testing method and device | |
CN105022688A (en) | Device test method and apparatus | |
CN112559335A (en) | Test method, device, equipment and storage medium | |
CN111128139B (en) | Non-invasive voice test method and device | |
CN104239202A (en) | Non-Root testing method and system of interactive intelligent equipment | |
CN104834586A (en) | Automatic test method, device and system of Android interface | |
CN104008030A (en) | Kernel performance testing method and device | |
CN107391354B (en) | Method and system for automatically monitoring terminal performance and storage device | |
CN105354075A (en) | Synchronization method for software and hardware collaborative simulation | |
CN104978190A (en) | Application program generation method and system | |
CN108459959A (en) | User interface automated testing method, device, equipment and storage medium |
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 |