CN104516803B - A kind of electronic equipment information monitoring method, system and electronic equipment - Google Patents
A kind of electronic equipment information monitoring method, system and electronic equipment Download PDFInfo
- Publication number
- CN104516803B CN104516803B CN201310450575.9A CN201310450575A CN104516803B CN 104516803 B CN104516803 B CN 104516803B CN 201310450575 A CN201310450575 A CN 201310450575A CN 104516803 B CN104516803 B CN 104516803B
- Authority
- CN
- China
- Prior art keywords
- information
- electronic device
- monitoring
- device information
- monitoring resource
- 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
Links
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Telephone Function (AREA)
- Telephonic Communication Services (AREA)
Abstract
The embodiment of the present invention, which provides a kind of electronic equipment information monitoring method, system and electronic equipment, wherein method, to be included:When predetermined time cycle arrives, monitoring resource information process is called by explanatory script;The electronic device information preserved in the monitoring resource information process is exported by the explanatory script, realizes the monitoring of electronic device information.Electronic device information monitoring method provided in an embodiment of the present invention realizes the monitoring of electronic device information on the basis of occupying system resources and electric quantity consumption is lacked as far as possible.
Description
Technical field
The present invention relates to information monitoring technical field, more specifically to a kind of electronic equipment information monitoring method, is
System and electronic equipment.
Background technology
To electronic equipment(Such as smart mobile phone, tablet computer, notebook etc.)Information about power, CPU(Central
Processing Unit, central processing unit)The electronic device informations such as occupied information are monitored and present, and can make user more
How the service condition of good understanding electronic equipment, so as to reasonably be used electronic equipment, therefore preferably monitor electricity
Sub- facility information becomes a technology point of those skilled in the art's concern.
Monitoring for electronic device information at present mainly sets electronic device information monitoring programme, passes through timer
(timer)According to certain continuous poll calling system API of frequency cycle(Application Programming
Interface, application programming interface)Interface obtains electronic device information, and the electronic device information that gets is preserved
Into file for inquiry and UI(User Interface, user interface)Used in displaying, so as to fulfill the prison of electronic device information
Control.
The present inventor is studying and is being found in practice process, and at least there are following technical problem for the prior art:
The prior art obtains electronic device information by frequent calling system interface, there are occupying system resources, consumes the feelings of electricity
Condition;At the same time when electronic equipment enters holding state, electronic device information monitoring programme is in running background, frequent calling system
Interface will cause system not completely into holding state, so that there are still a large amount of in the standby state for electronic equipment
Consumption electricity situation.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of electronic equipment information monitoring method, system and electronic equipment, with solution
Certainly the prior art obtains electronic device information by frequent calling system interface, there are occupying system resources, consumption electricity, and
Cause system not completely into holding state so that there are still substantial amounts of consumption electricity in the standby state for electronic equipment
The problem of.
To achieve the above object, the embodiment of the present invention provides following technical solution:
A kind of electronic equipment information monitoring method, including:
When predetermined time cycle arrives, monitoring resource information process is called by explanatory script;
The electronic device information preserved in the monitoring resource information process is exported by the explanatory script, is realized
The monitoring of electronic device information.
Wherein, the determination process that the predetermined period of time arrives includes:
System background is being operated in always, and after system enters standby mode, still maintains the process of operating status
In establish timer timer sub-line journeys, when each timing of timer sub-line journeys time and the predetermined period of time when
Between to it is corresponding when determine that the predetermined period of time arrives.
Wherein, it is described to call monitoring resource information process to include by explanatory script:
For the information monitoring of specific process, the monitoring resource information process is being called by the explanatory script
When, to the ID of the monitoring resource information process importing specific process;
It is described to be exported the electronic device information preserved in the monitoring resource information process by the explanatory script
Including:
ID pairs with the specific process that will be preserved by the explanatory script in the monitoring resource information process
The information export for the specific process answered.
Wherein, the electronic device information preserved in the monitoring resource information process is being led by the explanatory script
After going out, the method further includes:
CPU occupied informations and information about power are filtered out from electronic device information derived from institute.
Wherein, the method further includes:
Electronic device information derived from institute is saved in database file, so that user interface UI is by the electronic equipment
Information is shown.
The embodiment of the present invention also provides a kind of electronic equipment information monitoring system, including:
Period determination module, for determining the arrival of predetermined period of time;
Process calling module, for calling monitoring resource information process by explanatory script;
Information export module, for the electronics that will be preserved by the explanatory script in the monitoring resource information process
Facility information exports, and realizes the monitoring of electronic device information.
Wherein, the period determination module includes:
Thread establishes unit, for operating in system background always, and after system enters standby mode, still protects
Hold and timer timer sub-line journeys are established in the process of operating status;
Time cycle determination unit, for when the time and the week scheduled time of each timing of timer sub-line journeys
Determine that the predetermined period of time arrives when the time of phase is to corresponding to.
Wherein, the process calling module includes:
Specific ID import unit, in the case of carrying out information monitoring for specific process, by described explanatory
When script calls the monitoring resource information process, the ID of the specific process is imported to the monitoring resource information process;
Described information export module includes:
Customizing messages lead-out unit, for will be preserved by the explanatory script in the monitoring resource information process
The information export of specific process corresponding with the ID of the specific process.
Wherein, the system also includes:
Information filtering module, for being believed the monitoring resource by the explanatory script in described information export module
After the electronic device information export preserved in breath process, CPU occupied informations are filtered out from electronic device information derived from institute
And information about power;
Information preserve display module, for by institute derived from electronic device information be saved in database file, so as to
The electronic device information is shown by family interface UI.
The embodiment of the present invention also provides a kind of electronic equipment, including electronic device information monitoring system described above.
Based on above-mentioned technical proposal, electronic device information monitoring method provided in an embodiment of the present invention can pass through explanatory foot
This calling monitoring resource information process, the electronic device information preserved in the monitoring resource information process is exported, and realizes electricity
The monitoring of sub- facility information;By way of obtaining electronic device information frequent calling system interface compared with prior art, this
Inventive embodiments do not directly invoke system interface, but use explanatory script to call monitoring resource information process, utilize system
The characteristic of Resident Process(That is the characteristic of monitoring resource information process)The monitoring of electronic device information is carried out, so as to ensure that electronics
Facility information monitor during occupying system resources it is few as far as possible, the electricity of consumption is few as far as possible, avoid system without
Method is completely into holding state so that holding state still has the problem of substantial amounts of consumption electricity;Simultaneously because explanatory foot
Originally just-ahead-of-time compilation is not required, script file can be updated at any time, the use of explanatory script will cause the prison of electronic device information
Control is more efficient, more general.Electronic device information monitoring method provided in an embodiment of the present invention is taking system less as far as possible
On the basis of resource and electric quantity consumption, the monitoring of electronic device information is realized.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are the present invention
Some embodiments, for those of ordinary skill in the art, without creative efforts, can also basis
These attached drawings obtain other attached drawings.
Fig. 1 is the flow chart of a kind of electronic equipment information monitoring method provided in an embodiment of the present invention;
Fig. 2 is another flow chart of a kind of electronic equipment information monitoring method provided in an embodiment of the present invention;
Fig. 3 is another flow chart of a kind of electronic equipment information monitoring method provided in an embodiment of the present invention;
Fig. 4 is the structure diagram of electronic device information monitoring system provided in an embodiment of the present invention;
Fig. 5 is the structure diagram of period determination module provided in an embodiment of the present invention;
Fig. 6 is the structure diagram of process calling module provided in an embodiment of the present invention;
Fig. 7 is the structure diagram of information export module provided in an embodiment of the present invention;
Fig. 8 is another structure diagram of electronic device information monitoring system provided in an embodiment of the present invention;
Fig. 9 is the provided in an embodiment of the present invention and block diagram of the part-structure of the relevant mobile phone of electronic equipment.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
All other embodiments obtained without making creative work, belong to the scope of protection of the invention.
Fig. 1 is the flow chart of a kind of electronic equipment information monitoring method provided in an embodiment of the present invention, with reference to Fig. 1, the party
Method can include:
Step S100, when predetermined time cycle arrives, monitoring resource information process is called by explanatory script;
Optionally, the embodiment of the present invention can pass through timer(timer)To determine the arrival of predetermined period of time, when
The time of timing time each timer and predetermined period of time to it is corresponding when predetermined period of time arrival;
Explanatory script can be python scripts or perl script, monitoring resource information process(Top processes)It is fortune
The process that is used to preserve electronic device information of the row in system background;It is to be shown in since system is also required to partial information in itself
Unite on desktop(Such as charge condition shown on the upper right corner status bar of system desktop etc.), therefore after system start-up, system
Itself can start a monitoring resource information process on backstage(Top processes)It is such as each to preserve current electronic device information
The CPU information that program takes in real time, information about power etc..
In the prior art, system is not provided with accessing the api interface or communication interface of monitoring resource information process,
The embodiment of the present invention can directly invoke the monitoring resource information process by setting explanatory script by explanatory script.
Step S110, the electronic device information that will be preserved by the explanatory script in the monitoring resource information process
Export, realizes the monitoring of electronic device information.
The embodiment of the present invention can be real by the electronic device information preserved in monitoring resource information process by explanatory script
When export in the file specified.
Electronic device information monitoring method provided in an embodiment of the present invention can call monitoring resource to believe by explanatory script
Breath process, the electronic device information preserved in the monitoring resource information process is exported, realizes the monitoring of electronic device information;
By way of obtaining electronic device information frequent calling system interface compared with prior art, the embodiment of the present invention is not adjusted directly
With system interface, but use explanatory script to call monitoring resource information process, utilize the characteristic of system residence process(Provide
The characteristic of source monitoring information process)The monitoring of electronic device information is carried out, so as to ensure that the process of electronic device information monitoring
Middle occupying system resources are few as far as possible, and the electricity of consumption is few as far as possible, the system of avoiding can not completely into holding state,
So that holding state still has the problem of substantial amounts of consumption electricity;Simultaneously because just-ahead-of-time compilation is not required in explanatory script, can
To update script file at any time, the use of explanatory script is more efficient by the monitoring for causing electronic device information, more general.
Electronic device information monitoring method provided in an embodiment of the present invention is lacking the basis of occupying system resources and electric quantity consumption as far as possible
On, realize the monitoring of electronic device information.
Optionally, the embodiment of the present invention can be by the timer of the arrival of definite predetermined period of time(timer)It is arranged on and is
In system process;Specifically, system background can operated in always, and after system enters standby mode, still maintain operation
Timer sub-line journeys are established in the process of state, when time and the predetermined period of time of each timing of timer sub-line journeys
Determine that the predetermined period of time arrives when time is to corresponding to.Optionally, system background is operated in always, and is entered in system
After standby mode, the process for still maintaining operating status can be the base band process of system, launching process etc..
The embodiment of the present invention can pass through the launching process of monitoring system(launched), when the launching process of system starts
Afterwards, timer sub-line journeys are established in launching process by the method for hook;The embodiment of the present invention can monitor the init of launching process
Function, when the init functions of system calling process, will start timer sub-line journeys, can after the startup of timer sub-line journeys
It is that monitoring resource information process is called in interval by the explanatory script such as python scripts using predetermined period of time, so that by resource
The electronic device information export preserved in monitoring information process, realizes the monitoring of electronic device information.The embodiment of the present invention passes through
Depend on and operate in system background always, and after system enters standby mode, the process for still maintaining operating status is established
Sub-line journey timer, can cause timer not to be subject to the influence of system standby state and be suspended, while the long-term fortune of timer
Row will not cause the holding state of system excessive influence.
By electronic device information monitoring method provided in an embodiment of the present invention, can to the information of specific process in system into
Row monitoring, such as monitors the CPU occupancy situations of specific process, electric quantity consumption situation etc.;Fig. 2 shows corresponding electronic device information
The flow of monitoring method, with reference to Fig. 2, this method can include:
Step S200, predetermined time cycle arrives, and calls the monitoring resource information process by explanatory script
When, to the ID of the monitoring resource information process importing specific process(Identity, identity number);
Optionally, it can use to depend on and operate in system background always, and after system enters standby mode, still protect
The sub-line journey timer that the process of operating status is established is held, the arrival of predetermined period of time is determined by sub-line journey timer.
Step S210, by the explanatory script will be preserved in the monitoring resource information process with it is described it is specific into
The information export of the corresponding specific process of ID of journey.
Optionally, when the electronic device information preserved in monitoring resource information process can include the startup of each process of system
Between, run time, process authority, CPU occupied informations, information about power etc.;Therefore by the explanatory script by the money
After the electronic device information export preserved in the monitoring information process of source, the embodiment of the present invention can also be from electronic equipment derived from institute
CPU occupied informations and information about power are filtered out in information.A kind of mode of the preferable customizing messages for obtaining specific process can be with
It is:Predetermined time cycle arrives, and when calling the monitoring resource information process by the explanatory script, to the money
Source monitoring information process imports the ID of the specific process, by the explanatory script by the monitoring resource information process
Preserve specific process corresponding with the ID of the specific process information export, from derived from specific process information in mistake
The customizing messages of the specific process is filtered out, customizing messages can be CPU occupied informations and information about power etc..
Optionally, electronic device information derived from institute can be saved in database file by the embodiment of the present invention, so as to UI
The electronic device information is shown.Due to explanatory script will to schedule the cycle call monitoring resource information into
Journey, therefore derived electronic device information will be continuously written into database file from monitoring resource information process, so as to
To preserve the continuous monitoring data in a period of time, for subsequently carrying out prolonged analysis of running performance, and electricity to electronic equipment
The inquiry of sub- facility information uses.
A kind of more preferable electronic device information monitoring method provided in an embodiment of the present invention is illustrated below, is schemed
3 be another flow chart of a kind of electronic equipment information monitoring method provided in an embodiment of the present invention, and with reference to Fig. 3, this method can be with
Including:
Step S300, timer sub-line journeys are established in system launching process in advance;
Step S310, judge whether the current timing time of the timer sub-line journeys is corresponding with predetermined period of time, if
It is to perform step S320, if it is not, performing step S310;
Step S320, monitoring resource information process is called by explanatory script;
Optionally, when calling the monitoring resource information process by the explanatory script, can be supervised to the resource
Control the ID that information process imports the specific process.
Step S330, the electronic device information that will be preserved by the explanatory script in the monitoring resource information process
Export;
Optionally, after the ID of the specific process is imported to the monitoring resource information process, the embodiment of the present invention can
It is corresponding with the ID of the specific process specific by what is preserved in the monitoring resource information process by the explanatory script
The information export of process.
Step S340;Specific information is filtered out from electronic device information derived from institute;
Optionally, specific information can be CPU occupied informations and information about power etc.;
Step S350, electronic device information derived from institute is saved in database file, so that UI sets the electronics
Standby information is shown.
It is worth noting that, step S300 is pre- the step of first carrying out, that is, performing once in system launching process
After establishing timer sub-line journeys, follow-up step S310~step S350 can be continuously performed.
The intelligence that electronic device information monitoring method provided in an embodiment of the present invention can be adapted for being provided with IOS systems is whole
End;Electronic device information monitoring method provided in an embodiment of the present invention is lacking the base of occupying system resources and electric quantity consumption as far as possible
On plinth, the monitoring of electronic device information is realized.
Electronic device information monitoring system provided in an embodiment of the present invention is illustrated below, electronics described below is set
Standby information monitoring system is corresponding with above-described electronic device information monitoring method, both can be cross-referenced.
Fig. 4 is the structure diagram of electronic device information monitoring system provided in an embodiment of the present invention, and with reference to Fig. 4, electronics is set
Standby information monitoring system can include:
Period determination module 100, for determining the arrival of predetermined period of time;
Process calling module 200, for calling monitoring resource information process by explanatory script;
Information export module 300, for will be preserved by the explanatory script in the monitoring resource information process
Electronic device information exports, and realizes the monitoring of electronic device information.
Electronic device information monitoring system provided in an embodiment of the present invention can call monitoring resource to believe by explanatory script
Breath process, the electronic device information preserved in the monitoring resource information process is exported, realizes the monitoring of electronic device information;
Electronic device information monitoring method provided in an embodiment of the present invention is lacking the basis of occupying system resources and electric quantity consumption as far as possible
On, realize the monitoring of electronic device information.
Fig. 5 is the structure diagram of period determination module provided in an embodiment of the present invention, with reference to Fig. 5, period determination module 100
It can include:
Thread establishes unit 110, for operating in system background always, and after system enters standby mode, still
So remain in the process of state and establish timer timer sub-line journeys;
Time cycle determination unit 120, for the time when each timing of timer sub-line journeys and the scheduled time
Determine that the predetermined period of time arrives when the time in cycle is to corresponding to.
By electronic device information monitoring system provided in an embodiment of the present invention, can to the information of specific process in system into
Row monitoring, such as monitors the CPU occupancy situations of specific process, electric quantity consumption situation etc.;Corresponding, Fig. 6 shows that process calls mould
The structure of block 200, with reference to Fig. 6, process calling module 200 can include:
Specific ID import unit 210, in the case of carrying out information monitoring for specific process, is passing through the explanation
Property script when calling the monitoring resource information process, the ID of the specific process is imported to the monitoring resource information process.
On the basis of the structure of process calling module shown in Fig. 6 200, Fig. 7 shows the knot of information export module 300
Structure, with reference to Fig. 7, information export module 300 can include:
Customizing messages lead-out unit 310, for will be protected by the explanatory script in the monitoring resource information process
The information export for the specific process corresponding with the ID of the specific process deposited.
Fig. 8 is another structure diagram of electronic device information monitoring system provided in an embodiment of the present invention, with reference to Fig. 4 and figure
Shown in 8, electronic device information monitoring system can also include:
Information filtering module 400, in information export module 300 by the explanatory script by the monitoring resource
After the electronic device information export preserved in information process, CPU is filtered out from electronic device information derived from institute and is taken and is believed
Breath and information about power;
Information preserves display module 500, for electronic device information derived from institute to be saved in database file, so as to
The electronic device information is shown by UI.
The embodiment of the present invention also provides a kind of electronic equipment, including electronic device information monitoring system described above, electricity
The structure of sub- facility information monitoring system can as shown in Fig. 4 to Fig. 8, description for electronic device information monitoring system can with it is upper
Text description corresponds to, and details are not described herein again.
The hardware configuration of electronic equipment provided in an embodiment of the present invention is introduced below, be introduced below involved in electronics
The part of facility information monitoring method can be with above-described electronic device information monitoring method to should refer to.
Electronic equipment provided in an embodiment of the present invention can include mobile phone(Especially smart mobile phone, is particularly provided with IOS
The smart mobile phone of system), tablet computer, PDA(Personal Digital Assistant, personal digital assistant)、POS
(Point of Sales, sell electronic equipment), any electronic equipment such as vehicle-mounted computer, by taking electronic equipment is mobile phone as an example:
Fig. 9 is illustrated that the block diagram with the part-structure of the relevant mobile phone of electronic equipment provided in an embodiment of the present invention.Ginseng
Fig. 9 is examined, mobile phone includes:Radio frequency(Radio Frequency, RF)Circuit 1110, memory 1120, input unit 1130, display
Unit 1140, sensor 1150, voicefrequency circuit 1160, Wireless Fidelity(Wireless fidelity, WiFi)Module 1170, place
Manage the component such as device 1180 and power supply 1190.It will be understood by those skilled in the art that the handset structure shown in Fig. 9 not structure
The restriction of paired mobile phone, can include than illustrating more or fewer components, either combine some components or different components
Arrangement.
Each component parts of mobile phone is specifically introduced with reference to Fig. 9:
RF circuits 1110 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, by base station
After downlink information receives, handled to processor 1180;In addition, the data sending of uplink will be designed to base station.In general, RF circuit bags
Include but be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier(Low Noise
Amplifier, LNA), duplexer etc..In addition, RF circuits 110 can also be communicated by wireless communication with network and other equipment.
Above-mentioned wireless communication can use any communication standard or agreement, include but not limited to global system for mobile communications(Global
System of Mobile communication, GSM), general packet radio service(General Packet Radio
Service, GPRS), CDMA(Code Division Multiple Access, CDMA), wideband code division multiple access
(Wideband Code Division Multiple Access,WCDMA), Long Term Evolution(Long Term Evolution,
LTE)), Email, Short Message Service(Short Messaging Service, SMS)Deng.
Memory 1120 can be used for storage software program and module, and processor 1180 is stored in memory by operation
1120 software program and module, so as to perform various function application and the data processing of mobile phone.Memory 1120 can be led
To include storing program area and storage data field, wherein, storing program area can storage program area, needed at least one function
Application program(Such as sound-playing function, image player function etc.)Deng;Storage data field can be stored uses institute according to mobile phone
The data of establishment(Such as voice data, phone directory etc.)Deng.Stored in addition, memory 1120 can include high random access
Device, can also include nonvolatile memory, and a for example, at least disk memory, flush memory device or other volatibility are consolidated
State memory device.
Input unit 1130 can be used for the numeral or character information for receiving input, and produces and set with the user of mobile phone 1100
Put and the input of key signals that function control is related.Specifically, input unit 1130 may include contact panel 1131 and other
Input equipment 1132.Contact panel 1131, also referred to as touch-screen, collect user on it or neighbouring touch operation(Such as
User is using any suitable objects or annex such as finger, stylus on contact panel 1131 or near contact panel 1131
Operation), and corresponding attachment device is driven according to formula set in advance.Optionally, contact panel 1131 may include to touch inspection
Survey two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation
The signal brought, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and will
It is converted into contact coordinate, then gives processor 1180, and can receive the order that processor 1180 is sent and be performed.This
Outside, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be used to realize contact panel 1131.Except touching
Panel 1131 is controlled, input unit 1130 can also include other input equipments 1132.Specifically, other input equipments 1132 can be with
Including but not limited to physical keyboard, function key(Such as volume control button, switch key etc.), trace ball, mouse, operation lever etc.
In one or more.
Display unit 1140 is each available for the information and mobile phone for showing by information input by user or being supplied to user
Kind menu.Display unit 1140 may include display panel 1141, optionally, can use liquid crystal display(Liquid
Crystal Display, LCD), Organic Light Emitting Diode(Organic Light-Emitting Diode,OLED)Etc. form
To configure display panel 1141.Further, contact panel 1131 can cover display panel 1141, when contact panel 1131 detects
To processor 1180 on it or after neighbouring touch operation, is sent to determine the type of touch event, device is followed by subsequent processing
1180 provide corresponding visual output according to the type of touch event on display panel 1141.Although in fig. 8, contact panel
1131 and display panel 1141 are the components independent as two to realize the input of mobile phone and input function, but in some realities
Apply in example, can be integrated by contact panel 1131 and display panel 1141 and that realizes mobile phone output and input function.
Mobile phone 1100 may also include at least one sensor 1150, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to ring
The light and shade of border light adjusts the brightness of display panel 1141, and proximity sensor can close display when mobile phone is moved in one's ear
Panel 1141 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions(Generally three
Axis)The size of acceleration, can detect that size and the direction of gravity when static, the application available for identification mobile phone posture(Such as
Horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function(Such as pedometer, percussion)Deng;As for
The other sensors such as gyroscope that mobile phone can also configure, barometer, hygrometer, thermometer, infrared ray sensor, it is no longer superfluous herein
State.
Voicefrequency circuit 1160, loudspeaker 1161, microphone 1162 can provide the audio interface between user and mobile phone.Audio
The transformed electric signal of the voice data received can be transferred to loudspeaker 1161, is changed by loudspeaker 1161 by circuit 1160
Exported for voice signal;On the other hand, the voice signal of collection is converted to electric signal by microphone 1162, by voicefrequency circuit 1160
Voice data is converted to after reception, then after voice data output processor 1180 is handled, through RF circuits 1110 to be sent to ratio
Such as another mobile phone, or voice data is exported to memory 1120 further to handle.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 1170
Part, browse webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 9 is shown
WiFi module 1170, but it is understood that, it is simultaneously not belonging to must be configured into for mobile phone 1100, can exist as needed completely
Do not change in the essential scope of invention and omit.
Processor 1180 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone,
By running or performing the software program and/or module that are stored in memory 1120, and call and be stored in memory 1120
Interior data, perform the various functions and processing data of mobile phone, so as to carry out integral monitoring to mobile phone.Optionally, processor
1180 may include one or more processing units;Preferably, processor 1180 can integrate application processor and modulation /demodulation processing
Device, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is mainly located
Manage wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1180.
Mobile phone 1100 further includes the power supply 1190 to all parts power supply(Such as battery), it is preferred that power supply can pass through
Power-supply management system and processor 1180 are logically contiguous, so as to realize management charging, electric discharge, Yi Jigong by power-supply management system
The functions such as consumption management.
Although being not shown, mobile phone 1100 can also include camera, bluetooth module etc., and details are not described herein.
In embodiments of the present invention, the processor 1180 included by the electronic equipment also has following functions:
When predetermined time cycle arrives, monitoring resource information process is called by explanatory script;
The electronic device information preserved in the monitoring resource information process is exported by the explanatory script, is realized
The monitoring of electronic device information.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be and other
The difference of embodiment, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment
For, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related part is said referring to method part
It is bright.
Professional further appreciates that, with reference to each exemplary unit of the embodiments described herein description
And algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software, generally describes each exemplary composition and step according to function in the above description.These
Function is performed with hardware or software mode actually, application-specific and design constraint depending on technical solution.Specialty
Technical staff can realize described function to each specific application using distinct methods, but this realization should not
Think beyond the scope of this invention.
Can directly it be held with reference to the step of method or algorithm that the embodiments described herein describes with hardware, processor
Capable software module, or the two combination are implemented.Software module can be placed in random access memory(RAM), memory, read-only deposit
Reservoir(ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or use the present invention.
A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention
The embodiments shown herein is not intended to be limited to, and is to fit to and the principles and novel features disclosed herein phase one
The most wide scope caused.
Claims (8)
1. a kind of electronic equipment information monitoring method, it is characterised in that including:
When predetermined time cycle arrives, monitoring resource information process is called by explanatory script;
The electronic device information preserved in the monitoring resource information process is exported by the explanatory script, realizes electronics
The monitoring of facility information;
Wherein, the determination process that the predetermined period of time arrives includes:By the method for hook system launching process
Timer timer sub-line journeys are established in launched so that timer sub-line journeys will not be influenced be subject to system standby state and by
Hang up;When the system that monitors calls the init functions of launching process, start the timer sub-line journeys;Timer
After thread starts, when the time of each timing of timer sub-line journeys and the time of the predetermined period of time to it is corresponding when determine
The predetermined period of time arrives.
2. according to the method described in claim 1, it is characterized in that, it is described by explanatory script call monitoring resource information into
Journey includes:
For the information monitoring of specific process, when calling the monitoring resource information process by the explanatory script, to
The monitoring resource information process imports the ID of the specific process;
It is described to be included the electronic device information preserved in the monitoring resource information process export by the explanatory script:
It is corresponding with the ID of the specific process by what is preserved in the monitoring resource information process by the explanatory script
The information export of specific process.
3. according to the method described in claim 1, it is characterized in that, the monitoring resource is believed by the explanatory script
After the electronic device information export preserved in breath process, the method further includes:
CPU occupied informations and information about power are filtered out from electronic device information derived from institute.
4. according to the method described in claim 1, it is characterized in that, the method further includes:
Electronic device information derived from institute is saved in database file, so that user interface UI is by the electronic device information
It is shown.
5. a kind of electronic equipment information monitoring system, it is characterised in that including:
Period determination module, for determining the arrival of predetermined period of time;
Process calling module, for calling monitoring resource information process by explanatory script;
Information export module, for the electronic equipment that will be preserved by the explanatory script in the monitoring resource information process
Information exports, and realizes the monitoring of electronic device information;
Wherein, the period determination module includes:
Thread establishes unit, and timer timer is established in the launching process launched of system for the method by hook
Sub-line journey so that timer sub-line journeys will not be influenced and are suspended be subject to system standby state;
Time cycle determination unit, when init functions for calling launching process in the system that monitors, described in startup
Timer sub-line journeys;After the timer sub-line journeys start, when time and the pre- timing of each timing of timer sub-line journeys
Between the cycle time to it is corresponding when determine that the predetermined period of time arrives.
6. system according to claim 5, it is characterised in that the process calling module includes:
Specific ID import unit, in the case of carrying out information monitoring for specific process, is passing through the explanatory script
When calling the monitoring resource information process, the ID of the specific process is imported to the monitoring resource information process;
Described information export module includes:
Customizing messages lead-out unit, for will be preserved by the explanatory script in the monitoring resource information process and institute
State the information export of the corresponding specific process of ID of specific process.
7. system according to claim 5, it is characterised in that the system also includes:
Information filtering module, for described information export module by the explanatory script by the monitoring resource information into
After the electronic device information export preserved in journey, CPU occupied informations and electricity are filtered out from electronic device information derived from institute
Measure information;
Information preserves display module, for electronic device information derived from institute to be saved in database file, so as to user circle
The electronic device information is shown by face UI.
8. a kind of electronic equipment, it is characterised in that monitor system including claim 5-7 any one of them electronic device information
System.
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 CN104516803A (en) | 2015-04-15 |
| CN104516803B true 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) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104932970A (en) * | 2015-05-29 | 2015-09-23 | 小米科技有限责任公司 | Monitoring method and device of memory leakage |
| CN107911410B (en) * | 2017-10-17 | 2021-02-02 | 珠海金山网络游戏科技有限公司 | Distributed service process resource consumption statistical method and device |
| CN109582536B (en) * | 2018-11-05 | 2022-04-12 | 广州方硅信息技术有限公司 | Application program non-response reporting method and device and computer equipment |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7496654B2 (en) * | 2001-06-29 | 2009-02-24 | Microsoft Corporation | Multi-threaded system for activating a process using a script engine and publishing data descriptive of the status of the process |
| CN100555228C (en) * | 2006-11-08 | 2009-10-28 | 中兴通讯股份有限公司 | A Monitoring Method of Embedded LINUX Application Process |
| CN102081679B (en) * | 2011-01-24 | 2012-10-03 | 深圳市共济科技有限公司 | Computer performance data acquisition method and device |
| CN103226495B (en) * | 2013-04-28 | 2016-06-08 | 杭州华三通信技术有限公司 | One can switch course allocation method and equipment |
-
2013
- 2013-09-27 CN CN201310450575.9A patent/CN104516803B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN104516803A (en) | 2015-04-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106453511B (en) | Data backup method and equipment | |
| CN104093123B (en) | The information-pushing method of application program, device and system, mobile terminal | |
| CN109697010A (en) | A kind of suspended window position control method, terminal and computer readable storage medium | |
| CN104519262B (en) | Obtain the method, apparatus and terminal of video data | |
| CN106911848B (en) | Method and terminal device for outputting prompt message | |
| CN109450949A (en) | Mostly application releases the method for number binding, mobile terminal, readable storage medium storing program for executing | |
| CN108512991A (en) | A kind of based reminding method, mobile terminal and computer readable storage medium | |
| CN109743724A (en) | A kind of management method and mobile terminal of embedded SIM card | |
| CN108920306A (en) | What is managed based on memory restarts localization method, mobile terminal and readable storage medium storing program for executing | |
| CN109803429A (en) | RRM measurement control method, mobile communication terminal and the network side equipment of adjacent cell | |
| CN105808043B (en) | A kind of setting method and mobile terminal of terminal applies | |
| CN110020386A (en) | Application page sharing method, mobile terminal and computer readable storage medium | |
| CN103546632A (en) | Method and device for alarm ringing of mobile terminal and mobile terminal | |
| CN104516803B (en) | A kind of electronic equipment information monitoring method, system and electronic equipment | |
| CN109814800A (en) | Footmark sweep-out method, mobile terminal and computer readable storage medium | |
| CN109168189A (en) | A kind of electricity saving method, mobile terminal and computer readable storage medium | |
| CN107491349B (en) | Application processing method and apparatus, computer equipment, storage medium | |
| CN105094869B (en) | Target program determines method and device | |
| CN109117069A (en) | A kind of interface operation method, terminal and computer readable storage medium | |
| CN109062643A (en) | A kind of display interface method of adjustment, device and terminal | |
| CN105282628B (en) | A kind of method and apparatus of video playing | |
| CN107484144A (en) | A kind of information acquisition method, terminal, server and computer-readable storage medium | |
| CN107645588A (en) | A kind of message informing processing method, terminal and computer-readable recording medium | |
| CN109918136A (en) | Boot LOGO processing method, mobile terminal and the storage medium of mobile terminal | |
| CN110162952A (en) | Face unlocking method, device and readable storage medium storing program for executing based on the time difference |
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 |