CN102063363A - Memory footprint statistical device and method - Google Patents

Memory footprint statistical device and method Download PDF

Info

Publication number
CN102063363A
CN102063363A CN 201110001012 CN201110001012A CN102063363A CN 102063363 A CN102063363 A CN 102063363A CN 201110001012 CN201110001012 CN 201110001012 CN 201110001012 A CN201110001012 A CN 201110001012A CN 102063363 A CN102063363 A CN 102063363A
Authority
CN
China
Prior art keywords
unit
module
user
ems memory
occupation situation
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
CN 201110001012
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.)
Shenzhen Coship Electronics Co Ltd
Original Assignee
Shenzhen Coship Electronics 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 Shenzhen Coship Electronics Co Ltd filed Critical Shenzhen Coship Electronics Co Ltd
Priority to CN 201110001012 priority Critical patent/CN102063363A/en
Publication of CN102063363A publication Critical patent/CN102063363A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a memory footprint statistical device, comprising a process acquiring module, a man-machine interaction module, a memory monitoring module and a statistical module, wherein the process acquiring module is used for acquiring all the currently running processes of a system, the man-machine interaction module is used for providing all the currently running processes of the system for a user to select and providing a statistical result for the user after the statistical module completes statistics on the memory footprint of the selected process, the memory monitoring module is used for monitoring the process selected by the user by virtue of the man-machine interaction module, regularly sampling the memory footprint of the process and sending sampled data to the statistical module, and the statistical module is used for receiving the sampled data sent by the memory monitoring module, generating the statistical result according to the sampled data and transmitting the statistical result to the man-machine interaction module to be displayed. By applying the memory footprint statistical device provided by the invention, the process requiring monitoring and statistics can be designated by the user, the memory footprint information of the process is sampled and stored, and automatic statistics is carried out.

Description

