CN106326106B - Resource leakage detection method based on android handbooks - Google Patents

Resource leakage detection method based on android handbooks Download PDF

Info

Publication number
CN106326106B
CN106326106B CN201610057088.XA CN201610057088A CN106326106B CN 106326106 B CN106326106 B CN 106326106B CN 201610057088 A CN201610057088 A CN 201610057088A CN 106326106 B CN106326106 B CN 106326106B
Authority
CN
China
Prior art keywords
looper
values
android
resource
handbooks
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.)
Active
Application number
CN201610057088.XA
Other languages
Chinese (zh)
Other versions
CN106326106A (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.)
Shanghai Huace Navigation Technology Ltd
Original Assignee
Shanghai Huace Navigation Technology 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 Shanghai Huace Navigation Technology Ltd filed Critical Shanghai Huace Navigation Technology Ltd
Priority to CN201610057088.XA priority Critical patent/CN106326106B/en
Publication of CN106326106A publication Critical patent/CN106326106A/en
Application granted granted Critical
Publication of CN106326106B publication Critical patent/CN106326106B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Factory Administration (AREA)

Abstract

The present invention provides a kind of resource leakage detection methods based on android handbooks, include the following steps:Step S1, into the Android system of receiver, all processes are checked;Step S2, using automation tools between multi-process switch;Step S3, the LOOPER values of each process are detected, and generate storage file;Step S4, it checks the storage file generated, and repeats step S2 to step S3 several times;Step S5, the storage file of generation is judged, checks whether LOOPER values are 1, if LOOPER values are 1, show No Assets leak case, if LOOPER values are not 1, showing resource, there are leak cases.Just there has been no ripe products to propose a kind of technical solution that the resource leakage problem for android handbooks is detected at present by the present invention, realize test automation, without artificially ceaselessly inputting the resource service condition of order, inquiry handbook, and then each memory is counted, it to be saved on time and manpower very much.

Description

Resource leakage detection method based on android handbooks
Technical field
The present invention relates to programming fields, and in particular to arrives a kind of resource leak detection side based on android handbooks Method.
Background technology
In existing android handbooks, usually because repeatedly switching between program, it is accumulated to certain number and just will appear Crash phenomenon does not have ripe product to be detected system resource leakage problem in present market, and resource is revealed Problem will bring fatal influence to system, to which the meaning for detecting resource leakage problem is just very great.
Invention content
The present invention provides a kind of resource leakage detection methods based on android handbooks, include the following steps:
Step S1, into the Android system of receiver, all processes are checked;
Step S2, using automation tools between multi-process switch;
Step S3, the LOOPER values of each process are detected, and generate storage file;
Step S4, it checks the storage file generated, and repeats step S2 to step S3 several times;
Step S5, the storage file of generation is judged, checks whether LOOPER values are 1, if LOOPER values are 1, table Bright No Assets leak case, if LOOPER values are not 1, showing resource, there are leak cases.
In the above-mentioned resource leakage detection method based on android handbooks, all processes include:Foreground process, It can be seen that process, secondary service, background process, Content supply node, null process.
In the above-mentioned resource leakage detection method based on android handbooks, step S2 is once repeated extremely per 10s Step S3.
In the above-mentioned resource leakage detection method based on android handbooks, the receiver is GNSS receiver.
The present invention just at present there has been no ripe product propose a kind of resource leakage problem for android handbooks into The technical solution of row detection, realizes test automation, and the resource without artificial ceaselessly input order, inquiry handbook uses feelings Condition, and then each memory is counted, it to be saved on time and manpower very much, the present invention does not have to artificially between line program Switching can save many manpowers, and carrying out automation generation file can save much in the time.
Description of the drawings
Upon reading the detailed description of non-limiting embodiments with reference to the following drawings, the present invention and its feature, outer Shape and advantage will become more apparent upon.Identical label indicates identical part in whole attached drawings.Not deliberately proportionally Draw attached drawing, it is preferred that emphasis is the purport of the present invention is shown.
Fig. 1 is a kind of flow chart of the resource leakage detection method based on android handbooks provided by the invention.
Specific implementation mode
In the following description, a large amount of concrete details are given in order to provide more thorough understanding of the invention.So And it is obvious to the skilled person that the present invention may not need one or more of these details and be able to Implement.In other examples, in order to avoid with the present invention obscure, for some technical characteristics well known in the art not into Row description.
In order to thoroughly understand the present invention, detailed step and detailed structure will be proposed in following description, so as to Illustrate technical scheme of the present invention.Presently preferred embodiments of the present invention is described in detail as follows, however other than these detailed descriptions, this Invention can also have other embodiment.
The present invention provides a kind of resource leakage detection methods based on android handbooks, include the following steps:
Step S1, into the Android system of receiver, all processes are checked.Optionally implement in the present invention one In example, receiver is GNSS receiver;All processes include:It is foreground process, visible process, secondary service, background process, interior Hold the processes such as supply node, null process.
Step S2, using automation tools between multi-process switch.
Step S3, the LOOPER values of each process are detected, and generate storage file.
Step S4, it checks the storage file generated, and repeats step S2 to step S3 several times.It is optional in the present invention one In embodiment, step S2 is once repeated to step S3 per 10s.
Step S5, the storage file of generation is judged, checks whether LOOPER values are 1, if LOOPER values are 1, table Bright No Assets leak case, if LOOPER values are not 1, showing resource, there are leak cases.
In conclusion since present invention employs technical solutions as above, just there has been no ripe products to propose one at present The technical solution that kind is detected for the resource leakage problem of android handbooks, realizes test automation, is not necessarily to artificially not The resource service condition for inputting order with stopping, inquiring handbook, and then each memory is counted, it to be saved very on time and manpower It is more, the present invention do not have to artificially can save many manpowers into the switching between line program, carry out automation generate file when Between can save it is very much.
Presently preferred embodiments of the present invention is described above.It is to be appreciated that the invention is not limited in above-mentioned Particular implementation, wherein the equipment and structure be not described in detail to the greatest extent are construed as giving reality with the common mode in this field It applies;Any technical person familiar with the field, without departing from the scope of the technical proposal of the invention, all using the disclosure above Methods and technical content many possible changes and modifications are made to technical solution of the present invention, or be revised as equivalent variations etc. Embodiment is imitated, this is not affected the essence of the present invention.Therefore, every content without departing from technical solution of the present invention, foundation The technical spirit any simple modifications, equivalents, and modifications made to the above embodiment of the present invention, still fall within the present invention In the range of technical solution protection.

