CN104516803A - Electronic device information monitoring method and system and electronic device - Google Patents

Electronic device information monitoring method and system and electronic device Download PDF

Info

Publication number
CN104516803A
CN104516803A CN201310450575.9A CN201310450575A CN104516803A CN 104516803 A CN104516803 A CN 104516803A CN 201310450575 A CN201310450575 A CN 201310450575A CN 104516803 A CN104516803 A CN 104516803A
Authority
CN
China
Prior art keywords
electronic device
information
device information
monitoring resource
time
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
CN201310450575.9A
Other languages
Chinese (zh)
Other versions
CN104516803B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310450575.9A priority Critical patent/CN104516803B/en
Publication of CN104516803A publication Critical patent/CN104516803A/en
Application granted granted Critical
Publication of CN104516803B publication Critical patent/CN104516803B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides an electronic device information monitoring method, an electronic device information monitoring system and an electronic device. The method includes the steps of: before the arrival of a preset time period, calling a resource monitoring information process by an explanatory script; deriving electronic device information stored in the resource monitoring information process by the explanatory script, and thereby achieving monitoring on the electronic device information. The electronic device information monitoring method provided by the embodiment of the invention achieves monitoring on the electronic device information on the basis of occupying system resources and electric quality consumption as few as possible.

Description

