CN105528177A - Electronic device and management method thereof - Google Patents

Electronic device and management method thereof Download PDF

Info

Publication number
CN105528177A
CN105528177A CN201410514410.8A CN201410514410A CN105528177A CN 105528177 A CN105528177 A CN 105528177A CN 201410514410 A CN201410514410 A CN 201410514410A CN 105528177 A CN105528177 A CN 105528177A
Authority
CN
China
Prior art keywords
request
section
database
electronic installation
storage address
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
CN201410514410.8A
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.)
MStar Semiconductor Inc Taiwan
Original Assignee
MStar Semiconductor Inc Taiwan
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 MStar Semiconductor Inc Taiwan filed Critical MStar Semiconductor Inc Taiwan
Priority to CN201410514410.8A priority Critical patent/CN105528177A/en
Publication of CN105528177A publication Critical patent/CN105528177A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides an electronic device employing a memory. The electronic device comprises a working module, a management module, a database and a filtering module. When the working module needs the memory to execute a task, the working module sends a using request. The management module is used for determining whether the using request is allowed. If the using request is allowed, the management generates a request data cluster according to the using request. The filtering module is used for receiving the data cluster from the management module, and determining whether to store the data cluster in the database according to a preset filtering condition.

Description

Electronic installation and management method thereof
Technical field
The present invention is relevant to the administrative skill of the storer in electronic product.
Background technology
In various electronic product, there are more and more many functions to be through software program and reach.In order to ensure electronic product normal operation, fabricator can carry out test procedure before product export, wishes that the defect can uncovered in software program is also remedied in advance.For example, tester deliberately may perform certain application program for a long time, to check whether existence can continue unreasonable memory leakage (memoryleak) problem taking storage space to this application program.
Fig. 1 presents the local function calcspar of an existing electronic installation.When the operational module 11 of the application program of a certain task of responsible execution needs to use storer 12, operational module 11 can send one to storage application DLL (dynamic link library) (applicationprogramminginterface, API) 13 and use request.The free space size current according to storer 12, storage application DLL (dynamic link library) 13 can determine whether to permit this use request.If this use request is allowed, the storage application DLL (dynamic link library) 13 meeting storage space that assignment one is available accordingly to operational module 11, and asks relevant various information stored in database 14 by using to this.Tester is that the information stored according to database 14 judges whether the application program performed by operational module 11 exists the defect relevant to storer 12.
In practice, may have many application programs simultaneously operated in above-mentioned electronic installation, each application program may perform multiple task again separately simultaneously.In current art, each relevant information for the use request that storer 12 sends all can be loaded database 14.In that case, the information of write into Databasce 14 is very complicated, thus needs the sizable database 14 of capacity.On the other hand, existing electronic installation is designed to the content can only could taking out database 14 when its overall operation comes to an end mostly, is inspected analysis.The ageing design of this not tool causes tester cannot find the defect of application program in real time, and the bulk information produced after all must processing accumulation a period of time when at every turn analyzing.
Summary of the invention
For solving the problem, the present invention proposes a kind of new electronic installation and management method thereof.By adopting suitable strobe utility, the storer being stored into database uses information can be greatly diminished, to save the database volume of needs.In addition, provide the function of monitoring automatically according to electronic installation of the present invention and management method, improve the efficiency of testing process by this.Concept of the present invention can be applicable to various needs makes memory-aided electronic installation.
A specific embodiment according to the present invention is the electronic installation of a kind of use one storer, wherein comprises an operational module, an administration module, a database and a filtering module.Need to use this storer when this operational module is in execution one task, this operational module sends a use request.This administration module system is in order to judge whether to permit this use request.If this use request is allowed, this administration module is trooped according to this use request generation one request msg.This filtering module system troops in order to receive this request msg from this administration module, and determines whether troop this request msg stored in this database according to a default filtercondition.
Another specific embodiment according to the present invention is a kind of management method being applied to an electronic installation.This electronic installation comprises a database and uses a storer.First this management method performs a receiving step, and receive the use request sent for this storer, wherein this use request is relevant to a task.Then, this management method performs a determining step, judges whether to permit this use request.If this use request is allowed, a request msg is trooped and to be produced according to this use request.Then, presetting filtercondition according to one, whether this request msg determined should stored in this database if being trooped.
Can be further understood by following detailed Description Of The Invention and institute's accompanying drawings about the advantages and spirit of the present invention.
Accompanying drawing explanation
Fig. 1 presents the local function calcspar of an existing electronic installation.
Fig. 2 is the functional block diagram according to the electronic installation in one embodiment of the invention.
Fig. 3 presents the embodiment comprising a monitoring modular according to electronic installation of the present invention further.
Fig. 4 presents the embodiment comprising a section logging modle according to electronic installation of the present invention further.
Fig. 5 is the process flow diagram according to the management method in one embodiment of the invention.
Fig. 6 presents the follow-up flow process example of the one that the management method of Fig. 5 can be coordinated to realize.
Should be noted that, of the present inventionly graphicly comprise the functional block diagram presenting multiple functional module associated with each other.These graphic not thin portion circuit diagrams, and connecting line is wherein only in order to represent signal stream.Multiple interactive relationship between functional assembly and/or program not necessarily will begin to reach through direct electrically connect.In addition, the function of individual elements not necessarily will the mode as illustrated in graphic be distributed, and distributed block not necessarily will realize by electronic package in a distributed manner.
Symbol description
11: operational module 12: storer
13: storage application DLL (dynamic link library) 14: database
200: electronic installation 21: operational module
22: storer 23: administration module
24: database 25: filtering module
26: monitoring modular 27: section logging modle
S51 ~ S54: process step S61 ~ S64: process step
Embodiment
A specific embodiment according to the present invention is a kind of electronic installation, and its functional block diagram system is illustrated in Fig. 2.Comprise operational module 21, administration module 23, database 24 and a filtering module 25 in electronic installation 200, it uses a storer 22.In practical application, electronic installation 200 is applied to the various electronic installation being equipped with storer, such as mobile phone, personal computer, home appliance etc., but is not limited with application-specific.In addition, category of the present invention is not defined in specific storage mechanism; Storer 22 can comprise one or more volatility or nonvolatile memory device, such as random-access semiconductor memory, magnetic and/or optical memory, flash memory etc.
Need when operational module 21 is in execution one task to use storer 22, operational module 21 just sends a use request.Administration module 23 is judge whether to permit this use request in order to the free space current according to storer 22.If this use request is allowed, administration module 23 informs except operational module 21 except responding an allowance, also can troop (chunk) according to this use request generation one request msg.For example, this request msg is trooped one or more message that can comprise in following message: the identifying information of the task of asking corresponding to this use, administration module 23 points task a storage address of this use request, and the storer use amount that this use request is granted.In practice, administration module 23 can utilize various control/processing platform to realize, and comprises fixed and Programmable Logic Device, such as programmable gate array, the integrated circuit for application-specific, microcontroller, microprocessor, digital signal processor.In an embodiment, be contained in administration module 23 in order to the storage application DLL (dynamic link library) (API) linked up with storer 22.
Filtering module 25 Self management module 23 receives this request msg and troops, and determines whether troop this request msg stored in database 24 according to a default filtercondition.In an embodiment, the default filtercondition that filtering module 25 adopts comprises a Preset Time section.Easy speech it, filtering module 25 can be set to only to allow request send the time request msg dropped within some or multiple special time section to troop and be stored into database 24.In another embodiment, the default filtercondition that filtering module 25 adopts comprises a preset memory address section.Easy speech it, the request msg that the storage address that filtering module 25 can be set to make database 24 storages be assigned drops within some or multiple particular address section is trooped.In another embodiment, the default filtercondition that filtering module 25 adopts comprises the identifying information of a task.Easy speech it, filtering module 25 can be set to make database 24 to store the request msg relevant to some or multiple task to troop.
Should be noted that, above-mentioned default filtercondition can need selected according to actual test by tester.Be different from without screening, the database directly receiving a large amount of message in prior art, storedly in database 24 be through the message after filtering according to actual testing requirement.By this, the capacity according to database 24 of the present invention can suitably be reduced, to save the hardware cost of electronic installation 200.
In an embodiment, the multiple request msg constellation stored in database 24 are sorted according to a task identifying information, a storage address or a storer use amount.Suitable sequence contributes to promoting tester from the convenience wherein capturing message.Refer to Fig. 3.Electronic installation 200 can comprise a monitoring modular 26 further, in order to link up through filtering module 25 and database 24, troops with the multiple request msgs stored by monitor database 24.When the plurality of request msg is trooped display one unusual condition, monitoring modular 26 can produce a unusual condition report in real time, notifies tester.For example, this unusual condition can comprise a certain task and there is a memory leakage (memoryleak) problem.Should be noted that, the judgment mode of the unusual conditions such as memory leakage, known to persond having ordinary knowledge in the technical field of the present invention, does not repeat in this.In another embodiment, monitoring modular 26 is directly be coupled to database 24.
Refer to Fig. 4.Electronic installation 200 can comprise a section logging modle 27 further, and it can be a standalone module, is also integrated in database 24.The record section that section logging modle 27 adopts can be a time section or a storage address section; Below illustrate for storage address section.In an automatic operating mode, as long as troop stored in new request msg in database 24, filtering module 25 just can record more in new section logging modle 27, the zone field that makes section logging modle 27 write down this new request msg to troop corresponding (that is this asks the storage address section that is dispatched to).By this, all request msgs that database 24 stores can be recorded in section logging modle 27 to troop each corresponding storage address section.By the record in acquisition section logging modle 27, monitoring modular 26 can analyze the behaviour in service of storer 22.In a manual operating mode, the storage address section system that the record of section logging modle 27 is contained is set by tester.If troop stored in new request msg in database 24, filtering module 25 can judge whether this request msg corresponding storage address section of trooping drops in the storage address section that tester sets for section logging modle 27.If so, section logging modle 27 begins the record of trooping in more new database 24 and/or section logging modle 27 according to this request msg.If not, then this request msg is not just trooped loading of databases 24 and/or section logging modle 27 by section logging modle 27.In practice, tester can pass through the record section that filtering module 25 setting district segment record module 27 adopts.
Another specific embodiment according to the present invention is a kind of management method being applied to an electronic installation, and its flowchart is illustrated in Fig. 5.This electronic installation comprises a database, and uses a storer.First this management method performs a receiving step S51: receive the use request sent for this storer, wherein this use request is relevant to a task.Then, this management method performs a determining step S52, judges whether to permit this use request.If this use request is not allowed, receiving step S51 is merely re-executed.If this use request is allowed, in step S53, a request msg is trooped and to be produced according to this use request.Then, in step S54, presetting filtercondition according to one, whether this request msg determined should stored in this database if being trooped.
Fig. 6 presents the follow-up flow process example of the one that the management method of Fig. 5 can be coordinated to realize.Step S61 is performed after can being connected in the step S53 in Fig. 5, that is judges that the section logging modle system that this electronic installation comprises at present is in manual mode or automatic mode.If the judged result of step S61 is automatic mode, then step S63 is performed, that is upgrades record in this section logging modle according to troop a corresponding time section or a storage address section of this request msg.Relatively, if the judged result of step S61 is manual mode, then step S62 is performed, that is one that judges further to troop this request msg whether a corresponding time section or a storage address section fall into for the setting of this section logging modle is recorded in section.If the judged result of step S62 is yes, then step S63 can be performed.If the judged result of step S62 is no, then the record in this section logging modle can not be updated (step S64).
Persond having ordinary knowledge in the technical field of the present invention can understand, and the various operations previously described when introducing electronic installation 200 change the management method that also can be applied in Fig. 5, and its details repeats no more.
By the above detailed description of preferred embodiments, be that hope clearly can describe feature of the present invention and spirit, and not with above-mentioned disclosed preferred embodiment, category of the present invention limited.On the contrary, its objective is wish to contain various change and tool equality be arranged in the present invention institute in the category of the scope of the claims applied for.