A kind of EMS memory occupation situation statistic device and EMS memory occupation situation statistical method
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of EMS memory occupation situation statistic device and EMS memory occupation situation statistical method.
Background technology
In various procedure development processes, the situation that takies to Installed System Memory during program run is to weigh the important indicator of a program feature, EMS memory occupation how much, whether keeping stable status in the operational process for a long time, and these information are quite important for the program development personnel.So the developer is in program development process, needing one can provide accurate EMS memory occupation information, and the EMS memory occupation situation statistic device that can conveniently add up, assists whether to exist in the finder problems such as internal memory leakage and performance bottleneck.
But the Windows operating system of Microsoft provide one eaily display memory take the device of situation: task manager.This also is one of the highest instrument of program development personnel frequency of utilization.Task manager provides internal memory, processor, thread or the like information, can satisfy conventional system operation user's daily demand.
But the inventor finds that existing display memory takies the device of situation, has obvious defects as task manager:
The defective that existing display memory takies the device maximum of situation is exactly that system information can not be preserved, and what the user saw can only be current information, and former information can't be inquired about.Therefore, follow the tracks of and during the ruuning situation of statistics program, it is just powerless that existing display memory takies the device of situation when needs, the user can only will go to observe the internal memory operating position at set intervals, and manually write down and add up, it is very inconvenient to operate, and efficient is also very low.
Summary of the invention
The invention provides a kind of EMS memory occupation situation statistic device and EMS memory occupation situation statistical method, can specify the process that needs monitoring and statistics by the user, the EMS memory occupation information of this process is sampled and preserved, and add up automatically, for the ruuning situation of usertracking and statistics program provide one efficiently, instrument easily.
EMS memory occupation situation statistic device provided by the invention comprises:
Be used to obtain the process acquisition module of all processes of the current operation of system;
Link to each other with described process acquisition module and human-computer interaction module that internal memory monitoring module, statistical module link to each other, described human-computer interaction module is used for providing all processes of the current operation of described system to select for users to the user; Finish the statistics of EMS memory occupation situation of selected process at statistical module after, provide statistics to the user;
The internal memory monitoring module that links to each other with described human-computer interaction module and statistical module, described internal memory monitoring module is used for supervisory user by the selected process of described human-computer interaction module, regularly the EMS memory occupation situation of this process is sampled, and send sampled data to statistical module;
The statistical module that links to each other with human-computer interaction module with described internal memory monitoring module, described statistical module is used to receive the sampled data that described internal memory monitoring module sends, generate statistics according to described sampled data, and hand over described human-computer interaction module to show described statistics.
Preferably, described process acquisition module comprises: system snapshot unit and process acquiring unit; Described system snapshot unit is used to obtain the current operation information of system; Described process acquiring unit links to each other with described system snapshot unit, be used for obtaining all processes of the current operation of system, and send all processes of the current operation of described system to described human-computer interaction module from the current operation information of system that described system snapshot unit obtains.
Preferably, described human-computer interaction module comprises: information display unit and command reception unit; Described information display unit is used to receive all processes of the current operation of system that described process acquisition module sends, and shows; Described command reception unit is used to receive user instruction, and transmits described user instruction to the internal memory monitoring module; The information that comprises the process that the user need monitor in the described user instruction.
Preferably, also comprise in the user instruction that described command reception unit receives: the internal memory monitoring module that is used to set is monitored the time interval of sampling, and the duration of monitoring sampling.
Preferably, described internal memory monitoring module comprises: interactive unit, sampling unit and timing control module, each unit all link to each other with two other unit; Described interactive unit is used to receive the user instruction that human-computer interaction module sends, and sends the sampled data that described sampling unit obtains to described statistical module; Described timing control module is used for the user instruction according to described interactive unit reception, controls described sampling unit and regularly the EMS memory occupation situation of corresponding process is sampled; Described sampling unit is used for the control according to the timing control module, regularly the EMS memory occupation situation of corresponding process is sampled, and by interactive unit sampled data is sent to statistical module.
Preferably, described statistical module comprises: data transmit-receive unit and the storage statistic unit that links to each other with described data transmit-receive unit; Described data transmit-receive unit is used to receive the sampled data that the internal memory monitoring module sends; After described storage statistic unit is finished statistics to sampled data, send statistics to described human-computer interaction module; Described storage statistic unit is stored the sampled data that described internal memory monitoring module receives, and after described internal memory monitoring module is finished whole samplings, adopts data to add up to all; Send statistics by described data transmit-receive unit to human-computer interaction module.
Preferably, described statistical module also comprises: the statistic algorithm unit, and described statistic algorithm unit links to each other with the storage statistic unit, is used to store the statistic algorithm to sampled data; Described storage statistic unit is added up adopting data according to the statistic algorithm in the described statistic algorithm unit.
Accordingly, the present invention also provides a kind of EMS memory occupation situation statistical method, comprising:
Obtain all processes of the current operation of system and the described user's selection of confession is provided to the user;
Monitor the process that described user selectes, regularly the EMS memory occupation situation of this process is sampled, obtain sampled data;
Generate statistics according to described sampled data, and show described statistics to the user.
Preferably, describedly obtain all processes of the current operation of system and provide, select to comprise for described user to the user:
The current operation information of the system that obtains;
From the current operation information of described system, obtain all processes of the current operation of system;
Provide all processes of the current operation of described system to the user, select for described user.
Preferably, describedly obtain all processes of the current operation of system and provide, after selecting for described user to the user; Monitor before the process that described user selectes, also comprise:
Receive user instruction; The information that comprises the process that the user selectes, that needs are monitored in the described user instruction.
Preferably, also comprise in the described user instruction: selected process is monitored the time interval of sampling, the duration and the statistic algorithm of monitoring sampling.
Preferably, describedly generate statistics, and show that to the user described statistics comprises according to described sampled data:
After finishing, add up adopting data according to default statistic algorithm to the whole samplings of the EMS memory occupation situation of described process;
Show described statistics to the user.
EMS memory occupation situation statistic device provided by the invention and EMS memory occupation situation statistical method, can specify the process that needs monitoring and statistics by the user, the EMS memory occupation information of this process is sampled and preserved, and add up automatically, for the ruuning situation of usertracking and statistics program process provide one efficiently, instrument easily.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is an EMS memory occupation situation statistic device agent structure synoptic diagram provided by the invention;
Fig. 2 is an EMS memory occupation situation statistic device detailed structure synoptic diagram provided by the invention;
Fig. 3 is that EMS memory occupation situation statistic device information display unit provided by the invention shows synoptic diagram;
Fig. 4 is the EMS memory occupation situation statistical method first embodiment schematic flow sheet provided by the invention;
Fig. 5 is the EMS memory occupation situation statistical method second embodiment schematic flow sheet provided by the invention.
Embodiment
EMS memory occupation situation statistic device provided by the invention, can specify the process that needs monitoring and statistics by the user, the EMS memory occupation information of this process is sampled and preserved, and add up automatically, for the ruuning situation of usertracking and statistics program process provide one efficiently, instrument easily.
Referring to Fig. 1, be EMS memory occupation situation statistic device example structure synoptic diagram provided by the invention, as shown in Figure 1, this device comprises:
Be used to obtain the process acquisition module 1 of all processes of the current operation of system;
With the human-computer interaction module 2 that process acquisition module 1 and internal memory monitoring module 3, statistical module 4 link to each other, human-computer interaction module 2 is used for providing all program process of the current operation of system to select for users to the user; Finish the EMS memory occupation situation statistics of selected process at statistical module 4 after, provide statistics to the user.
The internal memory monitoring module 3 that links to each other with human-computer interaction module 2 and statistical module 4, internal memory monitoring module 3 is used for supervisory user by the selected process of human-computer interaction module, regularly the EMS memory occupation situation of this process is sampled, and send sampled data to statistical module 4.
With the statistical module 4 that internal memory monitoring module 3 links to each other with human-computer interaction module 2, statistical module 4 is used to receive the sampled data that internal memory monitoring module 3 sends, and generates statistics according to sampled data, and hands over human-computer interaction module 2 to show statistics.
More specifically, referring to Fig. 2, the EMS memory occupation situation statistic device that the embodiment of the invention provides, its process acquisition module 1 specifically comprises: system snapshot unit 11 and process acquiring unit 12;
System snapshot unit 11 is used to obtain the current operation information of system; Process acquiring unit 12 links to each other with system snapshot unit 12, and the current operation information of system that is used for obtaining from system snapshot unit 11 obtains all processes of the current operation of system, and to all processes of the current operation of human-computer interaction module transmitting system.
Further, in embodiments of the present invention, the api function that system snapshot unit 11 and process acquiring unit 12 can utilize Microsoft to provide is realized.Api function is the function set that obtains system state that Microsoft provides, and the operation api function can return system informations such as progress information, module information, device driver information, proceeding internal memory use information, working set information, Memory Mapping File and its information.Present embodiment is an example with the ToolHelp32 built-in function, and the ToolHelp32 built-in function is the API function of standard.
System snapshot unit 11 can use the CreateToolhelp32Snapshot () function of ToolHelp32, is used to create system information " snapshot ", the current operation information of the system that obtains.
Process acquiring unit 12 can use Process32First () and the Process32Next () function of ToolHelp32, obtains all processes of the current operation of system from the current operation information of system.Process acquiring unit 12 at first calls the Process32First function one time, obtains process list from snapshot, repeats to call the Process32Nex function then, till this function return false.Process acquiring unit 12 will travel through process list in the snapshot like this.
The EMS memory occupation situation statistic device that present embodiment provides, its human-computer interaction module 2 specifically comprises: information display unit 21 and command reception unit 22; Information display unit 21 is used for all processes of the current operation of system of receiving process acquisition module 1 transmission, and shows; Command reception unit 22 links to each other with information display unit 21, is used to receive user instruction and transmits user instruction to internal memory monitoring module 3; The information that comprises the process that the user need monitor in the user instruction.
Further, all processes of the current operation of system that information display unit 21 receiving process acquisition modules 1 send, and show that select its process that need monitor for the user, display interface is as shown in Figure 3.
Command reception unit 22 is used to receive user instruction and transmits user instruction to internal memory monitoring module 3.More specifically, comprise the process that needs that the user needs to select are monitored in the described user instruction from the process that information display unit 21 shows.Preferably, also comprise in the user instruction that command reception unit 22 receives: the internal memory monitoring module 3 that is used to set is monitored the time interval of sampling, and the information such as duration of monitoring sampling.
The EMS memory occupation situation statistic device that present embodiment provides, its internal memory monitoring module 3 specifically comprises: interactive unit 31, timing control module 32 and sampling unit 33, each unit all link to each other with two other unit.
Interactive unit 31 is responsible for and other module and the unit of the EMS memory occupation situation statistic device that present embodiment provides carry out information interaction, mainly comprises: receive the user instruction that human-computer interaction module 2 sends, and transmit user instructions to timing control module 32; And send the sampled data that sampling units 33 obtain to statistical module 4.
Timing control module 32 has clocking capability, is used for the user instruction according to interactive unit 31 transmissions, and control sampling unit 33 is regularly sampled to the EMS memory occupation situation of corresponding process.As shown in Figure 3, be 0.01 second if the user is provided with sampling interval, monitor duration is 120 seconds, then timing control module 32 was sampled every the selected EMS memory occupation situation of the process of monitoring that needs of 33 couples of users of 0.01 second control sampling unit in 120 seconds.
Sampling unit 33 is used for the control according to the timing control module, regularly the EMS memory occupation situation of corresponding process is sampled, and by interactive unit 31 sampled data is sent to statistical module.The function that the EMS memory occupation situation of 33 pairs of corresponding processes of sampling unit is sampled can be passed through OpenProcess() and GetProcessMemoryInfo() two api functions realizations.
More specifically, after process acquisition module 1 has called Process32First or Process32Next, will comprise the key message of each process in the system in the rreturn value, comprise process ID.Sampling unit 33 can call OpenProcess(according to this process ID) function, obtain the handle (Process Handle) of monitored process.
Sampling unit 33 calls OpenProcess() after function obtains monitored process Process Handle, can use GetProcessMemoryInfo(according to this Process Handle) function obtains the EMS memory occupation situation of this process.
EMS memory occupation situation statistic device provided by the invention, its statistical module 4 comprises: data transmit-receive unit 41 and the storage statistic unit 42 that links to each other with data transmit-receive unit 41.
Data transmit-receive unit 41 is used to receive the sampled data that internal memory monitoring module 3 sends, and deposits 42 storages of storage statistic unit; Data transmit-receive unit 41 sends statisticses to human-computer interaction module 2 after storage statistic unit 42 is finished statistics to sampled data.
The sampled data that storage statistic unit 42 storage data transmit-receive unit 41 send after internal memory monitoring module 3 is finished whole samplings, adopts data to add up to all; Send statistics by data transmit-receive unit 41 to human-computer interaction module 2.In the present embodiment, storage statistic unit 42 can adopt Microsoft Excel to finish storage and statistics to sampled data, the statistical function and the chart of feature richness because EXCEL provides easy and simple to handle, thus make EMS memory occupation situation statistic device provided by the invention simpler and practical.
More specifically, we can adopt VC++ to carry out the operation of excel.
At first, we will add the class of excel in engineering, and promptly EXCEL9.H and EXCEL9.CPP(can obtain by adding EXCEL9.OLB), the corresponding excel2000 of EXCEL9 wherein.Next according to the method that provides in the class with data, comprise time and memory information, be saved in the excel file of appointment.Using excel to add up with chart shows
Preferably, the EMS memory occupation situation statistic device that present embodiment provides, its statistical module 4 also comprises statistic algorithm unit 43, statistic algorithm unit 43 links to each other with storage statistic unit 42, be used to store the statistic algorithm to sampled data, storage statistic unit 42 is added up adopting data according to the statistic algorithm in the statistic algorithm unit 43.
EMS memory occupation situation statistic device provided by the invention, can specify the process that needs monitoring and statistics by the user, the EMS memory occupation information of this process is sampled and preserved, and add up automatically, for the ruuning situation of usertracking and statistics program process provide one efficiently, instrument easily, save to consume in the program development process and following the tracks of and the time and efforts of statistics internal memory operating position.
Referring to Fig. 4, be the EMS memory occupation situation statistical method first embodiment schematic flow sheet provided by the invention, this method can have EMS memory occupation situation statistic device as shown in Figure 1 to implement.This method comprises as shown in Figure 4:
At step S100, obtain all processes of the current operation of system.
At step S101,, select for described user to all processes that the user provides the current operation of system.
At step S102, monitor the process that described user selectes, regularly the EMS memory occupation situation of this process is sampled, obtain sampled data.
At step S103, generate statistics according to described sampled data, and show described statistics to the user.
EMS memory occupation situation statistical method provided by the invention, can specify the process that needs monitoring and statistics by the user, the EMS memory occupation information of this process is sampled and preserved, and add up automatically, for the ruuning situation of usertracking and statistics program process provide one efficiently, instrument easily, save to consume in the program development process and following the tracks of and the time and efforts of statistics internal memory operating position.
Referring to Fig. 5, be the EMS memory occupation situation statistical method second embodiment schematic flow sheet provided by the invention, in the present embodiment, with the idiographic flow of this EMS memory occupation situation statistical method of more detailed description, this method can have EMS memory occupation situation statistic device as shown in Figure 2 to implement.This method comprises as shown in Figure 4:
At step S200, the current operation information of the system that obtains.More specifically, this step can be carried out by the system snapshot unit of aforementioned EMS memory occupation situation statistic device.System can use the snapshot unit CreateToolhelp32Snapshot () function of ToolHelp32, is used to create system information " snapshot ", the current operation information of the system that obtains.
At step S201, from the current operation information of described system, obtain all processes of the current operation of system.More specifically, this step can be carried out by the process acquiring unit of aforementioned EMS memory occupation situation statistic device.The process acquiring unit can use Process32First () and the Process32Next () function of ToolHelp32, obtains all processes of the current operation of system from the current operation information of system.The process acquiring unit at first calls the Process32First function one time, obtains process list from snapshot, repeats to call the Process32Nex function then, till this function return false.The process acquiring unit will travel through process list in the snapshot like this.
At step S202,, select for described user to all processes that the user provides the current operation of described system.More specifically, this step can be carried out by aforementioned EMS memory occupation situation statistic device human-computer interaction module.All processes of the current operation of system that human-computer interaction module receiving process acquisition module sends, and show that select its process that need monitor for the user, display interface is as shown in Figure 3.
At step S203, receive user instruction; The information that comprises the process that the user selectes, that needs are monitored in the described user instruction.More specifically, this step can be carried out by aforementioned EMS memory occupation situation statistic device human-computer interaction module.Comprise the process that needs that the user selects are monitored in the described user instruction from the process that human-computer interaction module shows.Preferably, also comprise in the user instruction that human-computer interaction module receives: the process to the needs monitoring that the user sets is monitored information such as the time interval of sampling, the duration of monitoring sampling and statistic algorithm.
At step S204, regularly the EMS memory occupation situation of corresponding process is sampled.More specifically, this step can be carried out by aforementioned EMS memory occupation situation statistic device internal memory monitoring module.The internal memory monitoring module has clocking capability, and it is regularly sampled to the EMS memory occupation situation of corresponding process according to user instruction.As shown in Figure 3, be 0.01 second if the user is provided with sampling interval, monitor duration is 120 seconds, then the internal memory monitoring module was sampled to the selected EMS memory occupation situation of the process of monitoring that needs of user every 0.01 second in 120 seconds.
Further, internal memory monitoring module function that the EMS memory occupation situation of corresponding process is sampled can be passed through OpenProcess() and GetProcessMemoryInfo() two api functions realize.After the process acquisition module has called Process32First or Process32Next, will comprise the key message of each process in the system in the rreturn value, comprise process ID.The internal memory monitoring module can be called OpenProcess(according to this process ID) function, obtain the handle (Process Handle) of monitored process.
Internal memory monitoring module invokes OpenProcess() after function obtains monitored process Process Handle, can be according to this Process Handle, using GetProcessMemoryInfo() function obtains the EMS memory occupation situation of this process.
At step S205, after finishing whole samplings, adopt data to add up to all.More specifically, this step can be carried out by the statistical module of aforementioned EMS memory occupation situation statistic device.
The sampled data that statistical module stored memory monitoring module sends after the internal memory monitoring module is finished whole samplings, adopts data to add up to all.In the present embodiment, statistical module can adopt Microsoft Excel to finish storage and statistics to sampled data, the statistical function and the chart of feature richness because EXCEL provides easy and simple to handle, thus make EMS memory occupation situation statistic device provided by the invention simpler and practical.
More specifically, we can adopt VC++ to carry out the operation of excel.
At first, we will add the class of excel in engineering, and promptly EXCEL9.H and EXCEL9.CPP(can obtain by adding EXCEL9.OLB), the corresponding excel2000 of EXCEL9 wherein.Next according to the method that provides in the class with data, comprise time and memory information, be saved in the excel file of appointment.Using excel to add up with chart shows
Preferably, the EMS memory occupation situation statistic device that present embodiment provides, its statistical module also store various optional, are used for the algorithm that sampled data is added up, the statistic algorithm that statistical module is selected according to user in the user instruction is added up adopting data.
At step S206, show statistics to the user by man-machine interface.
EMS memory occupation situation statistical method provided by the invention, can specify the process that needs monitoring and statistics by the user, the EMS memory occupation information of this process is sampled and preserved, and add up automatically, for the ruuning situation of usertracking and statistics program process provide one efficiently, instrument easily, save to consume in the program development process and following the tracks of and the time and efforts of statistics internal memory operating position.
Above disclosed is a kind of preferred embodiment of the present invention only, can not limit the present invention's interest field certainly with this, and therefore the equivalent variations of doing according to claim of the present invention still belongs to the scope that the present invention is contained.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential hardware platform, can certainly all implement by hardware.Based on such understanding, all or part of can the embodying that technical scheme of the present invention contributes to background technology with the form of software product, this computer software product can be stored in the storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.