Claims (2)

1. a kind of resource leakage detection method based on android handbooks, which is characterized in that include the following steps:
Step S1, into the Android system of GNSS receiver, all processes are checked;
Step S2, using automation tools between multi-process switch;
Step S3, the LOOPER values of each process are detected, and generate storage file;
Step S4, it checks the storage file generated, and repeats step S2 to step S3 several times;
Step S5, the storage file of generation is judged, checks whether LOOPER values are 1, if LOOPER values are 1, shows nothing Resource leak case, if LOOPER values are not 1, showing resource, there are leak cases;
All processes include:Foreground process, visible process, secondary service, background process, Content supply node, null process.
2. the resource leakage detection method based on android handbooks as described in claim 1, which is characterized in that primary per 10s Step S2 is repeated to step S3.
CN201610057088.XA 2016-01-27 2016-01-27 Resource leakage detection method based on android handbooks Active CN106326106B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610057088.XA CN106326106B (en) 2016-01-27 2016-01-27 Resource leakage detection method based on android handbooks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610057088.XA CN106326106B (en) 2016-01-27 2016-01-27 Resource leakage detection method based on android handbooks

Publications (2)

Publication Number Publication Date
CN106326106A CN106326106A (en) 2017-01-11
CN106326106B true CN106326106B (en) 2018-11-09

Family

ID=57725645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610057088.XA Active CN106326106B (en) 2016-01-27 2016-01-27 Resource leakage detection method based on android handbooks

Country Status (1)

Country Link
CN (1) CN106326106B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107179950B (en) * 2017-06-29 2020-10-27 努比亚技术有限公司 Application process processing method, mobile terminal and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317702A (en) * 2014-09-30 2015-01-28 广东欧珀移动通信有限公司 Method and device for automatic testing of memory of intelligent mobile terminal
CN104834601A (en) * 2015-05-13 2015-08-12 上海斐讯数据通信技术有限公司 Android system-based automatic testing method for memory leakage of intelligent terminal
CN104932970A (en) * 2015-05-29 2015-09-23 小米科技有限责任公司 Monitoring method and device of memory leakage
CN104991847A (en) * 2015-07-03 2015-10-21 厦门美图移动科技有限公司 Memory leakage automatic testing method and apparatus and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9317393B2 (en) * 2013-06-13 2016-04-19 Oracle International Corporation Memory leak detection using transient workload detection and clustering

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317702A (en) * 2014-09-30 2015-01-28 广东欧珀移动通信有限公司 Method and device for automatic testing of memory of intelligent mobile terminal
CN104834601A (en) * 2015-05-13 2015-08-12 上海斐讯数据通信技术有限公司 Android system-based automatic testing method for memory leakage of intelligent terminal
CN104932970A (en) * 2015-05-29 2015-09-23 小米科技有限责任公司 Monitoring method and device of memory leakage
CN104991847A (en) * 2015-07-03 2015-10-21 厦门美图移动科技有限公司 Memory leakage automatic testing method and apparatus and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Android线程模型解析;孤寒江雪;《https://wenku.baidu.com/view/a5242b0c76c66137ee0619df.html》;20111017;第1-9页 *

Also Published As

Publication number Publication date
CN106326106A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
US8954807B2 (en) Fault-based software testing method and system
IN2015CH04673A (en)
CN104820640A (en) Webpage testing method and device
CN105808227A (en) Art resource file detection method and device
CN104317722A (en) Unit testing method and device based on Junit
CN106598760A (en) Message queue consumption method and apparatus
CN106980571A (en) The construction method and equipment of a kind of test use cases
CN113492114A (en) Semiconductor chip testing method and device for integrated circuit
CN106708723B (en) A kind of test, method of calibration and device
CN104851821A (en) Wafer test data analysis method
US9238554B2 (en) Computing device and method of pairing accessories
CN106326106B (en) Resource leakage detection method based on android handbooks
CN105404574B (en) Smart card and mobile terminal consistency test method and device
CN104462983A (en) PHP source code processing method and system
CN108063101B (en) Sampling method for wafer defect test
CN104834586A (en) Automatic test method, device and system of Android interface
CN106294364A (en) Realize the method and apparatus that web crawlers captures webpage
CN104021083A (en) Test method and device
CN112559313A (en) Test case setting method and device, storage medium and electronic equipment
CN104052638B (en) Intermodule collision detection method, device and server
CN104239199A (en) Virtual robot generation method, automatic test method and related device
CN105955879A (en) Method and device for testing two-dimensional code generation algorithm
CN106250298A (en) A kind of method of testing and device
CN106291222A (en) The method of testing of a kind of holding wire annexation and device
CN102623369A (en) Wafer test method

Legal Events

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