CN104516817A - Memory leak detection method and device - Google Patents

Memory leak detection method and device Download PDF

Info

Publication number
CN104516817A
CN104516817A CN201410811137.5A CN201410811137A CN104516817A CN 104516817 A CN104516817 A CN 104516817A CN 201410811137 A CN201410811137 A CN 201410811137A CN 104516817 A CN104516817 A CN 104516817A
Authority
CN
China
Prior art keywords
internal memory
application information
memory
dynamic
dynamic application
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
Application number
CN201410811137.5A
Other languages
Chinese (zh)
Other versions
CN104516817B (en
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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201410811137.5A priority Critical patent/CN104516817B/en
Priority claimed from CN201210150053.2A external-priority patent/CN102681938B/en
Publication of CN104516817A publication Critical patent/CN104516817A/en
Application granted granted Critical
Publication of CN104516817B publication Critical patent/CN104516817B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a memory leak detection method and device. The method comprises the following steps: when a system starts one application program, establishing corresponding memory dynamic state applying information aiming at the application program; counting the corresponding memory dynamic state applying information of any application program according to a pre-set manner in an execution process of any application program; analyzing a changing condition of the memory dynamic state applying information according to each obtained counting result; and when determining that the memory dynamic state applying information is changed regularly, judging that any application program has the memory leak. Therefore, whether the memory leak exists or not can be conveniently judged, and the position of the memory leak in a code is accurately positioned; the system is conveniently debugged aiming at the memory leak problem by system testing personnel.

Description

A kind of memory leakage detecting method and device
The divisional application that the present patent application is the applying date is on 05 15th, 2012, application number is 201210150053.2, denomination of invention is the patent application of " a kind of memory leakage detecting method and device ".
Technical field
The present invention relates to communication facilities field tests, particularly relate to a kind of detection method and device of memory overflow.
Background technology
When the program is run, the internal memory dynamic space application statement in program can to system application for storing the space of data, and now, system is opened up a dynamic space and distributed to this application program from the heap space of internal memory; When after program end of run, system is released to the dynamic space that this program is opened up, to continue when other programs are run to use heap space; Now, may there is the error due to program design, cause system not discharge the situation of the dynamic space temporarily opened up in time, this situation is memory overflow.
Memory overflow can make system heap space more and more less, and system running speed reduces.When memory overflow acquires a certain degree, can make system cloud gray model slowly, until system cannot distribute dynamic space, namely heap space exhausts, and finally causes whole system to be paralysed.
Memory overflow is the problem often run in software running process, is again insoluble problem, this is because when system has just started to occur memory overflow, generally significantly do not show simultaneously; When memory overflow is serious, in system heap space depleted and cause system crash time, then it is just more difficult to search the position of memory overflow in code.
Under prior art, for solving searching and orientation problem of memory overflow, be typically employed in whole system and introduce Memory leakage detection program, the information of statistics internal memory dynamic assignment and release is recorded in journal file, and number of times and the size of non-releasing memory is drawn according to above-mentioned information, final outputting log file, to terminal, facilitates tester to debug.This invention Problems existing is, because the statistical information exporting journal file to is lack of alignment, tester needs to carry out the above-mentioned statistical information of job analysis loaded down with trivial details in a large number, thus judge whether to there is memory information, waste a large amount of manpower, execution efficiency is low, can not get rid of memory leak issue completely, complicated Memory leakage detection program consume system resources, also can make system burden increase the weight of.
In sum, memory overflow is unfavorable for that system is run smoothly, and the solution under prior art, there is Memory leakage detection program and take system space, error rate is large, and memory leak faults is got rid of insufficient, require higher to system testers, be not easy to the problems such as realization.
Summary of the invention
The embodiment of the present invention provides a kind of memory leakage detecting method and device, in order to solve in the Installed System Memory Leak Detection process that exists in prior art, it is large that the Memory leakage detection program existed takies system space, and error rate is large, needs to waste a large amount of manpower and carries out the problems such as memory overflow judgement.
The concrete technical scheme that the embodiment of the present invention provides is as follows:
A kind of memory leakage detecting method, described method comprises:
System often starts an application program, sets up the dynamic application information of corresponding internal memory for this application program, and in any one application program implementation, repeatedly adds up the dynamic application information of internal memory corresponding to described any application program according to predetermined manner;
The situation of change of the dynamic application information of internal memory according to each analysis of statistical results obtained, when determining that the dynamic application information Development pattern of described internal memory changes, judges that described any application program exists memory overflow.
A kind of Memory leakage detection device, this device comprises:
Application information sets up module, system often starts an application program, set up the dynamic application information of corresponding internal memory for this application program, and in any one application program implementation, repeatedly add up the dynamic application information of internal memory corresponding to described any application program according to predetermined manner;
Determination module, for the situation of change of the dynamic application information of internal memory according to each analysis of statistical results obtained, when determining that the dynamic application information Development pattern of described internal memory changes, judges that above-mentioned any application program exists memory overflow.
In the embodiment of the present invention, system often starts an application program, set up the dynamic application information of corresponding internal memory for this application program, and in any one application program implementation, repeatedly add up the dynamic application information of internal memory corresponding to any application program according to predetermined manner; According to the situation of change of the dynamic application information of the above-mentioned internal memory of each analysis of statistical results obtained, when determining that the dynamic application information Development pattern of this internal memory changes, judge that corresponding any application program exists memory overflow.In conjunction with the statistics to critical data in internal memory multidate information, can judge whether to there is memory overflow easily, the position of accurate memory leak positioning in code, facilitates system testers to debug system for memory leak issue.
Accompanying drawing explanation
Fig. 1 is Memory leakage detection structure drawing of device in the embodiment of the present invention;
Fig. 2 is the concrete implementing procedure of Memory leakage detection in the embodiment of the present invention;
Fig. 3 is memory information statistic processes schematic diagram in the embodiment of the present invention.
Embodiment
In the embodiment of the present invention, system often starts an application program, set up the dynamic application information of corresponding internal memory for this application program, and in any one application program implementation, repeatedly add up the dynamic application information of internal memory corresponding to any application program according to predetermined manner; According to the situation of change of the dynamic application information of the above-mentioned internal memory of each analysis of statistical results obtained, when determining that the dynamic application information Development pattern of this internal memory changes, judge that corresponding any application program exists memory overflow.In conjunction with the statistics to critical data in internal memory application information, can judge whether to there is memory overflow easily, the position of accurate memory leak positioning in code, facilitates system testers to debug system for memory leak issue.
Below in conjunction with accompanying drawing, the preferred embodiment of the present invention is described in detail.
Consult shown in Fig. 1, a kind of Memory leakage detection device in the embodiment of the present invention comprises application information and sets up module 11 and determination module 12, wherein,
Application information sets up module 11, for often starting an application program when system, the dynamic application information of corresponding internal memory is set up for this application program, and in any one application program implementation, repeatedly add up the dynamic application information of internal memory corresponding to above-mentioned any application program according to predetermined manner;
Determination module 12, for the situation of change according to the dynamic application information of the above-mentioned internal memory of each analysis of statistical results obtained, when determining that the dynamic application information Development pattern of this internal memory changes, judges that above-mentioned any application program exists memory overflow.
Memory leakage detection device can be embedded in the middle of the operating system of communication facilities to be detected, also can be made into a plug and pull device, access communication facilities to be detected, can detect this facility communication system and whether there is system leak problem.
Based on above-mentioned Memory leakage detection device, consult shown in Fig. 2, be designated as program A for any application program below and introduce the concrete technical scheme that the embodiment of the present invention provides in detail:
Step 200: system often starts an application program, the dynamic application information of corresponding internal memory is set up for this application program, and in any one application program implementation, repeatedly add up the dynamic application information of internal memory corresponding to above-mentioned any application program according to predetermined manner.
Be specially: add the dynamic application information statistics program of internal memory at the unified interface place that Installed System Memory is dynamically applied for, system often starts a program, then this program sets up the dynamic application information of corresponding internal memory.In any one application program (hereinafter referred to as program A) implementation, the dynamic application information of internal memory corresponding to said procedure A is repeatedly added up according to predetermined manner, as, after start-up routine A, for program A according to preset duration periodic statistics or according to the preset times dynamic application information of internal memory that repeatedly statistics program A is corresponding, in the process of the dynamic application information of above-mentioned statistics internal memory, can indicate according to user, carry out time-out process at any time.Said procedure A can be an application program, as " game " application program, also can be one section of common code.
Such as, can dynamically apply for that unified interface place defines the function of a statistics internal memory dynamic application information at Installed System Memory, this function comprises the parameters such as the place filename of program A, line number, the dynamic application total degree do not discharged and the total size of Dram that do not discharge; Then, a certain memory headroom is defined to store the dynamic application information of above-mentioned internal memory; Judge whether this exists the application of internal memory dynamic space, if existed, then add up the dynamic application information of internal memory, and by dynamic for internal memory application information Real-time Feedback to user interface.
The statistical information that above-mentioned dynamic application is relevant, the dynamic application information of internal memory can comprise following several:
The module title (can be empty) at dynamic application statement place;
The file name at dynamic application statement place;
The line number at dynamic application statement place;
The start address that dynamic application distributes;
The memory size of dynamic application;
The dynamic application total degree do not discharged;
The total size of the Dram do not discharged.
Wherein, the file name at dynamic application statement place, the dynamically line number at application statement place, and the total size of the Dram do not discharged is or/and the dynamic application total degree do not discharged is necessary statistical items; Showing all items of the dynamic application information of above-mentioned internal memory in user interface is preferred version.The line number at dynamic application statement place can be number can be also multirow line number line by line, namely during certain function of trigger A, and the line number that the code of the application internal memory dynamic space that this function is corresponding is corresponding.
The dynamic application information process of above-mentioned statistics internal memory can adopt the form of real-time statistics, as long as namely there is program in system or code runs, namely adds up the dynamic application information of program A internal memory of this operation; Also activation pattern can be adopted to start the statistics of the dynamic application information of internal memory, namely according to user's instruction, as selected internal memory dynamic application information statistics icon operation interface input private mark or at operation interface, start the dynamic application information statistics program of internal memory.Obviously, the above-mentioned second way saves system overhead more.
Step 210: according to the situation of change of the dynamic application information of the above-mentioned internal memory of each analysis of statistical results obtained, when determining that the dynamic application information Development pattern of this internal memory changes, judges that corresponding any program A exists memory overflow.
Repeat the dynamic application information process of above-mentioned statistics internal memory, the dynamic application information of repeatedly internal memory of above-mentioned statistics can be shown in real time and stores, then the multi-group data stored is analyzed, facilitate user to check internal memory multidate information statistics at any time; The dynamic application information of repeatedly internal memory of above-mentioned statistics can not carried out showing and storing, and directly analyze yet.Consult shown in Fig. 3, be specially:
The a certain state of selected facility communication system is original state, and the statistics dynamic application information of internal memory now, is presented at user interface by dynamic for this internal memory application information and dynamic for this internal memory application information is stored into appointed area; Or the dynamic application information of internal memory is not now shown, and it is temporarily put into buffer memory.According to user's instruction, get back to initial interface after working procedure A, the dynamic application information of the postrun internal memory of statistics program A.In the mode of the dynamic application information of user interface display memory after running according to display routine A, now, dynamic for above-mentioned internal memory application information can be presented in real time on user interface by the brush screen function in system and to be stored in above-mentioned appointed area place.According to the instruction of user, repeat aforesaid operations process according to certain predetermined manner, in this operating process, user as required, can suspend this operating process at any time, and system can the also dynamic application information of stored memory of display in real time.Due to the special requirement in programming process, memory-resident dynamic space is needed after some internal memory dynamic space that some programs are applied in operational process, or core resident situation within a period of time, therefore the process of the dynamic application information of above-mentioned statistics internal memory should be greater than twice usually, to ensure the reliability of the dynamic application information of internal memory, thus more whether decision-making system exists the problem of memory overflow.Above-mentioned internal memory dynamic application information display mode can be all program listings do not discharged in display memory dynamic space, clicks the dynamic application information display items of the above-mentioned internal memory of a certain program display in this program listing; Also can be with many details tabular form displays, in every bar details display memory dynamic space, not be released a series of information such as statement place file name, committed memory size, undelivered number of times of memory headroom.
According to the repeatedly statistics obtained, when determining that the total size of the Dram do not discharged that the dynamic application information of internal memory of repeatedly adding up comprises changes in preset range, namely after program A a dynamic application information of internal memory compared with the front dynamic application information of internal memory of program A, after the dynamic application committed memory space size that once dynamically do not discharge in application and number of times be always greater than before the once dynamically dynamic application committed memory space size that do not discharge of application and number of times, and the difference of above-mentioned every twice internal memory dynamic application information when changing in preset range, code in read-me A is write and is gone wrong, there is the problem of memory overflow, above-mentioned comparison result is presented on user interface, display items can be memory overflow result of determination, dynamic application statement place filename, the line number at dynamic application statement place, the memory size of dynamic application, the dynamic application total degree etc. do not discharged, if when the dynamic application information statistics of above-mentioned repeatedly internal memory all changes in preset range, or only front exist comparatively big difference for twice, after this when the dynamic application information of the internal memory added up all changes in preset range, there is not memory leak issue in illustrative system, be presented on user interface by above-mentioned comparing result, now display items can be memory overflow result of determination.Usually, the dynamic application information statistics number of above-mentioned internal memory is for being not less than twice.When the total size of the Dram do not discharged that above-mentioned basis is repeatedly added up and the dynamic application total degree do not discharged change in preset range, then it is determined that the presence of memory overflow, refer to: the ordered series of numbers that the total size of the Dram that program A does not discharge each time forms according to time sequencing is or/and the dynamic application total degree that do not discharge exists the equal difference change in preset range during according to the ordered series of numbers that time sequencing forms, then read-me A exists memory overflow.Such as, set the ordered series of numbers of the total size composition of all previous Dram do not discharged, all previous difference variation range is 5KB, and the dynamic application total degree do not discharged is 1; Selected standby interface is initial interface, and adding up the total size of Dram now do not discharged is 0, and the dynamic application total degree do not discharged is 0; Working procedure A, then returns initial interface, and adding up the total size of internal memory now do not discharged is 50KB, and the dynamic application total degree do not discharged is 1; Working procedure A, returns initial interface again, and adding up the total size of internal memory now do not discharged is 98KB, and the dynamic application total degree do not discharged is 2; Working procedure A, returns initial interface again, and adding up the total size of internal memory now do not discharged is 150KB, and the dynamic application total degree do not discharged is 3; Working procedure A, returns initial interface again, and adding up the total size of internal memory now do not discharged is 199KB, and the dynamic application total degree do not discharged is 4.After above-mentioned three the working procedure A of system statistics, the total magnitude difference do not discharged in the dynamic application information of internal memory is followed successively by 50KB, 48KB, 52KB, 49KB, then the variation range that the ordered series of numbers repeatedly adding up the dynamic total size composition of non-releasing memory of said procedure A exists all previous difference is all less than the equal difference change of 5KB; For the application total degree of release is also arithmetic progression in the dynamic application information of internal memory.There is memory overflow in number of times decision procedure A, needs to debug this program.Tester can consider various situation, sets the variation range of above-mentioned dynamic application information.
The dynamic application information of internal memory of program A can be presented at user interface with the form of suspension window, in each operation steps of the above-mentioned repeatedly statistic processes of dynamic application information, all show this suspension window, facilitate the dynamic application information of user's Real Time Observation internal memory.
Such as, when Memory leakage detection is carried out to mobile phone, the standby interface selecting mobile phone is original state, can the dynamic application information of real-time statistics internal memory now, also after can triggering the dynamic application information statistics program of internal memory by user, the dynamic application information of internal memory of statistics standby interface, this statistical information is presented on mobile phone screen, and be stored into the region that user specifies, according to the instruction of user, " short message " program of operation is also carried out create message and sends note operation, now, internal memory dynamic space application code in " note " program can be this operation application internal memory dynamic space, write complete when note and return standby interface after sending, the statistics dynamic application information of internal memory now, statistical information is presented on mobile phone screen in real time, and be stored into the region that user specifies, mobile phone screen display items is:
For the first time: nothing;
For the second time: storage card-non-release dynamics application of note file-60 row-committed memory dynamic space 1M-1 time.
According to user's instruction, repeat said process twice, system in chronological sequence order shows and the dynamic application information of stored memory 4 altogether, if adopt many details list display modes, mobile phone screen display items is:
For the first time: nothing;
For the second time: storage card-non-release dynamics application of note file-60 row-committed memory dynamic space 1M-1 time;
For the third time: storage card-non-release dynamics application of note file-60 row-committed memory dynamic space 2M-2 times;
4th time: storage card-non-release dynamics application of note file-60 row-committed memory dynamic space 3M-3 times.
Contrast 4 dynamic application informations of internal memory, mobile phone screen show final Memory leakage detection result:
There is memory overflow!
The non-release dynamics application of note file-60 row-committed memory dynamic space 3M-3 times.
Therefore, can judge that this mobile phone exists memory leak issue, its reason may be, lacks the code of write information concurrent carry information operation application internal memory dynamic space release in " note " program.Program test personnel can find the position of dynamic leakage comparatively quickly, and line code of going forward side by side is revised.
When program A runs, system is the Dram of these program A memory allocated data, and when program A runs, add up the dynamic application information of this program internal memory, internal memory release information record purge program is added at the unified interface place of Installed System Memory release, when the internal memory that program A dynamically applies for is released, remove the dynamic application information of internal memory of the program A in internal memory dynamic application information statistics program statistics.
By to the accurate judgement of memory overflow and location, system testers can search the code position that there is memory leak issue comparatively quickly, thus amendment code, the application program in sophisticated systems.
In sum, in the embodiment of the present invention, system often starts an application program, the dynamic application information of corresponding internal memory is set up for this application program, and in any one application program implementation, repeatedly add up the dynamic application information of internal memory corresponding to described any application program according to predetermined manner; According to the situation of change of the dynamic application information of the above-mentioned internal memory of each analysis of statistical results obtained, when determining that the dynamic application information Development pattern of this internal memory changes, judge that this any application program exists memory overflow.Like this, can judge whether to there is memory overflow easily, the position of accurate memory leak positioning in code, facilitates system testers to debug system for memory leak issue.It is little that the method takies system memory space, judges and accurate positioning, can be widely used in the various communication facilities such as mobile phone, MP3, MP4, GPS, facilitate system testers to debug system for memory leak issue memory overflow.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (9)

1. a memory leakage detecting method, is characterized in that, described method comprises:
System often starts an application program, sets up the dynamic application information of corresponding internal memory for this application program, and in any one application program implementation, repeatedly adds up the dynamic application information of internal memory corresponding to described any application program according to predetermined manner;
The situation of change of the dynamic application information of internal memory according to each analysis of statistical results obtained, when determining that the dynamic application information Development pattern of described internal memory changes, judges that described any application program exists memory overflow;
Wherein, when determining that the dynamic application information Development pattern of described internal memory changes, judge that described any application program exists memory overflow, comprise: according to each statistics obtained, determine the ordered series of numbers that the total size of Dram that any application program do not discharge each time forms according to time sequencing or/and the dynamic application total degree that do not discharge exists the equal difference change in preset range during according to the ordered series of numbers that time sequencing forms, then judge that described any application program exists memory overflow, and by dynamically applying for the position of statement place file name and line number memory leak positioning, and display memory leak judgement result, and described dynamic application statement place file name and line number.
2. the method for claim 1, is characterized in that, describedly repeatedly adds up the dynamic application information of internal memory corresponding to described any application program according to predetermined manner, comprising:
According to the dynamic application information of internal memory that an application program any described in preset duration periodic statistics is corresponding; Or
According to the dynamic application information of internal memory that the described any application program of preset times statistics is corresponding.
3. the method for claim 1, is characterized in that, the dynamic application information of described internal memory at least comprises file name and the line number at dynamically application statement place, and the total size of the Dram do not discharged is or/and the dynamic application total degree that do not discharge.
4. the method for claim 1, is characterized in that, the dynamic application information of described statistics internal memory, comprising:
The mode of real-time statistics is adopted to add up the dynamic application information of internal memory; Or
Adopt the dynamic application information of triggering mode statistics internal memory.
5. the method for claim 1, is characterized in that, after repeatedly adding up the dynamic application information of internal memory corresponding to described any application program, comprises further according to predetermined manner:
The dynamic application information of internal memory of repeatedly adding up described any application program according to predetermined manner corresponding is shown; Wherein, internal memory dynamic application information display mode comprises in display memory dynamic space all program listings do not discharged, and clicks the dynamic application information of the above-mentioned internal memory of a certain program display in this program listing; Or, with many details tabular form displays, the dynamic application information of internal memory in every bar details display memory dynamic space.
6. a Memory leakage detection device, is characterized in that, this device comprises:
Application information sets up module, for often starting an application program when system, the dynamic application information of corresponding internal memory is set up for this application program, and in any one application program implementation, repeatedly add up the dynamic application information of internal memory corresponding to described any application program according to predetermined manner;
Determination module, for the situation of change of the dynamic application information of internal memory according to each analysis of statistical results obtained, when determining that the dynamic application information Development pattern of described internal memory changes, judges that described any application program exists memory overflow;
Described determination module, specifically for each statistics according to acquisition, determine the ordered series of numbers that the total size of Dram that any application program do not discharge each time forms according to time sequencing or/and the dynamic application total degree that do not discharge exists the equal difference change in preset range during according to the ordered series of numbers that time sequencing forms, then judge that described any application program exists memory overflow, and by dynamically applying for the position of statement place file name and line number memory leak positioning; And display memory leak judgement result, and described dynamic application statement place file name and line number.
7. device as claimed in claim 6, it is characterized in that, described application information sets up module, specifically for according to the dynamic application information of internal memory corresponding to an application program any described in preset duration periodic statistics; Or according to the dynamic application information of internal memory that the described any application program of preset times statistics is corresponding.
8. device as claimed in claim 6, it is characterized in that, the dynamic application information of internal memory that described application information sets up module statistics at least comprises file name and the line number at dynamically application statement place, and the total size of the Dram do not discharged is or/and the dynamic application total degree that do not discharge.
9. device as claimed in claim 6, it is characterized in that, described application information sets up module, adds up the dynamic application information of internal memory specifically for adopting the mode of real-time statistics; Or adopt the dynamic application information of triggering mode statistics internal memory.
CN201410811137.5A 2012-05-15 2012-05-15 A kind of memory leakage detecting method and device Active CN104516817B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410811137.5A CN104516817B (en) 2012-05-15 2012-05-15 A kind of memory leakage detecting method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410811137.5A CN104516817B (en) 2012-05-15 2012-05-15 A kind of memory leakage detecting method and device
CN201210150053.2A CN102681938B (en) 2012-05-15 2012-05-15 Memory leakage detecting method and device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201210150053.2A Division CN102681938B (en) 2012-05-15 2012-05-15 Memory leakage detecting method and device

Publications (2)

Publication Number Publication Date
CN104516817A true CN104516817A (en) 2015-04-15
CN104516817B CN104516817B (en) 2017-09-29

Family

ID=52792160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410811137.5A Active CN104516817B (en) 2012-05-15 2012-05-15 A kind of memory leakage detecting method and device

Country Status (1)

Country Link
CN (1) CN104516817B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912398A (en) * 2016-04-06 2016-08-31 北京小米移动软件有限公司 Memory detection method and device
CN106708605A (en) * 2015-07-14 2017-05-24 腾讯科技(深圳)有限公司 Method and apparatus for detecting resource leak
CN107277226A (en) * 2017-05-11 2017-10-20 珠海金山网络游戏科技有限公司 A kind of method and device for obtaining mobile phone application memory snapshot and Memory Allocation storehouse
CN110457179A (en) * 2019-07-29 2019-11-15 Oppo广东移动通信有限公司 System detecting method, internal memory monitoring method, device, medium and electronic equipment
CN111356987A (en) * 2017-09-18 2020-06-30 深圳传音通讯有限公司 Dynamic memory identification method and device
CN114253825A (en) * 2020-09-22 2022-03-29 腾讯科技(深圳)有限公司 Memory leak detection method and device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1466057A (en) * 2002-06-20 2004-01-07 华为技术有限公司 Method for checking sofeware memory leak
CN101110044A (en) * 2007-08-28 2008-01-23 中兴通讯股份有限公司 Method and system for internal memory monitoring management
CN101162436A (en) * 2006-10-13 2008-04-16 中兴通讯股份有限公司 Ems memory leakage testing method in communication apparatus system
CN101599048A (en) * 2009-07-01 2009-12-09 福建星网锐捷网络有限公司 A kind of method and apparatus of internal memory monitoring
CN101908018A (en) * 2010-07-20 2010-12-08 北京海泰方圆科技有限公司 System and method for judging memory leak
US8539454B2 (en) * 2009-12-09 2013-09-17 International Business Machines Corporation Method and system for detecting memory leaks

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1466057A (en) * 2002-06-20 2004-01-07 华为技术有限公司 Method for checking sofeware memory leak
CN101162436A (en) * 2006-10-13 2008-04-16 中兴通讯股份有限公司 Ems memory leakage testing method in communication apparatus system
CN101110044A (en) * 2007-08-28 2008-01-23 中兴通讯股份有限公司 Method and system for internal memory monitoring management
CN101599048A (en) * 2009-07-01 2009-12-09 福建星网锐捷网络有限公司 A kind of method and apparatus of internal memory monitoring
US8539454B2 (en) * 2009-12-09 2013-09-17 International Business Machines Corporation Method and system for detecting memory leaks
CN101908018A (en) * 2010-07-20 2010-12-08 北京海泰方圆科技有限公司 System and method for judging memory leak

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708605A (en) * 2015-07-14 2017-05-24 腾讯科技(深圳)有限公司 Method and apparatus for detecting resource leak
CN105912398A (en) * 2016-04-06 2016-08-31 北京小米移动软件有限公司 Memory detection method and device
CN107277226A (en) * 2017-05-11 2017-10-20 珠海金山网络游戏科技有限公司 A kind of method and device for obtaining mobile phone application memory snapshot and Memory Allocation storehouse
CN111356987A (en) * 2017-09-18 2020-06-30 深圳传音通讯有限公司 Dynamic memory identification method and device
CN110457179A (en) * 2019-07-29 2019-11-15 Oppo广东移动通信有限公司 System detecting method, internal memory monitoring method, device, medium and electronic equipment
CN114253825A (en) * 2020-09-22 2022-03-29 腾讯科技(深圳)有限公司 Memory leak detection method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN104516817B (en) 2017-09-29

Similar Documents

Publication Publication Date Title
CN102681938B (en) Memory leakage detecting method and device
CN109302522B (en) Test method, test device, computer system, and computer medium
CN104182320B (en) A kind of method and device for monitoring memory overflow
CN104516817A (en) Memory leak detection method and device
CN100504807C (en) EMS memory leakage testing method in communication apparatus system
CN107066390B (en) Dynamic memory leak detection method and system
US9459991B2 (en) Heap dump object identification in a heap dump analysis tool
CN104461846B (en) The method and apparatus for detecting application program power consumption
CN108664372A (en) Monitoring device, method and the computer readable storage medium of test process
CN103186463B (en) Determine the method and system of the test specification of software
CN113721920A (en) Diagnosis method and system of application component, electronic device and storage medium
CN104156305A (en) Application program testing method and device
Seo et al. A profiling method by PCB hooking and its application for memory fault detection in embedded system operational test
CN112612697A (en) Software defect testing and positioning method and system based on byte code technology
CN100382043C (en) Device and method for internal storage monitoring
CN111400199A (en) Software aging detection method and device and computer readable storage medium
CN113687942B (en) Detection method and device and electronic equipment
CN115840707A (en) Flash test method, device and medium
CN113641628B (en) Data quality detection method, device, equipment and storage medium
CN112346994B (en) Test information association method, device, computer equipment and storage medium
US7546589B2 (en) Semi-automated desk checking system and method
CN112558982B (en) Code detection method and device and computer equipment
CN111506513B (en) File system testing method based on hierarchical model
CN113535143A (en) Stack information processing method and device, electronic equipment and storage medium
US9852046B1 (en) Method and system for automated debugging memory allocation and memory release

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant