Background technology
Computer system has rich in natural resources and important information, for example, comprise working time, energy consumption, EMS memory occupation amount situation, processor operating position, the operating position of system call, the operating position of various routine libraries, various hardware, for example, the operating position of video card, network interface card, disk, CD-ROM drive, keyboard, mouse wait.These information and resource are very important for user or the clearer understanding of program development personnel and the ruuning situation that detects an application program.Yet the user can't obtain these information and resource by simple method under normal conditions.
To the test of computer system, for example, specially to input-output system, or calculator display organization tests, and general benchmark test field is mainly paid close attention to.Yet these research fields generally need very professional system tool and testing software, carry out testing targetedly of specialty.Its complexity and professional degree are that the general user can't finish.And the general user mainly concentrates on the demand of application programs to the demand of computing machine, and what pay close attention to more is the ruuning situation of the application program of using.By grasping the ruuning situation of application program, can improve the understanding of application programs, use required application program more efficiently.In addition, the developer of some application programs and is indifferent to the ruuning situation of system itself when carrying out application and development, and what be concerned about more is the ruuning situation of the application program developed.Therefore, need a fairly simple easy-to-use information and the statistical tool of resource.
In Windows operating system, people are accustomed to using the information of adding up in the task manager to understand the ruuning situation of application program.Other certain operations system page has similar system tool.Yet that these system tools can only provide usually is real-time, the most key several information (as internal memory, processor etc.) and resource operating position in the system.These information are more limited, can only give the user cardinal principle profile of an application program operation, can not make the user more clearly understand the operating position of application program.Such as, the user can't understand the application that moves and mainly call those system calls, has mainly used which hardware resource, and which operation is the bottleneck of performance of application program.
Summary of the invention
Purpose of the present invention is intended to solve at least one of above-mentioned technological deficiency.
For achieving the above object, the embodiment of one aspect of the present invention proposes a kind of multiple view video coding mode selecting method, may further comprise the steps: need to determine the information of statistics, wherein, described information is application program and system's essential information; S2: set up the operating key of test statistics by shortcut, wherein, described operating key comprises beginning key and end key; S3: output form and the file destination of setting statistical information; S4: control start and end time according to the operating key that shortcut generates, and test statistics interior application program of described start and end time and system's essential information service data; And S5: export described test statistics result.
Method according to the embodiment of the invention, add up by operating position and utilization of resources situation to specified application, make user and developer understand the system overhead situation of specified application, can analyze simultaneously the resource operating position of some application program automatically, system software function, data resource and related hardware resource.
In one embodiment of the invention, described step S1 specifically comprises: S11: the computer run essential information that the needs statistics is set, wherein, described computer run essential information comprises EMS memory occupation amount, cpu operating position, system call operating position, video card operating position, network interface card operating position, read-write disk situation; And S12: the application program that needs statistics is set, wherein, in the arranging of described computer run essential information and application program, needs to arrange described computer run essential information or application program at least.
In one embodiment of the invention, described step S3 specifically comprises: S31: the output form of setting described statistical information, wherein, the output form of described statistical information comprises directly at screen and shows statistical information or described statistical information is saved in the file; And S32: when described statistical information is saved in the file, the path at enactment document place and file name.
In one embodiment of the invention, described step S4 specifically comprises: S41: by start time and the concluding time of described operating key control test statistics; And S42: add up described begin described application program and system's essential information service data in the concluding time section.
In one embodiment of the invention, described step S5 specifically comprises: S51: output begins to count on the various resource operating positions that finish system in the timing statistics section; S52: the various resource operating positions of application program in the timing statistics section that output is set; And S53: export the total resource operating position of other application program.
For achieving the above object, the present invention embodiment on the other hand proposes a kind of system testing statistic device, comprises determination module, is used for need determining the information of statistics, and wherein, described information is application program and system's essential information; Creation module, for the operating key of setting up test statistics by shortcut, wherein, described operating key comprises beginning key and end key; Setting module is for output form and the file destination of setting statistical information; Control module, the operating key that is used for generating according to shortcut is controlled start and end time, and test statistics interior application program of described start and end time and system's essential information service data; And output module, be used for the described test statistics result of output.
Device according to the embodiment of the invention, add up by operating position and utilization of resources situation to specified application, make user and developer understand the system overhead situation of specified application, can analyze simultaneously the resource operating position of some application program automatically, system software function, data resource and related hardware resource.
In one embodiment of the invention, described determination module specifically comprises: first arranges the unit, be used for arranging the computer run essential information that needs statistics, wherein, described computer run essential information comprises EMS memory occupation amount, cpu operating position, system call operating position, video card operating position, network interface card operating position, read-write disk situation; And second arrange the unit, is used for arranging the application program that needs statistics, wherein, in the arranging of described computer run essential information and application program, needs to arrange described computer run essential information or application program at least.
In one embodiment of the invention, described setting module specifically comprises: first setup unit, be used for to set the output form of described statistical information, wherein, the output form of described statistical information comprises directly at screen and shows statistical information or described statistical information is saved in the file; And
Second setup unit is used for when described statistical information is saved in file the path at enactment document place and file name.
In one embodiment of the invention, described control module specifically comprises: control module is used for start time and concluding time by described operating key control test statistics; And statistic unit, be used for that statistics is described to begin described application program and system's essential information service data in the concluding time section.
In one embodiment of the invention, described output module specifically comprises: first output unit is used for output and begins to count on the various resource operating positions that finish system in the timing statistics section; Second output unit is used for the various resource operating positions of application program in the timing statistics section that output is set; And the 3rd output unit, be used for the total resource operating position of other application program of output.
The aspect that the present invention adds and advantage part in the following description provide, and part will become obviously from the following description, or recognize by practice of the present invention.
Embodiment
Describe embodiments of the invention below in detail, the example of embodiment is shown in the drawings, and wherein identical or similar label is represented identical or similar elements or the element with identical or similar functions from start to finish.Be exemplary below by the embodiment that is described with reference to the drawings, only be used for explaining the present invention, and can not be interpreted as limitation of the present invention.
Fig. 1 is the process flow diagram of the system testing statistical method of the embodiment of the invention.As shown in Figure 1, the system testing statistical method according to the embodiment of the invention may further comprise the steps:
S101, definite information that needs statistics, wherein, information is application program and system's essential information.
Particularly, setting comprises the computer run essential information of needs statistics and the application program of needs statistics.The computer run essential information comprises EMS memory occupation amount, cpu operating position, system call operating position, video card operating position, network interface card operating position, read-write disk situation etc.
In one embodiment of the invention, can one of them can be set computer run essential information and the application program that needs statistics also can be set simultaneously according to user's demand setting in the arranging of computer run essential information and application program.
S102 sets up the operating key of test statistics by shortcut.
In one embodiment of the invention, operating key comprises beginning key, end key, Pause key etc.Can also generate operating key with a simple control interface.
Step S103, output form and the file destination of setting statistical information.
Particularly, set the output form of statistical information.Wherein, the output form of statistical information comprises directly at screen and shows statistical information or statistical information is saved in the file.When output form for directly on screen during explicit statistical information, statistics can output to statistics on the screen after finishing immediately, and statistical information is then wanted path and the file name at enactment document place when being saved in the file, for example,
S104 controls start and end time according to the operating key that shortcut generates, and test statistics interior application program of start and end time and system's essential information service data.
Particularly, at first control start time and the concluding time of test statistics by operating key.Begin after the statistics, statistics begins application program and system's essential information service data in the concluding time section.
Step S105, output test statistics result.
Particularly, the statistics of exporting is the various resource operating positions of system, the application program of user's appointment various resource operating positions and the total resource operating position of other application program in the timing statistics section.
Method according to the embodiment of the invention, add up by operating position and utilization of resources situation to specified application, make user and developer understand the system overhead situation of specified application, can analyze simultaneously the resource operating position of some application program automatically, system software function, data resource and related hardware resource.
Fig. 2 is the frame diagram of system testing statistic device according to an embodiment of the invention.As shown in Figure 2, the system testing statistic device according to the embodiment of the invention comprises determination module 100, creation module 200, setting module 300, control module 400 and output module 500.
Determination module 100 is used for need determining the information of statistics, and wherein, information is application program and system's essential information.
In one embodiment of the invention, determination module 100 comprises that first arranges unit 110 and second unit 120 is set.
First arranges unit 110 is used for arranging the computer run essential information that needs statistics, wherein, the computer run essential information comprises EMS memory occupation amount, cpu operating position, system call operating position, video card operating position, network interface card operating position, read-write disk situation.
Second arranges unit 120 is used for arranging the application program that needs statistics.
In one embodiment of the invention, can one of them can be set computer run essential information and the application program that needs statistics also can be set simultaneously according to user's demand setting in the arranging of computer run essential information and application program.
Creation module 200 is used for setting up by shortcut the operating key of test statistics, and wherein, operating key comprises beginning key and end key.
In one embodiment of the invention, operating key comprises beginning key, end key, Pause key etc.Can also generate operating key with a simple control interface.
Setting module 300 is used for setting output form and the file destination of statistical information.
In one embodiment of the invention, setting module 300 comprises first setup unit 310 and second setup unit 320.
First setup unit 310 is used for setting the output form of statistical information, and wherein, the output form of statistical information comprises directly at screen and shows statistical information or statistical information is saved in the file.
Second setup unit 320 is used for when statistical information is saved in file the path at enactment document place and file name.
In one embodiment of the invention, set the way of output of statistical informations by first setup unit 310, when way of output path and file name by second setup unit, 320 enactment document places when being saved in statistical information in the file.
The operating key that control module 400 is used for generating according to shortcut is controlled start and end time, and test statistics interior application program of start and end time and system's essential information service data.
In one embodiment of the invention, control module 400 comprises control module 410 and statistic unit 420.
Control module 410 is used for start time and the concluding time by operating key control test statistics.
Statistic unit 420 is used for statistics and begins application program and system's essential information service data in the concluding time section.
In one embodiment of the invention, by the start and end time of control module 410 control statistics, and by the basic service data of statistic unit 420 statistics application programs or computer system.
Output module 500 is used for output test statistics result.
In one embodiment of the invention, output module 500 comprises first output unit 510, second output unit 520 and the 3rd output unit 530.
First output unit 510 is used for output and begins to count on the various resource operating positions that finish system in the timing statistics section.
Second output unit 520 is used for the various resource operating positions of application program in the timing statistics section that output is set.
The 3rd output unit 530 is used for the total resource operating position of other application program of output.
In one embodiment of the invention, the resource operating position data of the resource operating position data of the system resource operating position data after will adding up by first output unit 510, second output unit 520 and the 3rd output unit 530, specified application and other application program make output for user's reference with the form of icon or form.
Device according to the embodiment of the invention, add up by operating position and utilization of resources situation to specified application, make user and developer understand the system overhead situation of specified application, can analyze simultaneously the resource operating position of some application program automatically, system software function, data resource and related hardware resource.
Although illustrated and described embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, those of ordinary skill in the art can change above-described embodiment under the situation that does not break away from principle of the present invention and aim within the scope of the invention, modification, replacement and modification.