Claims (12)

1. an EMS memory occupation situation statistic device is characterized in that, comprising:
Be used to obtain the process acquisition module of all processes of the current operation of system;
With the human-computer interaction module that described process acquisition module and internal memory monitoring module, statistical module link to each other, described human-computer interaction module is used for providing all processes of the current operation of described system to select for users to the user; Finish the statistics of EMS memory occupation situation of selected process at statistical module after, provide statistics to the user;
The internal memory monitoring module that links to each other with described human-computer interaction module and statistical module, described internal memory monitoring module is used for supervisory user by the selected process of described human-computer interaction module, regularly the EMS memory occupation situation of this process is sampled, and send sampled data to statistical module;
The statistical module that links to each other with human-computer interaction module with described internal memory monitoring module, described statistical module is used to receive the sampled data that described internal memory monitoring module sends, generate statistics according to described sampled data, and hand over described human-computer interaction module to show described statistics.
2. EMS memory occupation situation statistic device as claimed in claim 1 is characterized in that, described process acquisition module comprises: system snapshot unit and process acquiring unit;
Described system snapshot unit is used to obtain the current operation information of system;
Described process acquiring unit links to each other with described system snapshot unit, be used for obtaining all processes of the current operation of system, and send all processes of the current operation of described system to described human-computer interaction module from the current operation information of system that described system snapshot unit obtains.
3. EMS memory occupation situation statistic device as claimed in claim 2 is characterized in that described human-computer interaction module comprises: information display unit and command reception unit;
Described information display unit is used to receive all processes of the current operation of system that described process acquisition module sends, and shows;
Described command reception unit links to each other with information display unit, is used to receive user instruction, and transmits described user instruction to the internal memory monitoring module; The information that comprises the process that the user need monitor in the described user instruction.
4. EMS memory occupation situation statistic device as claimed in claim 3 is characterized in that, also comprise in the user instruction that described command reception unit receives: the internal memory monitoring module that is used to set is monitored the time interval of sampling, and the duration of monitoring sampling.
5. EMS memory occupation situation statistic device as claimed in claim 4 is characterized in that, described internal memory monitoring module comprises: interactive unit, sampling unit and timing control module, each unit all link to each other with two other unit;
Described interactive unit is used to receive the user instruction that human-computer interaction module sends, and sends the sampled data that described sampling unit obtains to described statistical module;
Described timing control module is used for the user instruction according to described interactive unit reception, controls described sampling unit and regularly the EMS memory occupation situation of corresponding process is sampled;
Described sampling unit is used for the control according to the timing control module, regularly the EMS memory occupation situation of corresponding process is sampled, and by interactive unit sampled data is sent to statistical module.
6. EMS memory occupation situation statistic device as claimed in claim 5 is characterized in that described statistical module comprises: data transmit-receive unit and the storage statistic unit that links to each other with described data transmit-receive unit;
Described data transmit-receive unit is used to receive the sampled data that the internal memory monitoring module sends; After described storage statistic unit is finished statistics to sampled data, send statistics to described human-computer interaction module;
Described storage statistic unit is stored the sampled data that described data transmit-receive unit sends, and after described internal memory monitoring module is finished whole samplings, adopts data to add up to all; Send statistics by described data transmit-receive unit to human-computer interaction module.
7. as each described EMS memory occupation situation statistic device in the claim 1 to 6, it is characterized in that, described statistical module also comprises: the statistic algorithm unit, and described statistic algorithm unit links to each other with the storage statistic unit, is used to store the statistic algorithm to sampled data;
Described storage statistic unit is added up adopting data according to the statistic algorithm in the described statistic algorithm unit.
8. an EMS memory occupation situation statistical method is characterized in that, comprising:
Obtain all processes of the current operation of system and the described user's selection of confession is provided to the user;
Monitor the process that described user selectes, regularly the EMS memory occupation situation of this process is sampled, obtain sampled data;
Generate statistics according to described sampled data, and show described statistics to the user.
9. EMS memory occupation situation statistical method as claimed in claim 8 is characterized in that, describedly obtains all processes of the current operation of system and provides to the user, selects to comprise for described user:
The current operation information of the system that obtains;
From the current operation information of described system, obtain all processes of the current operation of system;
Provide all processes of the current operation of described system to the user, select for described user.
10. EMS memory occupation situation statistical method as claimed in claim 9 is characterized in that, describedly obtains all processes of the current operation of system and provides to the user, after selecting for described user; Monitor before the process that described user selectes, also comprise:
Receive user instruction; The information that comprises the process that the user selectes, that needs are monitored in the described user instruction.
11. EMS memory occupation situation statistical method as claimed in claim 10 is characterized in that, also comprises in the described user instruction: selected process is monitored the time interval of sampling, the duration and the statistic algorithm of monitoring sampling.
12. EMS memory occupation situation statistical method as claimed in claim 11 is characterized in that, and is described according to described sampled data generation statistics, and shows that to the user described statistics comprises:
After finishing, add up adopting data according to default statistic algorithm to the whole samplings of the EMS memory occupation situation of described process;
Show described statistics to the user.
CN 201110001012 2010-01-26 2011-01-05 Memory footprint statistical device and method Pending CN102063363A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110001012 CN102063363A (en) 2010-01-26 2011-01-05 Memory footprint statistical device and method

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201020104275.7 2010-01-26
CN201020104275 2010-01-26
CN 201110001012 CN102063363A (en) 2010-01-26 2011-01-05 Memory footprint statistical device and method

