CN109739676A - A kind of operational monitoring method, mobile terminal and computer readable storage medium - Google Patents

A kind of operational monitoring method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN109739676A
CN109739676A CN201811609783.8A CN201811609783A CN109739676A CN 109739676 A CN109739676 A CN 109739676A CN 201811609783 A CN201811609783 A CN 201811609783A CN 109739676 A CN109739676 A CN 109739676A
Authority
CN
China
Prior art keywords
instruction message
stack information
described instruction
journal file
mobile terminal
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
CN201811609783.8A
Other languages
Chinese (zh)
Other versions
CN109739676B (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201811609783.8A priority Critical patent/CN109739676B/en
Publication of CN109739676A publication Critical patent/CN109739676A/en
Application granted granted Critical
Publication of CN109739676B publication Critical patent/CN109739676B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

In the mobile terminal execution instruction message, whether detection implementation procedure is abnormal operational monitoring method disclosed by the invention;If implementation procedure is abnormal, the stack information of described instruction message is obtained;The allocating stack information of described instruction message is obtained according to the stack information of described instruction message;Record the stack information of described instruction message and the allocating stack information of described instruction message.In addition, invention additionally discloses a kind of mobile terminal and computer readable storage mediums.Operational monitoring method provided by the invention can when being abnormal the stack information of acquisition instruction message and allocating stack information, the position of abnormality code can be accurately positioned, facilitate user search abnormality code, improve anomaly analysis efficiency.

Description

A kind of operational monitoring method, mobile terminal and computer readable storage medium
Technical field
The present invention relates to technical field of mobile terminals more particularly to a kind of operational monitoring methods, mobile terminal and computer Readable storage medium storing program for executing.
Background technique
With the continuous development of electronic technology, the function of mobile terminal (such as smart phone, tablet computer etc.) is increasingly It is powerful, indispensable role is play in the work and life of people.People can be by installing on mobile terminals A variety of different application programs make mobile terminal realize a variety of different functions, but people are most asking the function of mobile terminal more While sample, the requirement to the response speed of mobile terminal is also higher and higher.
It when running of mobile terminal exception, is typically only capable to obtain abnormal message itself, and can not determine that message is corresponding Code position needs to be checked one by one in entire code.As it can be seen that in the prior art, cannot achieve and carried out to abnormality code It is accurately positioned, it has not been convenient to which user searches.
Summary of the invention
In view of this, the present invention proposes a kind of operational monitoring method, mobile terminal and computer readable storage medium, with solution Certainly above-mentioned technical problem.
Firstly, to achieve the above object, the present invention proposes a kind of operational monitoring method, it is applied to mobile terminal, the side Method includes:
In the mobile terminal execution instruction message, whether detection implementation procedure is abnormal;
If implementation procedure is abnormal, the stack information of described instruction message is obtained;
The allocating stack information of described instruction message is obtained according to the stack information of described instruction message;
Record the stack information of described instruction message and the allocating stack information of described instruction message.
Optionally, the allocating stack information that described instruction message is obtained according to the stack information of described instruction message, Include:
The allocating stack information of described instruction message is obtained from the storehouse attribute of the stack information.
Optionally, described in the mobile terminal execution instruction message, before whether detection implementation procedure is abnormal, The method also includes:
Storehouse attribute is added in the stack information of described instruction message, wherein the storehouse attribute record described instruction The allocating stack information of message.
Optionally, the allocating stack information of the stack information of the record described instruction message and described instruction message, Include:
By the stack information of described instruction message and the allocating stack data input journal file of described instruction message.
Optionally, described by the stack information of described instruction message and the allocating stack data input of described instruction message After journal file, the method also includes:
Print the journal file.
Optionally, before the printing journal file, the method also includes:
Obtain the number that the allocating stack information of described instruction message occurs in the journal file;
It is default to judge whether number that the allocating stack information of described instruction message occurs in the journal file is greater than Number;
The printing journal file, comprising:
If the number that the allocating stack information of described instruction message occurs in the journal file is greater than described default time Number, prints the journal file.
Optionally, after the printing journal file, the method also includes:
Obtain the number that the allocating stack information of described instruction message occurs in the journal file;
It is default to judge whether number that the allocating stack information of described instruction message occurs in the journal file is greater than Number;
If the number that the allocating stack information of described instruction message occurs in the journal file is greater than described default time Number sends the journal file to server.
Optionally, whether the detection implementation procedure is abnormal, comprising:
Detect implementation procedure whether generating program collapse and/or allocating stack it is abnormal.
Further, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal includes storage Device, at least one processor and at least one journey that is stored on the memory and can be executed at least one described processor Sequence, at least one described program realize the step in method described in any of the above embodiments when being executed by least one described processor Suddenly.
Further, to achieve the above object, the present invention also provides a kind of computer readable storage medium, the computers Readable storage medium storing program for executing is stored at least one executable program of computer, at least one described program is executed by the computer When so that the computer is executed the step in the above method.
Compared to the prior art, operational monitoring method proposed by the invention is in the mobile terminal execution instruction message When, whether detection implementation procedure is abnormal;If implementation procedure is abnormal, the stack information of described instruction message is obtained;Root The allocating stack information of described instruction message is obtained according to the stack information of described instruction message;Record the storehouse of described instruction message The allocating stack information of information and described instruction message.Operational monitoring method provided by the invention can be obtained when being abnormal The stack information and allocating stack information of instruction fetch message, can be accurately positioned the position of abnormality code, user is facilitated to search Abnormality code improves anomaly analysis efficiency.
Detailed description of the invention
Fig. 1 is the hardware structural diagram for realizing a kind of mobile terminal of each embodiment of the present invention;
Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention;
Fig. 3 is one of the flow diagram of operational monitoring method provided in an embodiment of the present invention;
Fig. 4 is the two of the flow diagram of operational monitoring method provided in an embodiment of the present invention;
Fig. 5 is the three of the flow diagram of operational monitoring method provided in an embodiment of the present invention;
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111, the number of the processor 110 are at least one.Ability Field technique personnel are appreciated that mobile terminal structure shown in Fig. 1 does not constitute the restriction to mobile terminal, and mobile terminal can To include perhaps combining certain components or different component layouts than illustrating more or fewer components.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and by least one element that the input received is transferred in mobile terminal 100 or can use In transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include at least one processing unit;Preferably, processor 110 can integrate application processor and modulation /demodulation processing Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned 100 hardware configuration of mobile terminal and communications network system, each embodiment of the method for the present invention is proposed.
It is one of the step flow chart of operational monitoring method provided in an embodiment of the present invention, the method refering to Fig. 3, Fig. 3 Applied in a mobile terminal, as shown in Figure 3, which comprises
Step 301, in the mobile terminal execution instruction message, detection implementation procedure whether be abnormal.
In the step, in the mobile terminal execution instruction message, whether detection implementation procedure is abnormal, specifically Ground, when the host process of the mobile terminal executes instruction message, whether detection implementation procedure is abnormal.For example, described When the Handler of mobile terminal executes instruction message HandleMessage, whether detection implementation procedure is abnormal.
The exception includes that program crashing (Crash is abnormal) and/or allocating stack are abnormal.Specifically, the mobile terminal Detect in implementation procedure whether generating program collapse and/or allocating stack it is abnormal, if generating program collapses in implementation procedure, or It is abnormal that generating program collapse and allocating stack in allocating stack exception or implementation procedure occur in implementation procedure, the shifting Dynamic terminal, which determines in implementation procedure, to be abnormal.
If step 302, implementation procedure are abnormal, the stack information of described instruction message is obtained.
In the step, if implementation procedure is abnormal, the stack information of described instruction message is obtained.It is understood that When the Handler of the mobile terminal executes instruction message HandleMessage, if being abnormal, obtains described instruction and disappear Cease the stack information of HandleMessage.
Step 303, the allocating stack information that described instruction message is obtained according to the stack information of described instruction message.
In the step, the mobile terminal obtains the calling of described instruction message according to the stack information of described instruction message Stack information.Specifically, the mobile terminal obtains the calling of described instruction message from the storehouse attribute of the stack information Stack information.In the embodiment of the present invention, storehouse attribute can be added in instruction message in advance, described in the storehouse attribute record The allocating stack information of instruction message.
It is understood that Handler sends message (SendMessage) to message according to the working principle of Handler Queue (MessageQuee), forms Handle MessageQuee, and Handle MessageQuee transmits message to Looper, Handler processing is given according to the sequential delivery in Handle MessageQuee by Looper.It is described mobile whole in the present embodiment End can add storehouse attribute in the message, record the message before calling when Handler sends messages to message queue Stack information.
The allocating stack information of step 304, the stack information for recording described instruction message and described instruction message.
In the step, the stack information of the mobile terminal records described instruction message and the calling of described instruction message Stack information.Specifically, the mobile terminal can be by the stack information of described instruction message and the tune of described instruction message With in stack information typing journal file.
In the present embodiment, the operational monitoring method detects implementation procedure in the mobile terminal execution instruction message Whether it is abnormal;If implementation procedure is abnormal, the stack information of described instruction message is obtained;According to described instruction message The allocating stack information of stack information acquisition described instruction message;Record the stack information and described instruction of described instruction message The allocating stack information of message.Operational monitoring method provided by the invention can when being abnormal acquisition instruction message storehouse Information and allocating stack information, can be accurately positioned the position of abnormality code, and user is facilitated to search abnormality code, improve abnormal Analysis efficiency.
Optionally, the allocating stack information that described instruction message is obtained according to the stack information of described instruction message, Include:
The allocating stack information of described instruction message is obtained from the storehouse attribute of the stack information.
In the embodiment, the stack information includes storehouse attribute, the calling heap of the storehouse attribute record described instruction Stack information.The mobile terminal specifically obtains described instruction message from the storehouse attribute of the stack information of described instruction message Allocating stack information.
Optionally, described in the mobile terminal execution instruction message, before whether detection implementation procedure is abnormal, The method also includes:
Storehouse attribute is added in the stack information of described instruction message, wherein the storehouse attribute record described instruction The allocating stack information of message.
In the embodiment, storehouse attribute can be added in the stack information of each instruction message in advance, it is every for recording The allocating stack information of a instruction message.
Optionally, the allocating stack information of the stack information of the record described instruction message and described instruction message, Include:
By the stack information of described instruction message and the allocating stack data input journal file of described instruction message.
In the embodiment, the stack information of the mobile terminal records described instruction message and the tune of described instruction message It is specifically included with the mode of stack information: the stack information of described instruction message and the allocating stack of described instruction message is believed Cease typing journal file.
Optionally, whether the detection implementation procedure is abnormal, comprising:
Detect implementation procedure whether generating program collapse and/or allocating stack it is abnormal.
In the present embodiment, the exception includes that program crashing and/or allocating stack are abnormal.
Referring to fig. 4, Fig. 4 is the two of the flow diagram of operational monitoring method provided in an embodiment of the present invention, the operation Monitoring method is applied to mobile terminal, as shown in Figure 4, which comprises
Step 401, in the mobile terminal execution instruction message, detection implementation procedure whether be abnormal.
If step 402, implementation procedure are abnormal, the stack information of described instruction message is obtained.
Step 403, the allocating stack information that described instruction message is obtained according to the stack information of described instruction message.
The step 401 is identical to step 303 to step 403 and the step 301 in present invention embodiment shown in Fig. 3, Details are not described herein again.
Step 404, by the allocating stack data input day of the stack information of described instruction message and described instruction message Will file.
In the step, the mobile terminal is by the stack information of described instruction message and the calling heap of described instruction message Stack data input journal file.
Step 405, the printing journal file.
In the step, by the stack information of described instruction message and the allocating stack data input day of described instruction message After will file, the mobile terminal can print the journal file.The mobile terminal can be by described instruction message Stack information and described instruction message allocating stack data input journal file after, print log text immediately Part can also print the journal file after the preset lime, and the log text can also be printed when meeting preset condition Part.
For example, the preset condition may include the allocating stack information of described instruction message in the journal file The number of middle appearance is greater than preset times.Specifically, the mobile terminal may determine that the allocating stack letter of described instruction message Cease whether the number that occurs in the journal file is greater than the preset times, if more than the preset times, described in explanation The code of the allocating stack information corresponding position of instruction message may be to cause abnormal reason, and the allocating stack information is corresponding There may be exception, the mobile terminals to print the journal file, facilitate user according to the journal file for the code of position There may be abnormal codes for positioning.
In the present embodiment, the operational monitoring method detects implementation procedure in the mobile terminal execution instruction message Whether it is abnormal;If implementation procedure is abnormal, the stack information of described instruction message is obtained;According to described instruction message The allocating stack information of stack information acquisition described instruction message;The stack information of described instruction message and described instruction are disappeared The allocating stack data input journal file of breath;Print the journal file.Operational monitoring method provided by the invention can be The stack information of acquisition instruction message and allocating stack information, can be accurately positioned the position of abnormality code when being abnormal, Facilitate user to search abnormality code, improves anomaly analysis efficiency.
Optionally, before the printing journal file, the method also includes:
Obtain the number that the allocating stack information of described instruction message occurs in the journal file;
It is default to judge whether number that the allocating stack information of described instruction message occurs in the journal file is greater than Number;
The printing journal file, comprising:
If the number that the allocating stack information of described instruction message occurs in the journal file is greater than described default time Number, prints the journal file.
In the present embodiment, if the number that the allocating stack information of described instruction message occurs in the journal file is greater than The preset times print the journal file.
It is the three of the flow diagram of operational monitoring method provided in an embodiment of the present invention, the operation referring to Fig. 5, Fig. 5 Monitoring method is applied to mobile terminal, as shown in Figure 5, which comprises
Step 501, in the mobile terminal execution instruction message, detection implementation procedure whether be abnormal.
If step 502, implementation procedure are abnormal, the stack information of described instruction message is obtained.
Step 503, the allocating stack information that described instruction message is obtained according to the stack information of described instruction message.
Step 504, by the allocating stack data input day of the stack information of described instruction message and described instruction message Will file.
Step 505, the printing journal file.
The step 501 is identical to step 405 to step 505 and the step 401 in present invention embodiment shown in Fig. 4, Details are not described herein again.
The number that step 506, the allocating stack information for obtaining described instruction message occur in the journal file.
In the step, the allocating stack information of the acquisition for mobile terminal described instruction message goes out in the journal file Existing number.
Step 507 judges whether is number that the allocating stack information of described instruction message occurs in the journal file Greater than preset times.
In the step, the mobile terminal judges that the allocating stack information of described instruction message goes out in the journal file Whether existing number is greater than preset times.
If the number that step 508, the allocating stack information of described instruction message occur in the journal file is greater than institute Preset times are stated, send the journal file to server.
In the step, if the number that the allocating stack information of described instruction message occurs in the journal file is greater than institute Preset times are stated, send the journal file to server.In this way, facilitating server end lookup that may store abnormal code.
In the present embodiment, the operational monitoring method detects implementation procedure in the mobile terminal execution instruction message Whether it is abnormal;If implementation procedure is abnormal, the stack information of described instruction message is obtained;According to described instruction message The allocating stack information of stack information acquisition described instruction message;The stack information of described instruction message and described instruction are disappeared The allocating stack data input journal file of breath;Print the journal file.Operational monitoring method provided by the invention can be The stack information of acquisition instruction message and allocating stack information, can be accurately positioned the position of abnormality code when being abnormal, Facilitate user to search abnormality code, improves anomaly analysis efficiency.
It can be with those of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment method is It is completed by the relevant hardware of at least one program instruction, at least one described program can store in shifting as shown in Figure 1 It in the memory 109 of dynamic terminal 100, and can be executed by the processor 110, at least one described program is by the processor 110 realize following steps when executing:
In the mobile terminal execution instruction message, whether detection implementation procedure is abnormal;
If implementation procedure is abnormal, the stack information of described instruction message is obtained;
The allocating stack information of described instruction message is obtained according to the stack information of described instruction message;
Record the stack information of described instruction message and the allocating stack information of described instruction message.
Optionally, the allocating stack information that described instruction message is obtained according to the stack information of described instruction message, Include:
The allocating stack information of described instruction message is obtained from the storehouse attribute of the stack information.
Optionally, described in the mobile terminal execution instruction message, before whether detection implementation procedure is abnormal, The processor 110 can also be achieved following steps:
Storehouse attribute is added in the stack information of described instruction message, wherein the storehouse attribute record described instruction The allocating stack information of message.
Optionally, the allocating stack information of the stack information of the record described instruction message and described instruction message, Include:
By the stack information of described instruction message and the allocating stack data input journal file of described instruction message.
Optionally, described by the stack information of described instruction message and the allocating stack data input of described instruction message After journal file, the processor 110 can also be achieved following steps:
Print the journal file.
Optionally, before the printing journal file, the processor 110 can also be achieved following steps:
Obtain the number that the allocating stack information of described instruction message occurs in the journal file;
It is default to judge whether number that the allocating stack information of described instruction message occurs in the journal file is greater than Number;
The printing journal file, comprising:
If the number that the allocating stack information of described instruction message occurs in the journal file is greater than described default time Number, prints the journal file.
Optionally, after the printing journal file, the processor 110 can also be achieved following steps:
Obtain the number that the allocating stack information of described instruction message occurs in the journal file;
It is default to judge whether number that the allocating stack information of described instruction message occurs in the journal file is greater than Number;
If the number that the allocating stack information of described instruction message occurs in the journal file is greater than described default time Number sends the journal file to server.
Optionally, whether the detection implementation procedure is abnormal, comprising:
Detect implementation procedure whether generating program collapse and/or allocating stack it is abnormal.
In the present embodiment, when executing instruction message, whether detection implementation procedure is abnormal the mobile terminal;If holding Row process is abnormal, and obtains the stack information of described instruction message;According to the acquisition of the stack information of described instruction message The allocating stack information of instruction message;Record the stack information of described instruction message and the allocating stack letter of described instruction message Breath.Mobile terminal provided in this embodiment the stack information and allocating stack of acquisition instruction message can be believed when being abnormal Breath, can be accurately positioned the position of abnormality code, and user is facilitated to search abnormality code, improve anomaly analysis efficiency.
It can be with those of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment method is It is completed by the relevant hardware of at least one program instruction, at least one described program can store computer-readable deposits in one In storage media, which is performed, comprising the following steps:
In the mobile terminal execution instruction message, whether detection implementation procedure is abnormal;
If implementation procedure is abnormal, the stack information of described instruction message is obtained;
The allocating stack information of described instruction message is obtained according to the stack information of described instruction message;
Record the stack information of described instruction message and the allocating stack information of described instruction message.
Optionally, the allocating stack information that described instruction message is obtained according to the stack information of described instruction message, Include:
The allocating stack information of described instruction message is obtained from the storehouse attribute of the stack information.
Optionally, described in the mobile terminal execution instruction message, before whether detection implementation procedure is abnormal, At least one described program is performed, and can also be achieved following steps:
Storehouse attribute is added in the stack information of described instruction message, wherein the storehouse attribute record described instruction The allocating stack information of message.
Optionally, the allocating stack information of the stack information of the record described instruction message and described instruction message, Include:
By the stack information of described instruction message and the allocating stack data input journal file of described instruction message.
Optionally, described by the stack information of described instruction message and the allocating stack data input of described instruction message After journal file, at least one described program is performed, and can also be achieved following steps:
Print the journal file.
Optionally, before the printing journal file, at least one described program is performed, and can also be achieved as follows Step:
Obtain the number that the allocating stack information of described instruction message occurs in the journal file;
It is default to judge whether number that the allocating stack information of described instruction message occurs in the journal file is greater than Number;
The printing journal file, comprising:
If the number that the allocating stack information of described instruction message occurs in the journal file is greater than described default time Number, prints the journal file.
Optionally, after the printing journal file, at least one described program is performed, and can also be achieved as follows Step:
Obtain the number that the allocating stack information of described instruction message occurs in the journal file;
It is default to judge whether number that the allocating stack information of described instruction message occurs in the journal file is greater than Number;
If the number that the allocating stack information of described instruction message occurs in the journal file is greater than described default time Number sends the journal file to server.
Optionally, whether the detection implementation procedure is abnormal, comprising:
Detect implementation procedure whether generating program collapse and/or allocating stack it is abnormal.
In the present embodiment, at least one described program is performed, in the mobile terminal execution instruction message, detection Whether implementation procedure is abnormal;If implementation procedure is abnormal, the stack information of described instruction message is obtained;According to the finger The stack information of message is enabled to obtain the allocating stack information of described instruction message;Record described instruction message stack information and The allocating stack information of described instruction message.In such manner, it is possible to when being abnormal acquisition instruction message stack information and tune With stack information, the position of abnormality code can be accurately positioned, user is facilitated to search abnormality code, improve anomaly analysis efficiency.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of operational monitoring method is applied to mobile terminal, which is characterized in that the described method includes:
In the mobile terminal execution instruction message, whether detection implementation procedure is abnormal;
If implementation procedure is abnormal, the stack information of described instruction message is obtained;
The allocating stack information of described instruction message is obtained according to the stack information of described instruction message;
Record the stack information of described instruction message and the allocating stack information of described instruction message.
2. operational monitoring method described in as described in claim 11, which is characterized in that described according to described instruction message The allocating stack information of stack information acquisition described instruction message, comprising:
The allocating stack information of described instruction message is obtained from the storehouse attribute of the stack information.
3. operational monitoring method as claimed in claim 2, which is characterized in that described in the mobile terminal execution instruction message When, before whether detection implementation procedure is abnormal, the method also includes:
Storehouse attribute is added in the stack information of described instruction message, wherein the storehouse attribute record described instruction message Allocating stack information.
4. operational monitoring method as described in claim 1, which is characterized in that the stack information of the record described instruction message And the allocating stack information of described instruction message, comprising:
By the stack information of described instruction message and the allocating stack data input journal file of described instruction message.
5. operational monitoring method as claimed in claim 4, which is characterized in that the stack information by described instruction message with And after the allocating stack data input journal file of described instruction message, the method also includes:
Print the journal file.
6. the operational monitoring method as described in right will go 5, which is characterized in that described before the printing journal file Method further include:
Obtain the number that the allocating stack information of described instruction message occurs in the journal file;
Whether the number for judging that the allocating stack information of described instruction message occurs in the journal file is greater than preset times;
The printing journal file, comprising:
If the number that the allocating stack information of described instruction message occurs in the journal file is greater than the preset times, beat Print the journal file.
7. operational monitoring method as claimed in claim 5, which is characterized in that described after the printing journal file Method further include:
Obtain the number that the allocating stack information of described instruction message occurs in the journal file;
Whether the number for judging that the allocating stack information of described instruction message occurs in the journal file is greater than preset times;
If the number that the allocating stack information of described instruction message occurs in the journal file is greater than the preset times, to Server sends the journal file.
8. operational monitoring method as described in any one of claim 1 to 7, which is characterized in that whether the detection implementation procedure It is abnormal, comprising:
Detect implementation procedure whether generating program collapse and/or allocating stack it is abnormal.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes memory, at least one processor and is stored in institute At least one program stated on memory and can executed at least one described processor, at least one described program by it is described extremely A few processor realizes the step in the described in any item methods of the claims 1~8 when executing.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer executable at least One program, which is characterized in that at least one described program makes the computer execute above-mentioned power when being executed by the computer Benefit requires the step in 1~8 described in any item methods.
CN201811609783.8A 2018-12-27 2018-12-27 Operation monitoring method, mobile terminal and computer readable storage medium Active CN109739676B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811609783.8A CN109739676B (en) 2018-12-27 2018-12-27 Operation monitoring method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811609783.8A CN109739676B (en) 2018-12-27 2018-12-27 Operation monitoring method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109739676A true CN109739676A (en) 2019-05-10
CN109739676B CN109739676B (en) 2022-06-24

Family

ID=66361435

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811609783.8A Active CN109739676B (en) 2018-12-27 2018-12-27 Operation monitoring method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109739676B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111897726A (en) * 2020-07-27 2020-11-06 Tcl通讯(宁波)有限公司 Abnormity positioning method, abnormity positioning device, storage medium and mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130132930A1 (en) * 2011-11-23 2013-05-23 Microsoft Corporation Capturing telemetry data by dynamic language engine
CN105843741A (en) * 2016-03-24 2016-08-10 腾讯科技(深圳)有限公司 Information processing method and device for application program
CN106339315A (en) * 2016-08-19 2017-01-18 东软集团股份有限公司 Defect positioning method and device
CN106445769A (en) * 2015-08-11 2017-02-22 腾讯科技(深圳)有限公司 Computer operation monitoring method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130132930A1 (en) * 2011-11-23 2013-05-23 Microsoft Corporation Capturing telemetry data by dynamic language engine
CN106445769A (en) * 2015-08-11 2017-02-22 腾讯科技(深圳)有限公司 Computer operation monitoring method, device and system
CN105843741A (en) * 2016-03-24 2016-08-10 腾讯科技(深圳)有限公司 Information processing method and device for application program
CN106339315A (en) * 2016-08-19 2017-01-18 东软集团股份有限公司 Defect positioning method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111897726A (en) * 2020-07-27 2020-11-06 Tcl通讯(宁波)有限公司 Abnormity positioning method, abnormity positioning device, storage medium and mobile terminal
CN111897726B (en) * 2020-07-27 2024-01-19 Tcl通讯(宁波)有限公司 Abnormality positioning method, abnormality positioning device, storage medium and mobile terminal

Also Published As

Publication number Publication date
CN109739676B (en) 2022-06-24

Similar Documents

Publication Publication Date Title
CN107133302A (en) Realize method, system, terminal and the computer-readable recording medium of data consistency
CN108512991A (en) A kind of based reminding method, mobile terminal and computer readable storage medium
CN110180181A (en) Screenshot method, device and the computer readable storage medium of Wonderful time video
CN109739571A (en) Application program launching method, mobile terminal and computer readable storage medium
CN109462700A (en) A kind of call method, mobile terminal and computer readable storage medium
CN110187808A (en) Dynamic wallpaper setting method, device and computer readable storage medium
CN109117105A (en) A kind of collaboration desktop interaction regulation method, equipment and computer readable storage medium
CN110064196A (en) Method for controlling mobile terminal, mobile terminal and computer readable storage medium
CN109992156A (en) A kind of false-touch prevention method, mobile terminal and computer readable storage medium
CN109445660A (en) A kind of wearable device control method, mobile terminal and wearable device
CN109656649A (en) A kind of desktop application control method, terminal and computer readable storage medium
CN109101301A (en) A kind of display control method, mobile terminal and computer readable storage medium
CN108966162A (en) Data communications method, communication processing equipment, terminal and readable storage medium storing program for executing
CN110167004A (en) A kind of network registering method, mobile terminal and computer readable storage medium
CN109947519A (en) Hardware-accelerated control method, terminal and computer readable storage medium
CN110096173A (en) Method for controlling mobile terminal, mobile terminal and computer readable storage medium
CN109918136A (en) Boot LOGO processing method, mobile terminal and the storage medium of mobile terminal
CN109151163A (en) A kind of method for controlling mobile terminal, mobile terminal and computer readable storage medium
CN108762629A (en) A kind of interface control method, mobile terminal and computer readable storage medium
CN109739676A (en) A kind of operational monitoring method, mobile terminal and computer readable storage medium
CN108419221A (en) A kind of document transmission method, mobile terminal and computer readable storage medium
CN110046011A (en) A kind of display methods, mobile terminal and computer readable storage medium
CN109739569A (en) Method for starting up mobile terminal, mobile terminal and computer readable storage medium
CN110069291A (en) A kind of display control method, mobile terminal and computer readable storage medium
CN109739405A (en) A kind of display control method, mobile terminal and computer readable storage medium

Legal Events

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