CN107168839A - A kind of starting time of mobile terminal length detecting method - Google Patents
A kind of starting time of mobile terminal length detecting method Download PDFInfo
- Publication number
- CN107168839A CN107168839A CN201710352912.9A CN201710352912A CN107168839A CN 107168839 A CN107168839 A CN 107168839A CN 201710352912 A CN201710352912 A CN 201710352912A CN 107168839 A CN107168839 A CN 107168839A
- Authority
- CN
- China
- Prior art keywords
- time point
- kernel
- mobile terminal
- starts
- dereferenced
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3409—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
- G06F11/3414—Workload generation, e.g. scripts, playback
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application is related to smart mobile phone technical field, more particularly to a kind of starting time of mobile terminal length detecting method, and methods described comprises the following steps:S1, test script is loaded into the mobile terminal;S2, starts the mobile terminal, and record the start triggered time point of the mobile terminal;S3, records the kernel power-on time point of the mobile terminal, and kernel starts time point, kernel startup end time point;S4, the kernel associated program for recording the mobile terminal starts time point, kernel association startup end time point;S5, the kernel dereferenced program for recording the mobile terminal starts time point, kernel dereferenced startup end time point;S6, associates according to start triggered time point t1, kernel power-on time point t2, kernel startup time point t3, kernel startup end time point t4, kernel associated program startup time point t5, kernel and starts end time point t6, kernel dereferenced program startup time point t7, the available machine time length of the kernel dereferenced startup end time point t8 calculating mobile terminal.
Description
Technical field
The application is related to smart mobile phone technical field, more particularly to a kind of starting time of mobile terminal length detecting method.
Background technology
As science and technology is maked rapid progress, miscellaneous portable electronic devices are applied among life, for example Smartphone
And tablet personal computer etc..These portable electronic devices are different due to specification and model, its Electronic Performance, the reaction time and
Available machine time also differs.Even if in the portable electronic devices of same specification and model, due to the otherness of its processing procedure, respectively
Item electrical performance index also will not be just the same.However, when portable electronic devices dispatch from the factory, it is necessary to pass through many testing processes
So that the Electronic Performance after dispatching from the factory meets its specification, and efficiency quality reaches unanimously as far as possible.
During these detections, the length of available machine time needed for portable electronic devices is a critically important efficiency
Index.In general, the length of available machine time needed for portable electronic devices is defined as being performed by portable electronic devices and opened
After machine instruction, to the time being completely loaded needed for boot program.Intuitively, the available machine time needed for measuring portable electronic devices is long
The method of degree is the display time using portable electronic devices, with unification timer or code table, observes its execution start and refers to
Make the time being completely loaded needed for boot program.However, this mode measured manually, which there is, measures inaccurate wind
Danger.If, can be because of performing start in addition, completely in accordance with the display measuring time value available machine time length of portable electronic devices
In a period of time after instruction, time-program(me) is not yet completely loaded and causes the display time of portable electronic devices to be forbidden
Really, ultimately result in measured available machine time length and have very big error.
The A of document CN 104298530 propose a kind of data processing system and measure the portable electronic devices available machine time
The method of length, using the start deadline point and the time difference at data line time point for being recorded in portable electronic devices,
At the anti-corresponding time point pushed away on computer, portable electronic devices available machine time length is further estimated exactly.When it is utilized
Between poor concept estimation portable electronic devices available machine time length, therefore when portable electronic devices time and computer when
Between when having the error of offset, when calculating its time difference, this offset can be eliminated because subtracting each other.This method has certain
Accuracy.
However, although the above method is with certain accuracy, however it remains many defects, such as, first, electronic installation
It must maintain to be connected with test equipment that the test of available machine time length could be realized, flexibility is poor;Secondly, it is to utilize the time
The concept estimation electronic device startup time span of difference, the method for the estimation still suffers from the problem of accuracy is poor;Again, this method
Due to the timing node negligible amounts of acquisition, it is impossible to the parameters in the accurate start process for obtaining electronic installation, Jin Jinshi
Less accurate available machine time measurement is showed, it is impossible to provide detailed open state information, and then changing after test can not be provided
Enter suggestion.In summary analyze, a kind of accurately and efficiently electronic device startup time test side is not suggested that among prior art
Method.
The content of the invention
A kind of starting time of mobile terminal length detecting method, methods described comprises the following steps:
S1, test script is loaded into the mobile terminal;
S2, starts the mobile terminal, and record the start triggered time point of the mobile terminal;
S3, records the kernel power-on time point of the mobile terminal, and kernel starts time point, kernel startup end time point;
S4, the kernel associated program for recording the mobile terminal starts time point, kernel association startup end time point;
S5, the kernel dereferenced program for recording the mobile terminal starts time point, kernel dereferenced startup end time point;
S6, time point, kernel startup end time are started according to the start triggered time point, kernel power-on time point, kernel
Point, kernel associated program start time point, kernel association and start end time point, kernel dereferenced program and start time point, interior
Core dereferenced starts the available machine time length that end time point calculates the mobile terminal.
As a preferred embodiment, the step S1 is specifically included:In the power-offstate by the mobile terminal
Test equipment is connected to, test script is loaded into from the test equipment;If test pattern is primary test pattern, described
Test script disconnects the connection of the test equipment and the mobile terminal after the completion of being loaded into;If test pattern is advanced test
Pattern, then keep the connection of the test equipment and the mobile terminal after the completion of test script loading.
As a preferred embodiment, under advanced test mode, the test equipment obtains the movement in real time
The open state information of terminal, and be compared with standard boot temporal information, and then the mobile terminal is analyzed whole
The performance parameter in the stage of each in start process, provides available machine time length performance analysis report and parameter adjustment suggestion.
As a preferred embodiment, the step S4 also includes:For electricity on the start triggered time point, kernel
Time point, kernel start time point, kernel startup end time point, kernel associated program startup time point, kernel association startup
End time point, kernel dereferenced program start each available machine time where time point, kernel dereferenced startup end time point
Stage sets weighted value, and calculates available machine time length according to each stage available machine time and its weighted value.
As a preferred embodiment, the step S4 also includes:The available machine time length includes conventional start shooting
Time span and effective available machine time length;At the end of the computational methods of the conventional start start for the upper kernel dereferenced
Between point subtract it is described start triggered time point difference;The computational methods of effective available machine time length start for the kernel
End time point and the kernel, which start the difference at time point, the kernel and associate, to be started end time point and is associated with the kernel
When the difference and the kernel dereferenced that program starts time point start end time point with kernel dereferenced program startup
Between the sum of difference put.
The present invention proposes a kind of accurately and efficiently electronic device startup time test method, by detecting mobile terminal
In the Each point in time and the parameter of time phase of start, detailed, accurate open state information is got, and when combining each
Between the stage to start shooting performance influence, provide different available machine time calculation formula, improve starting time of mobile terminal test
Accuracy and diversity.In addition, there is provided different test patterns, meets different testing requirements, also reducing to test
The degree of dependence of equipment, flexibility is greatly improved.Finally, to mobile terminal in the Each point in time of start and the ginseng of time phase
Several measurements, not only increases computational accuracy, moreover it is possible to the parameter adjustment suggestion in start process is provided according to these parameters, to move
Improvement of the dynamic terminal in exploitation, test process, which is improved, provides facility, so as to shorten the R&D cycle of mobile terminal.
Brief description of the drawings
Fig. 1 is a kind of starting time of mobile terminal length detection time point schematic diagram of the present invention.
Embodiment
Embodiments of the invention are further illustrated below in conjunction with accompanying drawing.
Embodiment one:
A kind of starting time of mobile terminal length detecting method, methods described comprises the following steps:
S1, test script is loaded into the mobile terminal;
S2, starts the mobile terminal, and record the start triggered time point of the mobile terminal;
S3, records the kernel power-on time point of the mobile terminal, and kernel starts time point, kernel startup end time point;
S4, the kernel associated program for recording the mobile terminal starts time point, kernel association startup end time point;
S5, the kernel dereferenced program for recording the mobile terminal starts time point, kernel dereferenced startup end time point;
S6, time point t3, kernel startup knot are started according to start triggered time point t1, kernel power-on time point t2, kernel
Beam time point t4, kernel associated program startup time point t5, kernel association startup end time point t6, kernel dereferenced program are opened
Dynamic time point t7, kernel dereferenced start the available machine time length for end time point t8 calculating the mobile terminal.
As a preferred embodiment, the step S1 is specifically included:In the power-offstate by the mobile terminal
Test equipment is connected to, test script is loaded into from the test equipment;If test pattern is primary test pattern, described
Test script disconnects the connection of the test equipment and the mobile terminal after the completion of being loaded into;If test pattern is advanced test
Pattern, then keep the connection of the test equipment and the mobile terminal after the completion of test script loading.By setting
Different test patterns, not only meets basic start testing requirement, can also meet senior, complicated test request, tool
There is certain flexibility.In addition, above-mentioned primary test pattern and advanced test mode are intended only as one kind preferred embodiment,
During actual test, more test patterns can be set, to meet the testing requirement of different complexities, do not limited herein
System.
As a preferred embodiment, under advanced test mode, the test equipment obtains the movement in real time
The open state information of terminal, and be compared with standard boot temporal information, and then the mobile terminal is analyzed whole
The performance parameter in the stage of each in start process, provides available machine time length performance analysis report and parameter adjustment suggestion.It is senior
Test pattern, can also be according to survey as a preferred embodiment, it not only meets basic available machine time length testing
Test result, which is made, to be analyzed and provides suggestion, so that test object optimizes and revises matching somebody with somebody for the software and hardware being related in start process
Parameter is put, so that constantly adjustment, the start relevant parameter of optimal inspection object before dispatching from the factory, so that right in the test process simplified
Caused by the analysis and test equipment of test result is inconsistent the problem of complex procedures, inefficiency.
As a preferred embodiment, the step S4 also includes:For on start triggered time point t1, kernel
Electric time point t2, kernel start time point t3, kernel and start end time point t4, kernel associated program and start time point t5, interior
Core association starts end time point t6, kernel dereferenced program startup time point t7, kernel dereferenced startup end time point t8
Each stage available machine time at place sets weighted value, and calculates the available machine time according to each stage available machine time and its weighted value
Length.For example, the important ratio due to kernel startup stage in whole start process is larger, therefore when starting to the kernel
Between point t3 and kernel start end time point t4 where kernel startup stage distribution weighted value 0.5;Kernel associated program starts rank
The importance of section is taken second place, then associates and start in where end time point t6 with kernel for kernel associated program startup time point t5
Core associated program startup stage distributes weighted value 0.3;Finally, it is that kernel dereferenced program starts time point t7 and kernel dereferenced
Start kernel dereferenced program startup stage distribution weighted value 0.2. where end time point t8 and according to above-mentioned weighted value and
Startup stage where it calculates comprehensive available machine time length.
That is, TZ=(t4-t3)*0.5+(t6-t5)*0.3+(t8-t7)*0.2.
It is emphasized that above-mentioned weighted value is as just a kind of embodiment, above-mentioned weighted value can also be according to reality
Testing requirement is adjusted, and weighted value and remain 1.Due to the accurate test of above-mentioned timing node, it is ensured that calculating is opened
The accuracy of machine time span, an any of the above-described timing node all provides guarantee for the accurate test.
As a preferred embodiment, the step S4 also includes:The available machine time length includes conventional start shooting
Time span and effective available machine time length;At the end of the computational methods of the conventional start start for the upper kernel dereferenced
Between point subtract it is described start triggered time point difference, i.e. TA=t8-t1;The computational methods of effective available machine time length are
At the end of difference t4-t3, the kernel that the kernel starts end time point with the kernel starts time point associate startup
Between the point difference t6-t5 and the kernel dereferenced that start time point with the kernel associated program start end time point and institute
State the sum that kernel dereferenced program starts the difference t8-t7 at time point, i.e. TB=(t4-t3)+(t6-t5)+(t8-t7).
Further, since the method for testing has been presented for the value of each material time point, it therefore, it can be based on the time point
Other computational methods are taken, so as to draw different result of calculations.Do not limit herein.Because the species of test object is present
Difference, the mode of available machine time length is calculated there is also difference by above-mentioned timing node, therefore, and above-mentioned formula is as just one kind
During preferred scheme, actual test, above-mentioned timing node can be done to other any rational plus-minus combinations, to meet reality
Testing requirement;The plus-minus combination of this timing node is all within the scope of the present invention.
The present invention proposes a kind of accurately and efficiently electronic device startup time test method, by detecting mobile terminal
In the Each point in time and the parameter of time phase of start, detailed, accurate open state information is got, and when combining each
Between the stage to start shooting performance influence, provide different available machine time calculation formula, improve starting time of mobile terminal test
Accuracy and diversity.In addition, there is provided different test patterns, meets different testing requirements, also reducing to test
The degree of dependence of equipment, flexibility is greatly improved.Finally, to mobile terminal in the Each point in time of start and the ginseng of time phase
Several measurements, not only increases computational accuracy, moreover it is possible to the parameter adjustment suggestion in start process is provided according to these parameters, to move
Improvement of the dynamic terminal in exploitation, test process, which is improved, provides facility, so as to shorten the R&D cycle of mobile terminal.
Embodiments of the invention are the foregoing is only, are not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (5)
1. a kind of starting time of mobile terminal length detecting method, it is characterised in that methods described comprises the following steps:
S1, test script is loaded into the mobile terminal;
S2, starts the mobile terminal, and record the start triggered time point of the mobile terminal;
S3, records the kernel power-on time point of the mobile terminal, and kernel starts time point, kernel startup end time point;
S4, the kernel associated program for recording the mobile terminal starts time point, kernel associated program startup end time point;
S5, the kernel dereferenced program for recording the mobile terminal starts time point, kernel dereferenced program startup end time
Point;
S6, time point, kernel startup end time are started according to the start triggered time point, kernel power-on time point, kernel
Point, kernel associated program start time point, kernel associated program startup end time point, kernel dereferenced program startup time
Point, kernel dereferenced program start the available machine time length that end time point calculates the mobile terminal.
2. according to the method described in claim 1, it is characterised in that the step S1 is specifically included:In the power-offstate by institute
State mobile terminal and be connected to test equipment, test script is loaded into from the test equipment;If test pattern is primary test mould
Formula, then disconnect the connection of the test equipment and the mobile terminal after the completion of test script loading;If testing mould
Formula is advanced test mode, then the company of the test equipment and the mobile terminal is kept after the completion of test script loading
Connect.
3. method according to claim 2, it is characterised in that under advanced test mode, the test equipment is obtained in real time
The open state information of the mobile terminal is taken, and is compared with standard boot temporal information, and then analyzes the movement
The performance parameter in terminal each stage in whole start process, provides available machine time length performance analysis report and parameter adjustment
It is recommended that.
4. according to the method described in claim 1, it is characterised in that the step S4 also includes:For the start triggered time
Point, kernel power-on time point, kernel start time point, kernel and start end time point, kernel associated program and start time point, interior
Core association starts end time point, kernel dereferenced program and starts time point, kernel dereferenced program startup end time point institute
Each stage available machine time weighted value is set, and it is long according to each stage available machine time and its weighted value to calculate the available machine time
Degree.
5. the method according to claim 1 or 4, it is characterised in that the step S4 also includes:The available machine time length
Including conventional available machine time length and effective available machine time length;The computational methods of the conventional start are closed for the upper kernel is non-
Connection program starts the difference that end time point subtracts the start triggered time point;The calculating side of effective available machine time length
Method starts the difference at time point, the kernel associated program for kernel startup end time point and the kernel and starts and terminate
Time point and the kernel associated program start time point difference and the kernel dereferenced start end time point with it is described
Kernel dereferenced program starts the sum of the difference at time point.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710352912.9A CN107168839B (en) | 2017-05-18 | 2017-05-18 | Method for detecting starting time length of mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710352912.9A CN107168839B (en) | 2017-05-18 | 2017-05-18 | Method for detecting starting time length of mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107168839A true CN107168839A (en) | 2017-09-15 |
CN107168839B CN107168839B (en) | 2020-10-30 |
Family
ID=59816122
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710352912.9A Expired - Fee Related CN107168839B (en) | 2017-05-18 | 2017-05-18 | Method for detecting starting time length of mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107168839B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103150248A (en) * | 2013-03-22 | 2013-06-12 | 腾讯科技(深圳)有限公司 | Method and device for measuring and calculating startup time consumption |
CN103902326A (en) * | 2012-12-29 | 2014-07-02 | 鸿富锦精密工业(武汉)有限公司 | Electronic device and start-up time frame detecting method thereof |
CN103905603A (en) * | 2012-12-21 | 2014-07-02 | 上海晨兴希姆通电子科技有限公司 | Mobile phone powering-on method and mobile phone powering-on system |
CN104199692A (en) * | 2014-08-25 | 2014-12-10 | 北京金山安全软件有限公司 | Method, device and terminal for acquiring starting time of application program |
CN104199693A (en) * | 2014-08-25 | 2014-12-10 | 北京金山安全软件有限公司 | Method, device and terminal for obtaining boot time |
CN104298530A (en) * | 2014-10-13 | 2015-01-21 | 苏州佳世达电通有限公司 | Method for measuring startup time length of electronic device and data processing system |
-
2017
- 2017-05-18 CN CN201710352912.9A patent/CN107168839B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103905603A (en) * | 2012-12-21 | 2014-07-02 | 上海晨兴希姆通电子科技有限公司 | Mobile phone powering-on method and mobile phone powering-on system |
CN103902326A (en) * | 2012-12-29 | 2014-07-02 | 鸿富锦精密工业(武汉)有限公司 | Electronic device and start-up time frame detecting method thereof |
CN103150248A (en) * | 2013-03-22 | 2013-06-12 | 腾讯科技(深圳)有限公司 | Method and device for measuring and calculating startup time consumption |
CN104199692A (en) * | 2014-08-25 | 2014-12-10 | 北京金山安全软件有限公司 | Method, device and terminal for acquiring starting time of application program |
CN104199693A (en) * | 2014-08-25 | 2014-12-10 | 北京金山安全软件有限公司 | Method, device and terminal for obtaining boot time |
CN104298530A (en) * | 2014-10-13 | 2015-01-21 | 苏州佳世达电通有限公司 | Method for measuring startup time length of electronic device and data processing system |
Also Published As
Publication number | Publication date |
---|---|
CN107168839B (en) | 2020-10-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107305234B (en) | Measuring device | |
CN103955428A (en) | Method and equipment for testing response speed of application | |
CN106093897B (en) | A kind of the test system and test method of radar system | |
CN103234647A (en) | Temperature correction method and temperature correction system of embedded system | |
CN104216826A (en) | Test method and device | |
CN111159042A (en) | Fluency testing method and device and electronic equipment | |
CN105893251B (en) | A kind of test method and system of intelligent terminal APP starting required time | |
CN108426521A (en) | A kind of quality determining method and device of component | |
CN104298530A (en) | Method for measuring startup time length of electronic device and data processing system | |
CN107168839A (en) | A kind of starting time of mobile terminal length detecting method | |
CN101013932A (en) | Method for testing inner time delay and apparatus for processing data frame | |
CN110264928B (en) | Backlight chip detection method and device and storage medium | |
CN107179992A (en) | A kind of mobile terminal unused time length detecting method | |
CN107315664A (en) | Video card automatic checkout system and method | |
CN108600042B (en) | WiFi test method and device for electronic equipment, storage medium and test equipment | |
CN116298765A (en) | High-temperature high-humidity reverse bias test system | |
CN111640096B (en) | Method, device and terminal for detecting appearance of electronic product | |
CN106941552B (en) | Mobile terminal shutdown performance evaluation method | |
CN111400193B (en) | Test case generation method, device, equipment and storage medium | |
CN107193746A (en) | A kind of mobile terminal-opening performance estimating method | |
CN106886800B (en) | Leakage current fault positioning device and method | |
TW201527778A (en) | Measuring report creating system and method thereof | |
CN102546967A (en) | Method for testing data transmission performance of xDSL device | |
KR100775102B1 (en) | Quality test result estimate system of platform based application on embedded device and method thereof | |
CN106597062B (en) | Current detecting system and method during integrated circuit device power supply electrifying |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20201014 Address after: 312030 Xin Qian Qing village, Ma An Town, Keqiao District, Shaoxing, Zhejiang Applicant after: ZHEJIANG R.G.B TEXTILE PRINTING & DYEING Co.,Ltd. Address before: 300131, Hongqiao District, Tianjin first Spring Garden Street, spring, No. 7, building Applicant before: Wang Donghong |
|
TA01 | Transfer of patent application right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20201030 Termination date: 20210518 |
|
CF01 | Termination of patent right due to non-payment of annual fee |