Publications (1)

Publication Number Publication Date
CN102063363A true CN102063363A (en) 2011-05-18

Family

ID=43998648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110001012 Pending CN102063363A (en) 2010-01-26 2011-01-05 Memory footprint statistical device and method

Country Status (1)

Country Link
CN (1) CN102063363A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662781A (en) * 2012-04-11 2012-09-12 腾讯科技(深圳)有限公司 Method and device for ensuring normal operation of terminal
CN102819479A (en) * 2011-06-07 2012-12-12 腾讯科技(深圳)有限公司 Method and device for obtaining process information
CN102968335A (en) * 2012-10-25 2013-03-13 东莞宇龙通信科技有限公司 Terminal and terminal memory management method
CN102999418A (en) * 2012-11-16 2013-03-27 广东欧珀移动通信有限公司 Mobile phone monitoring method based on PC (personal computer) side
CN103024538A (en) * 2012-11-12 2013-04-03 北京奇虎科技有限公司 Memory management method and system
WO2013149530A1 (en) * 2012-04-01 2013-10-10 腾讯科技(深圳)有限公司 Information display method, mobile terminal and computer readable storage medium
WO2014101485A1 (en) * 2012-12-31 2014-07-03 华为技术有限公司 Memory monitoring method and related device
CN104268010A (en) * 2014-09-24 2015-01-07 联想(北京)有限公司 Information processing method, information processing device and electronic device
CN104461899A (en) * 2014-12-19 2015-03-25 北京奇虎科技有限公司 Method and system for analyzing resource consumption in testing process and testing terminal
CN105468397A (en) * 2014-09-11 2016-04-06 腾讯科技(深圳)有限公司 Software running data processing method and software running data processing apparatus
CN106155860A (en) * 2015-03-31 2016-11-23 展讯通信(上海)有限公司 A kind of internal memory monitoring system and method
CN110287030A (en) * 2019-06-28 2019-09-27 潍柴动力股份有限公司 Memory application method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1752941A (en) * 2004-09-20 2006-03-29 华为技术有限公司 Device and method for internal storage monitoring
CN101227330A (en) * 2008-02-19 2008-07-23 Ut斯达康通讯有限公司 Method and system for history performance data collection

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1752941A (en) * 2004-09-20 2006-03-29 华为技术有限公司 Device and method for internal storage monitoring
CN101227330A (en) * 2008-02-19 2008-07-23 Ut斯达康通讯有限公司 Method and system for history performance data collection

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819479A (en) * 2011-06-07 2012-12-12 腾讯科技(深圳)有限公司 Method and device for obtaining process information
CN102819479B (en) * 2011-06-07 2015-10-28 腾讯科技(深圳)有限公司 A kind of method and device obtaining progress information
WO2013149530A1 (en) * 2012-04-01 2013-10-10 腾讯科技(深圳)有限公司 Information display method, mobile terminal and computer readable storage medium
CN103365760A (en) * 2012-04-01 2013-10-23 腾讯科技(深圳)有限公司 Mobile terminal and method for displaying information
CN102662781A (en) * 2012-04-11 2012-09-12 腾讯科技(深圳)有限公司 Method and device for ensuring normal operation of terminal
CN102968335A (en) * 2012-10-25 2013-03-13 东莞宇龙通信科技有限公司 Terminal and terminal memory management method
CN103024538A (en) * 2012-11-12 2013-04-03 北京奇虎科技有限公司 Memory management method and system
CN102999418B (en) * 2012-11-16 2016-03-02 广东欧珀移动通信有限公司 A kind of mobile phone monitoring method of Based PC end
CN102999418A (en) * 2012-11-16 2013-03-27 广东欧珀移动通信有限公司 Mobile phone monitoring method based on PC (personal computer) side
CN103914363A (en) * 2012-12-31 2014-07-09 华为技术有限公司 Memory monitoring method and related device
WO2014101485A1 (en) * 2012-12-31 2014-07-03 华为技术有限公司 Memory monitoring method and related device
CN103914363B (en) * 2012-12-31 2016-10-26 华为技术有限公司 A kind of internal memory monitoring method and relevant apparatus
US9846626B2 (en) 2012-12-31 2017-12-19 Huawei Technologies Co., Ltd. Method and apparatus for computer memory management by monitoring frequency of process access
CN105468397A (en) * 2014-09-11 2016-04-06 腾讯科技(深圳)有限公司 Software running data processing method and software running data processing apparatus
CN104268010A (en) * 2014-09-24 2015-01-07 联想(北京)有限公司 Information processing method, information processing device and electronic device
CN104268010B (en) * 2014-09-24 2017-09-29 联想(北京)有限公司 A kind of information processing method, information processor and electronic equipment
CN104461899A (en) * 2014-12-19 2015-03-25 北京奇虎科技有限公司 Method and system for analyzing resource consumption in testing process and testing terminal
CN104461899B (en) * 2014-12-19 2017-12-26 北京奇虎科技有限公司 The method, test terminal and system of consumed resource are analyzed in test process
CN106155860A (en) * 2015-03-31 2016-11-23 展讯通信(上海)有限公司 A kind of internal memory monitoring system and method
CN110287030A (en) * 2019-06-28 2019-09-27 潍柴动力股份有限公司 Memory application method and device
CN110287030B (en) * 2019-06-28 2021-08-20 潍柴动力股份有限公司 Memory use method and device