Claims (15)

1. make a memory-aided electronic installation, comprise:
Operational module, when this operational module needs to use this storer in time performing task, this operational module sends and uses request;
Administration module, in order to judge whether to permit this use request, if this use request is allowed, this administration module produces request msg according to this use request and troops;
Database; And
Filtering module, troops in order to receive this request msg from this administration module, and determines whether troop this request msg stored in this database according to default filtercondition.
2. electronic installation as claimed in claim 1, it is characterized in that, this request msg is trooped the one or more message comprised in following message: identifying information, this administration module of this task divide the storage address tasking this use request, and storer use amount.
3. electronic installation as claimed in claim 1, is characterized in that, in this database, multiple request msg is trooped and to be sorted according to task identifying information, storage address or storer use amount.
4. electronic installation as claimed in claim 1, is characterized in that, this default filtercondition comprises Preset Time section and preset memory address section one of at least.
5. electronic installation as claimed in claim 1, is characterized in that, comprise further:
Monitoring modular, troops in order to multiple request msgs of monitoring stored by this database, and when the plurality of request msg is trooped display unusual condition, this monitoring modular produces unusual condition report.
6. electronic installation as claimed in claim 5, it is characterized in that, this unusual condition comprises certain task and there is memory leak problem.
7. electronic installation as claimed in claim 1, is characterized in that, comprise further:
Section logging modle, in order to writing time section or storage address section in this database stored in these request msgs all zone field of trooping; Wherein, in manual operating mode, this time section or this storage address section are set by tester, and this zone field is point storage address tasking this use request.
8. be applied to a management method for electronic installation, this electronic installation comprises database and uses storer, and this management method comprises:
A () receives the use request sent for this storer, wherein this use request is relevant to task;
B () judges whether to permit this use request;
If c () this use request is allowed, produces request msg according to this use request and troop; And
D () determine whether troop this request msg stored in this database according to presetting filtercondition.
9. management method as claimed in claim 8, is characterized in that, this request msg is trooped the one or more message comprised in following message: the identifying information of this task, point to task the storage address of this use request and storer use amount.
10. management method as claimed in claim 8, is characterized in that, comprise further:
In this database, troop according to task identifying information, storage address or storer use amount multiple request msg that sorts.
11. management methods as claimed in claim 8, is characterized in that, this default filtercondition comprises Preset Time section or preset memory address section.
12. management methods as claimed in claim 8, is characterized in that, comprise further:
In manual operating mode, setting recording section, wherein this record section is time section or storage address section; And
When this request msg troop corresponding time section or storage address section fall into this record section time, the record upgrading this database and section logging modle is one of at least;
Wherein, this this request msg of section logging modle record is trooped corresponding zone field, and this zone field is point storage address tasking this use request.
13. management methods as claimed in claim 8, is characterized in that, comprise further:
In automatic operating mode, this request msg of section logging modle record is trooped corresponding zone field; Wherein, this zone field is point storage address tasking this use request.
14. management methods as claimed in claim 8, is characterized in that, comprise further:
Multiple request msgs of monitoring stored by this database are trooped; And
When the plurality of request msg is trooped display unusual condition, produce unusual condition report.
15. management methods as claimed in claim 11, it is characterized in that, this unusual condition comprises certain task and there is memory leak problem.
CN201410514410.8A 2014-09-29 2014-09-29 Electronic device and management method thereof Pending CN105528177A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410514410.8A CN105528177A (en) 2014-09-29 2014-09-29 Electronic device and management method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410514410.8A CN105528177A (en) 2014-09-29 2014-09-29 Electronic device and management method thereof

Publications (1)

Publication Number Publication Date
CN105528177A true CN105528177A (en) 2016-04-27

Family

ID=55770432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410514410.8A Pending CN105528177A (en) 2014-09-29 2014-09-29 Electronic device and management method thereof

Country Status (1)

Country Link
CN (1) CN105528177A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1892616A (en) * 2006-05-12 2007-01-10 中国科学院计算技术研究所 Method for realizing kernel-mode programe verification in user-mode random verification of microprocessor
US20070168567A1 (en) * 2005-08-31 2007-07-19 Boyd William T System and method for file based I/O directly between an application instance and an I/O adapter
US20100235499A1 (en) * 2009-03-10 2010-09-16 Canon Kabushiki Kaisha Processing apparatus, control method thereof, and storage medium
US20110145536A1 (en) * 2009-12-11 2011-06-16 Guenter Zachmann Memory leak detection during dynamic memory allocation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070168567A1 (en) * 2005-08-31 2007-07-19 Boyd William T System and method for file based I/O directly between an application instance and an I/O adapter
CN1892616A (en) * 2006-05-12 2007-01-10 中国科学院计算技术研究所 Method for realizing kernel-mode programe verification in user-mode random verification of microprocessor
US20100235499A1 (en) * 2009-03-10 2010-09-16 Canon Kabushiki Kaisha Processing apparatus, control method thereof, and storage medium
US20110145536A1 (en) * 2009-12-11 2011-06-16 Guenter Zachmann Memory leak detection during dynamic memory allocation

Similar Documents

Publication Publication Date Title
CN109302522B (en) Test method, test device, computer system, and computer medium
CN107193750B (en) Script recording method and device
CN106708815B (en) Data processing method, device and system
CA2677539C (en) Method, system and graphical user interface for configuring a simulator to simulate a plurality of devices
CN103927255A (en) Software testing method based on cloud testing system, cloud testing system and client side of cloud testing system
CN103793326A (en) Assembly test method and device
CN102568522A (en) Hardware performance test method and device
US8825462B2 (en) Method and system for simulating a plurality of devices
CN108717391A (en) Monitoring device, method and the computer readable storage medium of test process
CN104461846A (en) Method and device for detecting power consumption of application program
CN104980552B (en) Realize the method and system of Android mobile terminal automatic test
CN105740144A (en) Automated testing method and system for Android mobile Terminal
CN106598859A (en) Appium multi-thread implementation system and method
CN112115005A (en) Test data acquisition method and device, computer equipment and storage medium
CN111694684B (en) Abnormal construction method and device of storage device, electronic device and storage medium
CN108874649A (en) Generation method, device and its computer equipment of automatic test script
CN114328250A (en) Automatic self-checking method, medium and device for software system
US20180336122A1 (en) Generating application flow entities
KR102635847B1 (en) Apparatus and method for application test automation
CN116560985B (en) Chip equipment test control method, upper computer, equipment and medium
CN112445670B (en) eMMC test method and device
CN105528177A (en) Electronic device and management method thereof
CN109976970B (en) Method, system and storage medium for prolonging service life of mainboard chip
CN115248782B (en) Automatic testing method and device and computer equipment
JP2021506010A (en) Methods and systems for tracking application activity data from remote devices and generating modified behavioral data structures for remote devices

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160427

WD01 Invention patent application deemed withdrawn after publication