A kind of electronic device information method for supervising, system and electronic equipment
Technical field
The present invention relates to information monitoring technical field, more particularly, relate to a kind of electronic device information method for supervising, system and electronic equipment.
Background technology
To electronic equipment (as smart mobile phone, panel computer, notebook etc.) information about power, CPU(CentralProcessing Unit, central processing unit) electronic device information such as occupied information carries out monitoring and presenting, user can be made better to understand the service condition of electronic equipment, thus electronic equipment is reasonably used, therefore how better monitor the technology point that electronic device information becomes those skilled in the art's concern.
Monitoring at present for electronic device information mainly arranges electronic device information watchdog routine, by timer (timer) according to certain frequency cycle continuous poll calling system API(ApplicationProgramming Interface, application programming interface) interface obtains electronic device information, the electronic device information got is saved in file for inquiry and UI(User Interface, user interface) show used, thus realize the monitoring of electronic device information.
The present inventor finds in research and practice process, and prior art at least exists following technical matters: prior art obtains electronic device information by frequent calling system interface, there is occupying system resources, the situation of consumes power; Simultaneously when electronic equipment enters holding state, electronic device information watchdog routine is when running background, calling system interface will cause system not enter holding state completely frequently, thus make electronic equipment still there is the situation of a large amount of consumes power in the standby state.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of electronic device information method for supervising, system and electronic equipment, electronic device information is obtained by frequent calling system interface to solve prior art, there is occupying system resources, consumes power, and cause system not enter holding state completely, make electronic equipment still there is the problem of a large amount of consumes power in the standby state.
For achieving the above object, the embodiment of the present invention provides following technical scheme:
A kind of electronic device information method for supervising, comprising:
When predetermined time cycle arrives, call monitoring resource information process by explanatory script;
By described explanatory script, the electronic device information of preserving in described monitoring resource information process is derived, realize the monitoring of electronic device information.
Wherein, the deterministic process that described predetermined period of time arrives comprises:
Operating in system background always, and after system enters standby mode, still keep in the process of running status, setting up the sub-thread of timer timer, when the time of each timing of the sub-thread of described timer and the time of described predetermined period of time are to determining time corresponding that described predetermined period of time arrives.
Wherein, describedly call monitoring resource information process by explanatory script and comprise:
For the information monitoring of specific process, when calling described monitoring resource information process by described explanatory script, import the ID of described specific process to described monitoring resource information process;
Described by described explanatory script by the electronic device information of preserving in described monitoring resource information process derive comprise:
Derived by the information of described explanatory script by the specific process corresponding with the ID of described specific process of preserving in described monitoring resource information process.
Wherein, after the electronic device information of preserving in described monitoring resource information process being derived by described explanatory script, described method also comprises:
CPU occupied information and information about power is filtered out from derived electronic device information.
Wherein, described method also comprises:
Derived electronic device information is saved in database file, so that described electronic device information is shown by user interface UI.
The embodiment of the present invention also provides a kind of electronic device information supervisory system, comprising:
Period determination module, for determining the arrival of predetermined period of time;
Process transfer module, for calling monitoring resource information process by explanatory script;
Information derives module, for the electronic device information of preserving in described monitoring resource information process being derived by described explanatory script, realizes the monitoring of electronic device information.
Wherein, described period determination module comprises:
Thread sets up unit, for operating in system background always, and after system enters standby mode, still keeps setting up the sub-thread of timer timer in the process of running status;
Time cycle determining unit, for when the time of each timing of the sub-thread of described timer and the time of described predetermined period of time are to determining time corresponding that described predetermined period of time arrives.
Wherein, described process transfer module comprises:
Specific ID imports unit, when for carrying out information monitoring for specific process, when calling described monitoring resource information process by described explanatory script, imports the ID of described specific process to described monitoring resource information process;
Described information derives module and comprises:
Customizing messages lead-out unit, for deriving by the information of described explanatory script by the specific process corresponding with the ID of described specific process of preserving in described monitoring resource information process.
Wherein, described system also comprises:
Information filtering module, for deriving after the electronic device information of preserving in described monitoring resource information process to be derived by described explanatory script by module in described information, filters out CPU occupied information and information about power from derived electronic device information;
Information preserves display module, for derived electronic device information being saved in database file, so that described electronic device information is shown by user interface UI.
The embodiment of the present invention also provides a kind of electronic equipment, comprises electronic device information supervisory system described above.
Based on technique scheme, the electronic device information method for supervising that the embodiment of the present invention provides calls monitoring resource information process by explanatory script, the electronic device information of preserving in described monitoring resource information process is derived, realizes the monitoring of electronic device information, the mode of electronic device information is obtained compared to existing technology by frequent calling system interface, the not direct calling system interface of the embodiment of the present invention, but adopt explanatory script to call monitoring resource information process, the characteristic of system residence process (i.e. the characteristic of monitoring resource information process) is utilized to carry out the monitoring of electronic device information, thus occupying system resources is few as much as possible in ensure that the process that electronic device information is monitored, the electricity consumed is few as much as possible, the system of avoiding cannot enter holding state completely, holding state is made still to there is the problem of a large amount of consumes power, simultaneously because explanatory script does not need just-ahead-of-time compilation, can upgrade script file at any time, the employing of explanatory script will make the monitoring of electronic device information more efficient, more general.The electronic device information method for supervising that the embodiment of the present invention provides, on the basis of the least possible occupying system resources and electric quantity consumption, achieves the monitoring of electronic device information.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The process flow diagram of a kind of electronic device information method for supervising that Fig. 1 provides for the embodiment of the present invention;
Another process flow diagram of a kind of electronic device information method for supervising that Fig. 2 provides for the embodiment of the present invention;
A process flow diagram again of a kind of electronic device information method for supervising that Fig. 3 provides for the embodiment of the present invention;
The structured flowchart of the electronic device information supervisory system that Fig. 4 provides for the embodiment of the present invention;
The structured flowchart of the period determination module that Fig. 5 provides for the embodiment of the present invention;
The structured flowchart of the process transfer module that Fig. 6 provides for the embodiment of the present invention;
The structured flowchart of the information derivation module that Fig. 7 provides for the embodiment of the present invention;
Another structured flowchart of the electronic device information supervisory system that Fig. 8 provides for the embodiment of the present invention;
The block diagram of the part-structure of the mobile phone relevant to electronic equipment that Fig. 9 provides for the embodiment of the present invention.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The process flow diagram of a kind of electronic device information method for supervising that Fig. 1 provides for the embodiment of the present invention, with reference to Fig. 1, the method can comprise:
When step S100, predetermined time cycle arrive, call monitoring resource information process by explanatory script;
Optionally, the embodiment of the present invention determines the arrival of predetermined period of time by timer (timer), when the time of each timing time of timer and predetermined period of time is to the arrival then determining predetermined period of time time corresponding;
Explanatory script can be python script or perl script, and monitoring resource information process (top process) is the process for preserving electronic device information operating in system background; Because system itself also needs partial information to be presented at (charge condition etc. that the upper right corner status bar of such as system desktop shows) in system desktop, therefore after system start-up, system self can start a monitoring resource information process (top process) on backstage and preserve current electronic device information, as the CPU information that each program takies in real time, information about power etc.
In the prior art, system does not provide api interface or the communication interface of access resources monitor message process, and the embodiment of the present invention, by arranging explanatory script, directly calls this monitoring resource information process by explanatory script.
Step S110, the electronic device information derivation of will be preserved in described monitoring resource information process by described explanatory script, realize the monitoring of electronic device information.
The electronic device information of preserving in monitoring resource information process exports in the file of specifying by explanatory script by the embodiment of the present invention in real time.
The electronic device information method for supervising that the embodiment of the present invention provides calls monitoring resource information process by explanatory script, the electronic device information of preserving in described monitoring resource information process is derived, realizes the monitoring of electronic device information, the mode of electronic device information is obtained compared to existing technology by frequent calling system interface, the not direct calling system interface of the embodiment of the present invention, but adopt explanatory script to call monitoring resource information process, the characteristic of system residence process (i.e. the characteristic of monitoring resource information process) is utilized to carry out the monitoring of electronic device information, thus occupying system resources is few as much as possible in ensure that the process that electronic device information is monitored, the electricity consumed is few as much as possible, the system of avoiding cannot enter holding state completely, holding state is made still to there is the problem of a large amount of consumes power, simultaneously because explanatory script does not need just-ahead-of-time compilation, can upgrade script file at any time, the employing of explanatory script will make the monitoring of electronic device information more efficient, more general.The electronic device information method for supervising that the embodiment of the present invention provides, on the basis of the least possible occupying system resources and electric quantity consumption, achieves the monitoring of electronic device information.
Optionally, the embodiment of the present invention can will determine that the timer (timer) of the arrival of predetermined period of time is arranged in system process; Concrete, system background can operated in always, and after system enters standby mode, still keep in the process of running status, setting up the sub-thread of timer, when the time of each timing of the sub-thread of this timer and the time of described predetermined period of time are to determining time corresponding that described predetermined period of time arrives.Optionally, operate in system background, and always after system enters standby mode, still keep the process of running status can be the base band process of system, startup process etc.
The embodiment of the present invention, by the startup process (launched) of supervisory system, after the startup process initiation of system, sets up the sub-thread of timer by the method for hook in startup process; The embodiment of the present invention can monitor the init function of startup process, when the init function of system call process time, the sub-thread of timer will be started, after the sub-thread of timer starts, can predetermined period of time be that monitoring resource information process is called by explanatory scripts such as python scripts in interval, thus the electronic device information of preserving in monitoring resource information process is derived, realize the monitoring of electronic device information.The embodiment of the present invention operates in system background by depending on always, and after system enters standby mode, still the process of running status is kept to set up sub-thread timer, timer can be made can not to be subject to the impact of system standby state and to be suspended, and the long-time running of timer simultaneously also can not cause too much impact to the holding state of system.
The electronic device information method for supervising provided by the embodiment of the present invention, can be monitored the information of specific process in system, and the CPU as monitored specific process takies situation, electric quantity consumption situation etc.; Fig. 2 shows the flow process of corresponding electronic device information method for supervising, and with reference to Fig. 2, the method can comprise:
Step S200, predetermined time cycle arrive, and when calling described monitoring resource information process by explanatory script, import the ID(Identity of described specific process, identify label number to described monitoring resource information process);
Optionally, can adopt to depend on and operate in system background always, and after system enters standby mode, the sub-thread timer still keeping the process of running status to set up, determines the arrival of predetermined period of time by this sub-thread timer.
Step S210, to be derived by the information of described explanatory script by the specific process corresponding with the ID of described specific process of preserving in described monitoring resource information process.
Optionally, the electronic device information of preserving in monitoring resource information process can comprise start-up time of each process of system, working time, process authority, CPU occupied information, information about power etc.; Therefore, after the electronic device information of preserving in described monitoring resource information process being derived by described explanatory script, the embodiment of the present invention also can filter out CPU occupied information and information about power from derived electronic device information.A kind of mode of customizing messages of preferred acquisition specific process can be: predetermined time cycle arrives, and when calling described monitoring resource information process by described explanatory script, the ID of described specific process is imported to described monitoring resource information process, derived by the information of described explanatory script by the specific process corresponding with the ID of described specific process of preserving in described monitoring resource information process, from the information of derived specific process, filter out the customizing messages of this specific process, customizing messages can be CPU occupied information and information about power etc.
Optionally, derived electronic device information can be saved in database file by the embodiment of the present invention, so that described electronic device information is shown by UI.Because explanatory script will the cycle calls monitoring resource information process to schedule, therefore the electronic device information derived from monitoring resource information process is by lasting write into Databasce file, thus the continuous monitor data can preserved in a period of time, for follow-up, long analysis of running performance is carried out to electronic equipment, and the inquiry of electronic device information uses.
Be described the comparatively preferred electronic device information method for supervising of one that the embodiment of the present invention provides below, a process flow diagram again of a kind of electronic device information method for supervising that Fig. 3 provides for the embodiment of the present invention, with reference to Fig. 3, the method can comprise:
Step S300, in system startup process, set up the sub-thread of timer in advance;
Step S310, judge that whether the current timing time of the sub-thread of described timer is corresponding with predetermined period of time, if so, perform step S320, if not, perform step S310;
Step S320, call monitoring resource information process by explanatory script;
Optionally, when calling described monitoring resource information process by described explanatory script, the ID of described specific process can be imported to described monitoring resource information process.
Step S330, the electronic device information derivation of will be preserved in described monitoring resource information process by described explanatory script;
Optionally, after importing the ID of described specific process to described monitoring resource information process, the embodiment of the present invention derives by the information of described explanatory script by the specific process corresponding with the ID of described specific process of preserving in described monitoring resource information process.
Step S340; Specific information is filtered out from derived electronic device information;
Optionally, specific information can be CPU occupied information and information about power etc.;
Step S350, derived electronic device information to be saved in database file, so that described electronic device information is shown by UI.
It should be noted that step S300 is the step performed in advance, namely after performing and once setting up the sub-thread of timer in system startup process, step S310 ~ step S350 that continuable execution is follow-up.
The electronic device information method for supervising that the embodiment of the present invention provides goes for the intelligent terminal being provided with IOS system; The electronic device information method for supervising that the embodiment of the present invention provides, on the basis of the least possible occupying system resources and electric quantity consumption, achieves the monitoring of electronic device information.
Be described the electronic device information supervisory system that the embodiment of the present invention provides below, electronic device information supervisory system described below is corresponding with above-described electronic device information method for supervising, and both can be cross-referenced.
The structured flowchart of the electronic device information supervisory system that Fig. 4 provides for the embodiment of the present invention, with reference to Fig. 4, electronic device information supervisory system can comprise:
Period determination module 100, for determining the arrival of predetermined period of time;
Process transfer module 200, for calling monitoring resource information process by explanatory script;
Information derives module 300, for the electronic device information of preserving in described monitoring resource information process being derived by described explanatory script, realizes the monitoring of electronic device information.
The electronic device information supervisory system that the embodiment of the present invention provides calls monitoring resource information process by explanatory script, the electronic device information of preserving in described monitoring resource information process is derived, realizes the monitoring of electronic device information; The electronic device information method for supervising that the embodiment of the present invention provides, on the basis of the least possible occupying system resources and electric quantity consumption, achieves the monitoring of electronic device information.
The structured flowchart of the period determination module that Fig. 5 provides for the embodiment of the present invention, with reference to Fig. 5, period determination module 100 can comprise:
Thread sets up unit 110, for operating in system background always, and after system enters standby mode, still keeps setting up the sub-thread of timer timer in the process of running status;
Time cycle determining unit 120, for when the time of each timing of the sub-thread of described timer and the time of described predetermined period of time are to determining time corresponding that described predetermined period of time arrives.
The electronic device information supervisory system provided by the embodiment of the present invention, can be monitored the information of specific process in system, and the CPU as monitored specific process takies situation, electric quantity consumption situation etc.; Corresponding, Fig. 6 shows the structure of process transfer module 200, and with reference to Fig. 6, process transfer module 200 can comprise:
Specific ID imports unit 210, when for carrying out information monitoring for specific process, when calling described monitoring resource information process by described explanatory script, imports the ID of described specific process to described monitoring resource information process.
On the basis of the structure of the module of process transfer shown in Fig. 6 200, Fig. 7 shows the structure that information derives module 300, and with reference to Fig. 7, information derives module 300 and can comprise:
Customizing messages lead-out unit 310, for deriving by the information of described explanatory script by the specific process corresponding with the ID of described specific process of preserving in described monitoring resource information process.
Another structured flowchart of the electronic device information supervisory system that Fig. 8 provides for the embodiment of the present invention, shown in composition graphs 4 and Fig. 8, electronic device information supervisory system can also comprise:
Information filtering module 400, for deriving after the electronic device information of preserving in described monitoring resource information process to be derived by described explanatory script by module 300 in information, filters out CPU occupied information and information about power from derived electronic device information;
Information preserves display module 500, for derived electronic device information being saved in database file, so that described electronic device information is shown by UI.
The embodiment of the present invention also provides a kind of electronic equipment, comprise electronic device information supervisory system described above, the structure of electronic device information supervisory system can as shown in Fig. 4 to Fig. 8, for electronic device information supervisory system description can with describe corresponding above, repeat no more herein.
Below the hardware configuration of the electronic equipment that the embodiment of the present invention provides is introduced, hereafter introduce in relate to electronic device information method for supervising part can with the corresponding reference of above-described electronic device information method for supervising.
The electronic equipment that the embodiment of the present invention provides can comprise mobile phone (especially smart mobile phone, the smart mobile phone of IOS system is particularly installed), panel computer, PDA(Personal Digital Assistant, personal digital assistant), POS(Point of Sales, sell electronic equipment), the electronic equipment arbitrarily such as vehicle-mounted computer, take electronic equipment as mobile phone be example:
Shown in Fig. 9 is the block diagram of the part-structure of the mobile phone relevant to the electronic equipment that the embodiment of the present invention provides.With reference to figure 9, mobile phone comprises: radio frequency (Radio Frequency, RF) parts such as circuit 1110, storer 1120, input block 1130, display unit 1140, sensor 1150, voicefrequency circuit 1160, Wireless Fidelity (wireless fidelity, WiFi) module 1170, processor 1180 and power supply 1190.It will be understood by those skilled in the art that the handset structure shown in Fig. 9 does not form the restriction to mobile phone, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.
Concrete introduction is carried out below in conjunction with Fig. 9 each component parts to mobile phone:
RF circuit 1110 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, process to processor 1180; In addition, the up data of design are sent to base station.Usually, RF circuit includes but not limited to antenna, at least one amplifier, transceiver, coupling mechanism, low noise amplifier (Low Noise Amplifier, LNA), diplexer etc.In addition, RF circuit 110 can also by radio communication and network and other devices communicatings.Above-mentioned radio communication can use arbitrary communication standard or agreement, include but not limited to global system for mobile communications (Global System ofMobile communication, GSM), general packet radio service (General Packet RadioService, GPRS), CDMA (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA) (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE)), Email, Short Message Service (Short MessagingService, SMS) etc.
Storer 1120 can be used for storing software program and module, and processor 1180 is stored in software program and the module of storer 1120 by running, thus performs various function application and the data processing of mobile phone.Storer 1120 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of mobile phone.In addition, storer 1120 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.
Input block 1130 can be used for the numeral or the character information that receive input, and generation arranges with the user of mobile phone 1100 and function controls the input of relevant key signals.Particularly, input block 1130 can comprise contact panel 1131 and other input equipments 1132.Contact panel 1131, also referred to as touch-screen, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on contact panel 1131 or near contact panel 1131 such as finger, stylus) thereon, and drive corresponding coupling arrangement according to the formula preset.Optionally, contact panel 1131 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 1180, and the order that energy receiving processor 1180 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize contact panel 1131.Except contact panel 1131, input block 1130 can also comprise other input equipments 1132.Particularly, other input equipments 1132 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, control lever etc.
Display unit 1140 can be used for the various menus showing information or the information being supplied to user and the mobile phone inputted by user.Display unit 1140 can comprise display panel 1141, optionally, the forms such as liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-EmittingDiode, OLED) can be adopted to configure display panel 1141.Further, contact panel 1131 can cover display panel 1141, when contact panel 1131 detects thereon or after neighbouring touch operation, send processor 1180 to determine the type of touch event, on display panel 1141, provide corresponding vision to export with preprocessor 1180 according to the type of touch event.Although in fig. 8, contact panel 1131 and display panel 1141 be as two independently parts to realize input and the input function of mobile phone, but in certain embodiments, can by integrated to contact panel 1131 and display panel 1141 and realize the input and output function of mobile phone.
Mobile phone 1100 also can comprise at least one sensor 1150, such as optical sensor, motion sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display panel 1141, proximity transducer when mobile phone moves in one's ear, can cut out display panel 1141 and/or backlight.As the one of motion sensor; accelerometer sensor can detect the size of all directions (are generally three axles) acceleration; size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as passometer, knock) etc.; As for mobile phone also other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 1160, loudspeaker 1161, microphone 1162 can provide the audio interface between user and mobile phone.Voicefrequency circuit 1160 can by receive voice data conversion after electric signal, be transferred to loudspeaker 1161, by loudspeaker 1161 be converted to voice signal export; On the other hand, the voice signal of collection is converted to electric signal by microphone 1162, voice data is converted to after being received by voicefrequency circuit 1160, after again voice data output processor 1180 being processed, through RF circuit 1110 to send to such as another mobile phone, or export voice data to storer 1120 to process further.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user to send and receive e-mail by WiFi module 1170, browse webpage and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Fig. 9 shows WiFi module 1170, be understandable that, it does not belong to must forming of mobile phone 1100, can omit in the scope of essence not changing invention as required completely.
Processor 1180 is control centers of mobile phone, utilize the various piece of various interface and the whole mobile phone of connection, software program in storer 1120 and/or module is stored in by running or performing, and call the data be stored in storer 1120, perform various function and the process data of mobile phone, thus integral monitoring is carried out to mobile phone.Optionally, processor 1180 can comprise one or more processing unit; Preferably, processor 1180 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 1180.
Mobile phone 1100 also comprises the power supply 1190(such as battery of powering to all parts), preferably, power supply can be connected with processor 1180 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.
Although not shown, mobile phone 1100 can also comprise camera, bluetooth module etc., does not repeat them here.
In embodiments of the present invention, the processor 1180 included by this electronic equipment also has following functions:
When predetermined time cycle arrives, call monitoring resource information process by explanatory script;
By described explanatory script, the electronic device information of preserving in described monitoring resource information process is derived, realize the monitoring of electronic device information.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For device disclosed in embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates see method part.
Professional can also recognize further, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with electronic hardware, computer software or the combination of the two, in order to the interchangeability of hardware and software is clearly described, generally describe composition and the step of each example in the above description according to function.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
The software module that the method described in conjunction with embodiment disclosed herein or the step of algorithm can directly use hardware, processor to perform, or the combination of the two is implemented.Software module can be placed in the storage medium of other form any known in random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (10)

1. an electronic device information method for supervising, is characterized in that, comprising:
When predetermined time cycle arrives, call monitoring resource information process by explanatory script;
By described explanatory script, the electronic device information of preserving in described monitoring resource information process is derived, realize the monitoring of electronic device information.
2. method according to claim 1, is characterized in that, the deterministic process that described predetermined period of time arrives comprises:
Operating in system background always, and after system enters standby mode, still keep in the process of running status, setting up the sub-thread of timer timer, when the time of each timing of the sub-thread of described timer and the time of described predetermined period of time are to determining time corresponding that described predetermined period of time arrives.
3. method according to claim 1 and 2, is characterized in that, describedly calls monitoring resource information process by explanatory script and comprises:
For the information monitoring of specific process, when calling described monitoring resource information process by described explanatory script, import the ID of described specific process to described monitoring resource information process;
Described by described explanatory script by the electronic device information of preserving in described monitoring resource information process derive comprise:
Derived by the information of described explanatory script by the specific process corresponding with the ID of described specific process of preserving in described monitoring resource information process.
4. method according to claim 1, is characterized in that, after the electronic device information of preserving in described monitoring resource information process being derived by described explanatory script, described method also comprises:
CPU occupied information and information about power is filtered out from derived electronic device information.
5. method according to claim 1, is characterized in that, described method also comprises:
Derived electronic device information is saved in database file, so that described electronic device information is shown by user interface UI.
6. an electronic device information supervisory system, is characterized in that, comprising:
Period determination module, for determining the arrival of predetermined period of time;
Process transfer module, for calling monitoring resource information process by explanatory script;
Information derives module, for the electronic device information of preserving in described monitoring resource information process being derived by described explanatory script, realizes the monitoring of electronic device information.
7. system according to claim 6, is characterized in that, described period determination module comprises:
Thread sets up unit, for operating in system background always, and after system enters standby mode, still keeps setting up the sub-thread of timer timer in the process of running status;
Time cycle determining unit, for when the time of each timing of the sub-thread of described timer and the time of described predetermined period of time are to determining time corresponding that described predetermined period of time arrives.
8. the system according to claim 6 or 7, is characterized in that, described process transfer module comprises:
Specific ID imports unit, when for carrying out information monitoring for specific process, when calling described monitoring resource information process by described explanatory script, imports the ID of described specific process to described monitoring resource information process;
Described information derives module and comprises:
Customizing messages lead-out unit, for deriving by the information of described explanatory script by the specific process corresponding with the ID of described specific process of preserving in described monitoring resource information process.
9. system according to claim 6, is characterized in that, described system also comprises:
Information filtering module, for deriving after the electronic device information of preserving in described monitoring resource information process to be derived by described explanatory script by module in described information, filters out CPU occupied information and information about power from derived electronic device information;
Information preserves display module, for derived electronic device information being saved in database file, so that described electronic device information is shown by user interface UI.
10. an electronic equipment, is characterized in that, comprises the electronic device information supervisory system described in any one of claim 6-9.
CN201310450575.9A 2013-09-27 2013-09-27 A kind of electronic equipment information monitoring method, system and electronic equipment Active CN104516803B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310450575.9A CN104516803B (en) 2013-09-27 2013-09-27 A kind of electronic equipment information monitoring method, system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310450575.9A CN104516803B (en) 2013-09-27 2013-09-27 A kind of electronic equipment information monitoring method, system and electronic equipment

Publications (2)

Publication Number Publication Date
CN104516803A true CN104516803A (en) 2015-04-15
CN104516803B CN104516803B (en) 2018-04-27

Family

ID=52792149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310450575.9A Active CN104516803B (en) 2013-09-27 2013-09-27 A kind of electronic equipment information monitoring method, system and electronic equipment

Country Status (1)

Country Link
CN (1) CN104516803B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104932970A (en) * 2015-05-29 2015-09-23 小米科技有限责任公司 Monitoring method and device of memory leakage
CN107911410A (en) * 2017-10-17 2018-04-13 珠海金山网络游戏科技有限公司 Distributed Services process resource consumes statistical method and device
CN109582536A (en) * 2018-11-05 2019-04-05 广州华多网络科技有限公司 Report method, device and computer equipment of the application program without response

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030005110A1 (en) * 2001-06-29 2003-01-02 Microsoft Corporation Multi-threaded system for activating a process using a script engine and publishing data descriptive of the status of the process
CN101178662A (en) * 2006-11-08 2008-05-14 中兴通讯股份有限公司 Monitoring method of embedded LINUX applications progress
CN102081679A (en) * 2011-01-24 2011-06-01 深圳市共济科技有限公司 Computer performance data acquisition method and device
CN103226495A (en) * 2013-04-28 2013-07-31 杭州华三通信技术有限公司 Distribution method and device for changeover process

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030005110A1 (en) * 2001-06-29 2003-01-02 Microsoft Corporation Multi-threaded system for activating a process using a script engine and publishing data descriptive of the status of the process
CN101178662A (en) * 2006-11-08 2008-05-14 中兴通讯股份有限公司 Monitoring method of embedded LINUX applications progress
CN102081679A (en) * 2011-01-24 2011-06-01 深圳市共济科技有限公司 Computer performance data acquisition method and device
CN103226495A (en) * 2013-04-28 2013-07-31 杭州华三通信技术有限公司 Distribution method and device for changeover process

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
JUW: ""在HttpServlet的init方法中调用定时器任务的问题"", 《HTTP://BBS.CSDN.NET/TOPICS/210052440》 *
SHIRLEY: ""Top 查看某些或者某个进程(top -p pid)"", 《HTTP://BLOG.CSDN.NET/ZHANGFN2011/ARTICLE/DETAILS/7488746》 *
陈争光等: "《Visual C++入门与提高》", 31 October 2008 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104932970A (en) * 2015-05-29 2015-09-23 小米科技有限责任公司 Monitoring method and device of memory leakage
CN107911410A (en) * 2017-10-17 2018-04-13 珠海金山网络游戏科技有限公司 Distributed Services process resource consumes statistical method and device
CN107911410B (en) * 2017-10-17 2021-02-02 珠海金山网络游戏科技有限公司 Distributed service process resource consumption statistical method and device
CN109582536A (en) * 2018-11-05 2019-04-05 广州华多网络科技有限公司 Report method, device and computer equipment of the application program without response
CN109582536B (en) * 2018-11-05 2022-04-12 广州方硅信息技术有限公司 Application program non-response reporting method and device and computer equipment