Similar Documents

Publication Publication Date Title
CN102063363A (en) Memory footprint statistical device and method
CN108804302B (en) Remote testing method, system and related equipment
CN109271412A (en) The real-time streaming data processing method and system of smart city
CN111475298A (en) Task processing method, device, equipment and storage medium
CN105144118A (en) Application testing and analysis
CN101840234A (en) Embedded automobile fault diagnosis equipment and updating method thereof
CN111045911A (en) Performance test method, performance test device, storage medium and electronic equipment
CN107577542B (en) Log information reporting method and device, storage medium and mobile terminal
CN111367812A (en) Test method, electronic device and readable storage medium
CN107977318A (en) A kind of energy consumption and performance test methods of Android application programs
CN111104281B (en) Game performance monitoring method, device, system and storage medium
CN111314495A (en) Communication method, device, equipment, storage medium and system based on LoRaWAN of Internet of things
CN104468337B (en) Method for message transmission and device, message management central apparatus and data center
CN113348778B (en) Generalized satellite comprehensive test system based on DDS system
CN108173940A (en) The dial plate method for down loading and device of a kind of smartwatch
CN113766488A (en) Data transmission method and electronic equipment
CN102857948A (en) CDMA (code division multiple access) signal testing and practical-training platform device,
CN103635872B (en) A kind of menu displaying method, device and equipment
TWI446234B (en) Wireless-touch display system and method thereof
CN201467453U (en) Bluetooth information transmitting system based on network control
CN110619009A (en) Motion data segmentation statistical method and terminal
CN104104693A (en) Remote control method and device
CN110727552B (en) Equipment testing method, system, electronic equipment and storage medium
CN112135292B (en) Signal acquisition method, signal acquisition device, electronic equipment and storage medium
CN101071523A (en) Long-distance control method, system and terminal for data acquisition monitoring device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110518