Also Published As

Publication number Publication date
CN104516803B (en) 2018-04-27

Similar Documents

Publication Publication Date Title
CN103500002B (en) The method of application program management, device and terminal unit
CN103473011B (en) A kind of mobile terminal performance detection method, device and mobile terminal
CN106453511B (en) A kind of data back up method and equipment
CN105005909A (en) Method and device for predicting lost users
CN103024205B (en) Method, device and terminal for controlling power
CN103455407A (en) Mobile terminal CPU (Central Processing Unit) occupation rate monitoring method and device and mobile terminal
CN104834529A (en) Method and device for optimizing performance of application
CN103530115B (en) Application program display method and device and terminal equipment
CN104243671A (en) Volume adjustment method and device and electronic device
CN105760094A (en) Frame rate controlling method and device and terminal
CN106528282A (en) Method, device and terminal for closing process
CN104093123A (en) Application program information pushing method, device and system and mobile terminal
CN104636047A (en) Method and device for operating objects in list and touch screen terminal
CN104077184B (en) A kind of course control method and computer system of application program
CN104407804A (en) Screen capturing method and screen capturing device as well as electronic device
CN104423822A (en) Automated test script recording method and device
CN103561400A (en) Method for initiating communication, device thereof and mobile terminal
CN104378488A (en) Harassing call processing method and device
CN107577508A (en) Applied program processing method, device, readable storage medium storing program for executing and mobile terminal
CN103546632B (en) A kind of quarter-bell ringing method for mobile terminal, device and mobile terminal
CN104133752B (en) The method for supervising of operating platform and device
CN103197944B (en) Method for determining performance of process of application program and computer system
CN104424307A (en) Intelligent terminal application classifying method, system and intelligent terminal,
CN103561155B (en) Send the method for note, device and terminal
CN106502827A (en) A kind of data back up method and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant