[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN113515430A - Method, device and equipment for monitoring state of process - Google Patents

Method, device and equipment for monitoring state of process Download PDF

Info

Publication number
CN113515430A
CN113515430A CN202111071871.9A CN202111071871A CN113515430A CN 113515430 A CN113515430 A CN 113515430A CN 202111071871 A CN202111071871 A CN 202111071871A CN 113515430 A CN113515430 A CN 113515430A
Authority
CN
China
Prior art keywords
check point
information
detection result
monitoring
monitoring information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111071871.9A
Other languages
Chinese (zh)
Inventor
金燕江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guoqi Intelligent Control Beijing Technology Co Ltd
Original Assignee
Guoqi Intelligent Control Beijing 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 Guoqi Intelligent Control Beijing Technology Co Ltd filed Critical Guoqi Intelligent Control Beijing Technology Co Ltd
Priority to CN202111071871.9A priority Critical patent/CN113515430A/en
Publication of CN113515430A publication Critical patent/CN113515430A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Retry When Errors Occur (AREA)

Abstract

The application provides a method, a device and equipment for monitoring the state of a process, which relate to the computer technology and comprise the following steps: receiving monitoring information sent by electronic equipment; each piece of monitoring information is obtained by monitoring the process to be monitored by the electronic equipment through a check point arranged on the process to be monitored; and detecting each piece of monitoring information according to preset check point information to obtain the detection result information of each check point. According to the method, the running state of each check point can be determined according to the detection result information of each check point, which is equivalent to the running state of the execution step indicated by each check point, and further the overall running state of the process to be monitored can be determined according to the running state of each execution step.

Description

Method, device and equipment for monitoring state of process
Technical Field
The present application relates to computer technologies, and in particular, to a method, an apparatus, and a device for monitoring a process state.
Background
At present, with the development of network technology, a variety of operating systems are generated, and when an operating system is used, processes in the operating system need to be monitored, so that the running state of each process is determined. For example, the operating system includes a Linux operating system, the Linux operating system includes a plurality of processes, the processes include a plurality of execution steps, and when the processes sequentially execute the plurality of execution steps, the internal logic of the processes is correct.
In the prior art, a Linux operating system generally monitors the running state of a process through an Inotify means.
However, in the prior art, since the Inotify means can only monitor the running state of the process, and cannot further monitor the internal logic of the process, when the running state of the process is shown as normal but the internal logic is wrong, the wrong internal logic cannot be detected, so that it is difficult for the existing operating system to detect the internal logic.
Disclosure of Invention
The application provides a process state monitoring method, a process state monitoring device and process state monitoring equipment, which are used for solving the technical problem that an operating system is difficult to detect internal logic of a process.
In a first aspect, the present application provides a method for monitoring a state of a process, the method being applied to an external monitor, the method including:
receiving monitoring information sent by electronic equipment; each piece of monitoring information is obtained by monitoring the process to be monitored through a check point set on the process to be monitored by the electronic equipment, each piece of monitoring information corresponds to each check point, and each check point is used for indicating each execution step on the process to be monitored;
detecting each piece of monitoring information according to preset check point information to obtain detection result information of each check point; the preset check point information comprises the sequence relation of check points and/or the preset time interval of each adjacent check point.
Further, if the detection result information of each check point represents whether the position state of the check point is abnormal, each monitoring information includes the position information of the check point corresponding to each monitoring information; according to preset check point information, detecting each monitoring information to obtain the detection result information of each check point, wherein the detection result information comprises the following steps:
determining a front check point and a rear check point of each check point according to the position information of the check point in each piece of monitoring information;
and determining the position correctness of a front check point and a rear check point of each check point according to the sequence relation of the check points in the preset check point information to obtain the detection result information of each check point.
Further, according to the sequential relationship of the checkpoints in the preset checkpoint information, determining the position correctness of the pre-checkpoint and the post-checkpoint of each checkpoint to obtain the detection result information of each checkpoint, including:
for each check point, if the sequence relation of the check points in the preset check point information is not satisfied by the front check point and the rear check point of the check point, obtaining the detection result information of the check point, wherein the detection result information of the check point represents the abnormal position state of the check point;
and for each check point, if the front check point and the rear check point of the check point meet the sequence relation of the check points in the preset check point information, obtaining the detection result information of the check point, wherein the detection result information of the check point represents that the position state of the check point is normal.
Further, if the detection result information of each check point represents whether the jump state is abnormal, each monitoring information comprises a time stamp of the check point corresponding to each monitoring information; according to preset check point information, detecting each monitoring information to obtain the detection result information of each check point, wherein the detection result information comprises the following steps:
determining the actual time interval of the current adjacent check point according to the received time stamp in the monitoring information of each check point in the adjacent check points;
if the actual time interval of the current adjacent check point does not meet the preset time interval corresponding to the current adjacent check point in the preset check point information, the detection result information of the previous check point in the current adjacent check point is obtained as the jump state abnormity;
and if the actual time interval of the current adjacent check point meets the preset time interval corresponding to the current adjacent check point in the preset check point information, obtaining the detection result information of the previous check point in the current adjacent check point as the normal jump state.
Further, if the detection result information of each check point represents whether the jump state is abnormal or not; according to preset check point information, detecting each monitoring information to obtain the detection result information of each check point, wherein the detection result information comprises the following steps:
after receiving the monitoring information of each check point, if it is determined that the monitoring information of the next check point is not received within a preset time interval corresponding to the check point, obtaining the detection result information of each check point as a jump state abnormity;
after receiving the monitoring information of each check point, if it is determined that the monitoring information of the next check point is received within a preset time interval corresponding to the check point, the detection result information of each check point is obtained as a normal jump state.
Further, each piece of monitoring information includes a timestamp of a checkpoint corresponding to each piece of monitoring information.
Further, the monitoring information includes a process identifier and a process name corresponding to the process; the method further comprises the following steps:
and when the detection result information is in an abnormal state, generating prompt information of process abnormity, wherein the prompt information comprises the process identification and the process name.
In a second aspect, the present application provides a method for monitoring a state of a process, where the method is applied to an electronic device, and the method includes:
monitoring the process to be monitored through a check point set on the process to be monitored to obtain monitoring information of each check point; wherein each checkpoint is used for indicating each execution step on the process to be monitored;
sending the monitoring information of each check point to an external monitor, wherein the monitoring information of each check point is used for the external monitor to detect the monitoring information according to preset check point information to obtain the detection result information of each check point; the preset check point information comprises the sequence relation of check points and/or the preset time interval of each adjacent check point.
Further, monitoring the process to be monitored through a check point set on the process to be monitored to obtain monitoring information of each check point, including:
monitoring the execution steps of the process to be monitored through each check point to obtain monitoring information of each check point; wherein, the monitoring information of each checkpoint comprises the position information of the checkpoint and/or the timestamp of the checkpoint.
Further, if the detection result information of each check point represents whether the position state of the check point is abnormal, each monitoring information includes the position information of the check point corresponding to each monitoring information;
the detection result information of each check point is obtained by determining the position correctness of a front check point and a rear check point of each check point according to the sequence relation of the check points in the preset check point information; the front check point and the rear check point of each check point are determined according to the position information of the check point in each monitoring information.
Further, if the detection result information of each check point represents whether the jump state is abnormal, each monitoring information comprises a time stamp of the check point corresponding to each monitoring information;
the detection result information of each check point is determined according to the actual time interval corresponding to the check point in the check point information and the actual time interval of the adjacent check point corresponding to the check point; the actual time interval of the adjacent check points corresponding to the check point is determined according to the time stamp in the monitoring information of each check point in the adjacent check points corresponding to the check point.
Further, if the detection result information of each check point represents whether the jump state is abnormal or not;
the detection result information of each checkpoint is determined by determining whether the monitoring information of the next checkpoint is received within a preset time interval corresponding to the checkpoint after the external monitor receives the monitoring information of each checkpoint.
Further, the monitoring information includes a process identifier and a process name corresponding to the process; and the prompt message of the process exception generated by the external monitor comprises the process identification and the process name.
In a third aspect, the present application provides a device for monitoring a state of a process, applied to an external monitor, the device including:
the receiving unit is used for receiving monitoring information sent by the electronic equipment; each piece of monitoring information is obtained by monitoring the process to be monitored through a check point set on the process to be monitored by the electronic equipment, each piece of monitoring information corresponds to each check point, and each check point is used for indicating each execution step on the process to be monitored;
the detection unit is used for detecting each piece of monitoring information according to preset check point information to obtain detection result information of each check point; the preset check point information comprises the sequence relation of check points and/or the preset time interval of each adjacent check point.
Further, if the detection result information of each check point represents whether the position state of the check point is abnormal, each monitoring information includes the position information of the check point corresponding to each monitoring information; the detection unit includes:
the first determining module is used for determining a front check point and a rear check point of each check point according to the position information of the check point in each piece of monitoring information;
and the second determining module is used for determining the position correctness of the front check point and the rear check point of each check point according to the sequence relation of the check points in the preset check point information to obtain the detection result information of each check point.
Further, the second determining module is specifically configured to:
for each check point, if the sequence relation of the check points in the preset check point information is not satisfied by the front check point and the rear check point of the check point, obtaining the detection result information of the check point, wherein the detection result information of the check point represents the abnormal position state of the check point;
and for each check point, if the front check point and the rear check point of the check point meet the sequence relation of the check points in the preset check point information, obtaining the detection result information of the check point, wherein the detection result information of the check point represents that the position state of the check point is normal.
Further, if the detection result information of each check point represents whether the jump state is abnormal, each monitoring information comprises a time stamp of the check point corresponding to each monitoring information; the detection unit includes:
the third determining module is used for determining the actual time interval of the current adjacent check point according to the received time stamp in the monitoring information of each check point in the adjacent check points;
a fourth determining module, configured to obtain that detection result information of a previous checkpoint in the current adjacent checkpoint is in an abnormal skip state if an actual time interval of the current adjacent checkpoint does not meet a preset time interval corresponding to the current adjacent checkpoint in the preset checkpoint information;
and the fifth determining module is used for obtaining the detection result information of the previous check point in the current adjacent check point as the normal skip state if the actual time interval of the current adjacent check point meets the preset time interval corresponding to the current adjacent check point in the preset check point information.
Further, if the detection result information of each check point represents whether the jump state is abnormal or not; the detection unit includes:
a sixth determining module, configured to, after receiving the monitoring information of each check point, if it is determined that the monitoring information of a next check point is not received within a preset time interval corresponding to the check point, obtain that detection result information of each check point is a skip state exception;
a seventh determining module, configured to, after receiving the monitoring information of each check point, if it is determined that the monitoring information of the next check point is received within a preset time interval corresponding to the check point, obtain that the detection result information of each check point is that the jumping state is normal.
Further, each piece of monitoring information includes a timestamp of a checkpoint corresponding to each piece of monitoring information.
Further, the monitoring information includes a process identifier and a process name corresponding to the process; the device further comprises:
and the prompting unit is used for generating prompting information of process exception when the detection result information is in an abnormal state, wherein the prompting information comprises the process identification and the process name.
In a fourth aspect, the present application provides a process status monitoring apparatus, which is applied to an electronic device, and includes:
the monitoring unit is used for monitoring the process to be monitored through the check points arranged on the process to be monitored to obtain the monitoring information of each check point; wherein each checkpoint is used for indicating each execution step on the process to be monitored;
the sending unit is used for sending the monitoring information of each check point to an external monitor, and the monitoring information of each check point is used for detecting the monitoring information by the external monitor according to preset check point information to obtain detection result information of each check point; the preset check point information comprises the sequence relation of check points and/or the preset time interval of each adjacent check point.
Further, the monitoring unit is specifically configured to:
monitoring the execution steps of the process to be monitored through each check point to obtain monitoring information of each check point; wherein, the monitoring information of each checkpoint comprises the position information of the checkpoint and/or the timestamp of the checkpoint.
Further, if the detection result information of each check point represents whether the position state of the check point is abnormal, each monitoring information includes the position information of the check point corresponding to each monitoring information;
the detection result information of each check point is obtained by determining the position correctness of a front check point and a rear check point of each check point according to the sequence relation of the check points in the preset check point information; the front check point and the rear check point of each check point are determined according to the position information of the check point in each monitoring information.
Further, if the detection result information of each check point represents whether the jump state is abnormal, each monitoring information comprises a time stamp of the check point corresponding to each monitoring information;
the detection result information of each check point is determined according to the actual time interval corresponding to the check point in the check point information and the actual time interval of the adjacent check point corresponding to the check point; the actual time interval of the adjacent check points corresponding to the check point is determined according to the time stamp in the monitoring information of each check point in the adjacent check points corresponding to the check point.
Further, if the detection result information of each check point represents whether the jump state is abnormal or not;
the detection result information of each checkpoint is determined by determining whether the monitoring information of the next checkpoint is received within a preset time interval corresponding to the checkpoint after the external monitor receives the monitoring information of each checkpoint.
Further, the monitoring information includes a process identifier and a process name corresponding to the process; and the prompt message of the process exception generated by the external monitor comprises the process identification and the process name.
In a fifth aspect, the present application provides an external monitor comprising a memory and a processor, wherein the memory stores a computer program operable on the processor, and the processor implements the method of the first aspect when executing the computer program.
In a sixth aspect, the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program operable on the processor, and the processor implements the method of the second aspect when executing the computer program.
In a seventh aspect, the present application provides a computer-readable storage medium having stored thereon computer-executable instructions for performing the method of the first aspect when executed by a processor, or for performing the method of the second aspect.
In an eighth aspect, the present application provides a computer program product comprising a computer program that, when executed by a processor, implements the method of the first aspect or, alternatively, implements the method of the second aspect.
The method, the device and the equipment for monitoring the state of the process receive monitoring information sent by electronic equipment; each piece of monitoring information is obtained by monitoring the process to be monitored through a check point arranged on the process to be monitored by the electronic equipment, each piece of monitoring information corresponds to each check point, and each check point is used for indicating each execution step on the process to be monitored; detecting each piece of monitoring information according to preset check point information to obtain detection result information of each check point; the preset check point information comprises the sequence relation of check points and/or the preset time interval of each adjacent check point. In the scheme, the monitoring information is obtained by monitoring the process to be monitored by the check points arranged on the process to be monitored, each monitoring information corresponds to each check point, each check point is used for indicating each execution step on the process to be monitored, after the external monitor receives the monitoring information sent by the electronic equipment, each monitoring information is detected according to the preset check point information to obtain the detection result information of each check point, wherein the preset check point information comprises the sequence relation of the check points and/or the preset time interval of each adjacent check point, therefore, the running state of each check point can be determined according to the detection result information of each check point, the running state comprises the execution sequence and/or the time interval, which is equivalent to the running state of the execution step indicated by each check point, and further, the whole running state of the process to be monitored can be determined according to the running state of each execution step, therefore, the running condition of the execution step in the process to be monitored and the overall running state of the process to be monitored can be determined according to the monitoring information corresponding to each check point, so that a user can find and avoid errors generated in the process in time.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic flowchart of a process status monitoring method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another method for monitoring a status of a process according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a method for monitoring a status of a process according to another embodiment of the present application;
fig. 4 is a scene schematic diagram of preset checkpoint information according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a state monitoring apparatus for a process according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of another state monitoring apparatus for a process according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a state monitoring apparatus of another process according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an external monitor according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 10 is a block diagram of an electronic device according to an embodiment of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application.
In one example, with the development of network technology, a variety of operating systems are generated, and when an operating system is used, processes in the operating system need to be monitored, so as to determine the running state of each process. For example, the operating system includes a Linux operating system, the Linux operating system includes a plurality of processes, the processes include a plurality of execution steps, and when the processes sequentially execute the plurality of execution steps, the internal logic of the processes is correct. In the prior art, a Linux operating system generally monitors the running state of a process through an Inotify means. However, in the prior art, since the Inotify means can only monitor the running state of the process, and cannot further monitor the internal logic of the process, when the running state of the process is shown as normal but the internal logic is wrong, the wrong internal logic cannot be detected, so that it is difficult for the existing operating system to detect the internal logic.
The application provides a process state monitoring method, a process state monitoring device and process state monitoring equipment, and aims to solve the technical problems in the prior art.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a process status monitoring method provided in an embodiment of the present application, and as shown in fig. 1, the method is applied to an external monitor, and the method includes:
101. receiving monitoring information sent by electronic equipment; each piece of monitoring information is obtained by monitoring the process to be monitored through a check point arranged on the process to be monitored by the electronic equipment, each piece of monitoring information corresponds to each check point, and each check point is used for indicating each execution step on the process to be monitored.
Exemplarily, the process to be monitored comprises a plurality of execution steps, and each execution step can be respectively provided with a check point, so that the electronic device can monitor the process to be monitored through the plurality of check points on the process to be monitored to obtain monitoring information corresponding to each check point, and each check point is used for indicating each execution step on the process to be monitored; the electronic device may then transmit the plurality of monitoring information to an external monitor, the monitoring information receiving the monitoring information transmitted by the electronic device.
102. Detecting each piece of monitoring information according to preset check point information to obtain detection result information of each check point; the preset check point information comprises the sequence relation of the check points and/or the preset time interval of each adjacent check point.
Exemplarily, fig. 4 is a scene schematic diagram of preset checkpoint information provided in an embodiment of the present application, as shown in fig. 4, the preset checkpoint information includes a sequential relationship of checkpoints and/or a preset time interval of each adjacent checkpoint, where the preset time interval may be a maximum time interval, and the checkpoint includes: A. b, C, D, E, F, before the process to be monitored is started, the process needs to send the corresponding preset check point information to the external monitor through some mechanism, for example, the preset check point information is sent to the external monitor through the system configuration file, and after the external monitor receives the preset check point information, the external monitor can detect each monitoring information according to the preset check point information and obtain the detection result information of each check point. The detection of the monitoring information according to the preset check point information is divided into three conditions, wherein the first condition is that each monitoring information is detected according to the sequence relation of the check points and the detection result information of each check point is obtained, the second condition is that each monitoring information is detected according to the preset time interval of each adjacent check point and the detection result information of each check point is obtained, and the third condition is that each monitoring information is detected according to the sequence relation of the check points and the preset time interval of each adjacent check point and the detection result information of each check point is obtained.
In the embodiment of the application, monitoring information sent by electronic equipment is received; each piece of monitoring information is obtained by monitoring the process to be monitored through a check point arranged on the process to be monitored by the electronic equipment, each piece of monitoring information corresponds to each check point, each check point is used for indicating each execution step on the process to be monitored, and each piece of monitoring information is detected according to preset check point information to obtain detection result information of each check point; the preset check point information comprises the sequence relation of the check points and/or the preset time interval of each adjacent check point. In the scheme, the monitoring information is obtained by monitoring the process to be monitored by the check points arranged on the process to be monitored, each monitoring information corresponds to each check point, each check point is used for indicating each execution step on the process to be monitored, after the external monitor receives the monitoring information sent by the electronic equipment, each monitoring information is detected according to the preset check point information to obtain the detection result information of each check point, wherein the preset check point information comprises the sequence relation of the check points and/or the preset time interval of each adjacent check point, therefore, the running state of each check point can be determined according to the detection result information of each check point, the running state comprises the execution sequence and/or the time interval, which is equivalent to the running state of the execution step indicated by each check point, and further, the whole running state of the process to be monitored can be determined according to the running state of each execution step, therefore, the running condition of the execution step in the process to be monitored and the overall running state of the process to be monitored can be determined according to the monitoring information corresponding to each check point, so that a user can find and avoid errors generated in the process in time.
Fig. 2 is a schematic flowchart of another method for monitoring a status of a process according to an embodiment of the present application, and as shown in fig. 2, the method is applied to an external monitor, and the method includes:
201. receiving monitoring information sent by electronic equipment; each piece of monitoring information is obtained by monitoring the process to be monitored through a check point arranged on the process to be monitored by the electronic equipment, each piece of monitoring information corresponds to each check point, and each check point is used for indicating each execution step on the process to be monitored.
For example, this step may refer to step 101 in fig. 1, and is not described again.
202. Detecting each piece of monitoring information according to preset check point information to obtain detection result information of each check point; the preset check point information comprises the sequence relation of the check points and/or the preset time interval of each adjacent check point.
Step 202 has several implementations as follows:
first implementation of step 202: and if the detection result information of each check point represents whether the position state of the check point is abnormal, each monitoring information comprises the position information of the check point corresponding to each monitoring information. Determining a front check point and a rear check point of each check point according to the position information of the check point in each monitoring information; and determining the position correctness of the front check point and the rear check point of each check point according to the sequence relation of the check points in the preset check point information to obtain the detection result information of each check point.
In an example, "determining the position correctness of the pre-checkpoint and the post-checkpoint of each checkpoint according to the sequential relationship of the checkpoints in the preset checkpoint information, and obtaining the detection result information of each checkpoint" specifically includes: for each check point, if the sequence relation of the check points in the preset check point information is not satisfied by the front check point and the rear check point of the check point, obtaining the detection result information of the check point, wherein the detection result information of the check point represents the abnormal position state of the check point; and aiming at each check point, if the front check point and the rear check point of the check point meet the sequence relation of the check points in the preset check point information, obtaining the detection result information of the check point, wherein the detection result information of the check point represents that the position state of the check point is normal.
Second implementation of step 202: and if the detection result information of each check point represents whether the jump state is abnormal, each monitoring information comprises the time stamp of the check point corresponding to each monitoring information. Determining the actual time interval of the current adjacent check point according to the received time stamp in the monitoring information of each check point in the adjacent check points; if the actual time interval of the current adjacent check point does not meet the preset time interval corresponding to the current adjacent check point in the preset check point information, the detection result information of the previous check point in the current adjacent check point is obtained as the jump state abnormity; and if the actual time interval of the current adjacent check point meets the preset time interval corresponding to the current adjacent check point in the preset check point information, obtaining the detection result information of the previous check point in the current adjacent check point as the normal jump state.
Third implementation of step 202: and if the detection result information of each check point represents whether the jump state is abnormal or not. After receiving the monitoring information of each check point, if it is determined that the monitoring information of the next check point is not received within a preset time interval corresponding to the check point, obtaining the detection result information of each check point as a skip state abnormity; after receiving the monitoring information of each check point, if it is determined that the monitoring information of the next check point is received within a preset time interval corresponding to the check point, the detection result information of each check point is obtained as a normal jump state.
In one example, each monitoring information includes a timestamp of a checkpoint corresponding to each monitoring information.
Illustratively, the predetermined checkpoint information includes a sequential relationship of checkpoints, and/or a predetermined time interval of each adjacent checkpoint. The external monitor can detect each monitoring information according to the preset check point information, and then obtain the detection result information of each check point. The detection of the monitoring information according to the preset check point information is divided into three modes.
In a first implementation manner, if the detection result information of each checkpoint represents whether the position state of the checkpoint is abnormal, each monitoring information includes the position information of the checkpoint corresponding to each monitoring information, so that the external monitor can determine the pre-checkpoint and the post-checkpoint of each checkpoint according to the position information of the checkpoint in each monitoring information; then, according to the sequence relation of the check points in the preset check point information, determining whether the positions of a front check point and a rear check point of each check point are correct, and if the front check point and the rear check point of each check point do not meet the sequence relation of the check points in the preset check point information, obtaining the detection result information of the check point, wherein the detection result information of the check point represents the abnormal position state of the check point; and aiming at each check point, if the front check point and the rear check point of the check point meet the sequence relation of the check points in the preset check point information, obtaining the detection result information of the check point, wherein the detection result information of the check point represents that the position state of the check point is normal.
In a second implementation manner, if the detection result information of each checkpoint represents whether the jump state is abnormal, each monitoring information includes a timestamp of the checkpoint corresponding to each monitoring information. The external monitor can receive monitoring information of each check point in adjacent check points, and then determine the actual time interval of the current adjacent check point according to the timestamp in the monitoring information of each check point in the adjacent check points, if the actual time interval of the current adjacent check point does not meet the preset time interval corresponding to the current adjacent check point in the preset check point information, it indicates that a previous check point in the current adjacent check point does not jump to an execution step corresponding to a next check point, or the execution step corresponding to the previous check point is too long, which causes the previous check point not to jump to the execution step corresponding to the next check point on time, and the like, then the detection result information of the previous check point in the current adjacent check point is obtained as a jump state abnormality; and if the actual time interval of the current adjacent check point meets the preset time interval corresponding to the current adjacent check point in the preset check point information, indicating that the previous check point in the current adjacent check point jumps to the execution step corresponding to the next check point on time, and obtaining the detection result information of the previous check point in the current adjacent check point as the normal jump state.
In a third implementation manner, if the detection result information of each checkpoint represents whether the jump state is abnormal or not. After receiving the monitoring information of each check point, if the external monitor determines that the monitoring information of the next check point is not received within a preset time interval corresponding to the check point, the external monitor obtains the detection result information of each check point as a skip state abnormity; after receiving the monitoring information of each check point, if it is determined that the monitoring information of the next check point is received within a preset time interval corresponding to the check point, the detection result information of each check point is obtained as a normal jump state. Wherein, each monitoring information includes a time stamp of the check point corresponding to each monitoring information.
203. And the monitoring information comprises a process identifier and a process name corresponding to the process, and when the detection result information is in an abnormal state, prompt information of process abnormity is generated, wherein the prompt information comprises the process identifier and the process name. Illustratively, after the process is running, ID information of the process, that is, a process identifier is generated, and in the process of running the process, when a current checkpoint jumps to a next checkpoint, the next checkpoint needs to immediately report monitoring information about an execution step where the next checkpoint is located to an external monitor, where the monitoring information includes location information, a timestamp, a process name, and a process identifier of the checkpoint itself, and therefore the monitoring information includes the process identifier and the process name corresponding to the process.
In the embodiment of the application, monitoring information sent by electronic equipment is received; each piece of monitoring information is obtained by monitoring the process to be monitored through a check point arranged on the process to be monitored by the electronic equipment, each piece of monitoring information corresponds to each check point, and each check point is used for indicating each execution step on the process to be monitored; detecting each piece of monitoring information according to preset check point information to obtain detection result information of each check point; the preset check point information comprises the sequence relation of the check points and/or the preset time interval of each adjacent check point. And the monitoring information comprises a process identifier and a process name corresponding to the process, and when the detection result information is in an abnormal state, prompt information of process abnormity is generated, wherein the prompt information comprises the process identifier and the process name. Therefore, the external detector can monitor the monitoring information through the preset check point information, obtain the detection result information of each check point, and generate the prompt information of process abnormity when the detection result information is in an abnormal state, so as to prompt the user that the execution sequence and/or time interval of the execution steps in the process are/is wrong, namely prompt the user that the internal logic of the process is wrong, and facilitate the user to find and avoid the mistake in time.
Fig. 3 is a schematic flowchart of a method for monitoring a status of a process according to an embodiment of the present application, where as shown in fig. 3, the method is applied to an electronic device, and the method includes:
301. monitoring the execution steps of the process to be monitored through each check point to obtain monitoring information of each check point; wherein, the monitoring information of each check point comprises the position information of the check point and/or the time stamp of the check point; wherein each checkpoint is used to indicate each execution step on the process to be monitored.
In one example, step 301 specifically includes: monitoring the execution steps of the process to be monitored through each check point to obtain monitoring information of each check point; wherein the monitoring information of each checkpoint comprises the position information of the checkpoint and/or the timestamp of the checkpoint.
In one example, if the detection result information of each checkpoint represents whether the position state of the checkpoint is abnormal, each monitoring information includes the position information of the checkpoint corresponding to each monitoring information; the detection result information of each check point is obtained by determining the position correctness of a front check point and a rear check point of each check point according to the sequence relation of the check points in the preset check point information; the front check point and the rear check point of each check point are determined according to the position information of the check point in each monitoring information.
In one example, if the detection result information of each checkpoint represents whether the jump state is abnormal, each monitoring information includes a timestamp of the checkpoint corresponding to each monitoring information; the detection result information of each check point is determined according to the actual time interval corresponding to the check point in the check point information and the actual time interval of the adjacent check point corresponding to the check point; the actual time interval of the adjacent check points corresponding to the check point is determined according to the time stamp in the monitoring information of each check point in the adjacent check points corresponding to the check point.
In one example, if the detection result information of each check point represents whether the jump state is abnormal or not; the detection result information of each checkpoint is determined by determining whether the monitoring information of the next checkpoint is received within a preset time interval corresponding to the checkpoint after the external monitor receives the monitoring information of each checkpoint.
302. Sending the monitoring information of each check point to an external monitor, wherein the monitoring information of each check point is used for the external monitor to detect the monitoring information according to preset check point information to obtain detection result information of each check point; the preset check point information comprises the sequence relation of the check points and/or the preset time interval of each adjacent check point.
In one example, the monitoring information includes a process identifier and a process name corresponding to the process; the prompt message of the process exception generated by the external monitor comprises a process identification and a process name.
For the solution of this embodiment, reference may be made to the technical solution in the above method, and the specific implementation process and the technical principle are the same, which are not described herein again.
Fig. 5 is a schematic structural diagram of a state monitoring apparatus of a process according to an embodiment of the present application, and as shown in fig. 5, the apparatus is applied to an external monitor, and the apparatus includes:
a receiving unit 51, configured to receive monitoring information sent by an electronic device; each piece of monitoring information is obtained by monitoring the process to be monitored through a check point arranged on the process to be monitored by the electronic equipment, each piece of monitoring information corresponds to each check point, and each check point is used for indicating each execution step on the process to be monitored.
The detection unit 52 is configured to detect each piece of monitoring information according to preset check point information to obtain detection result information of each check point; the preset check point information comprises the sequence relation of the check points and/or the preset time interval of each adjacent check point.
The apparatus of this embodiment may execute the technical solution in the method, and the specific implementation process and the technical principle are the same, which are not described herein again.
Fig. 6 is a schematic structural diagram of another state monitoring apparatus of a process according to an embodiment of the present application, where based on the embodiment shown in fig. 5, as shown in fig. 6, if detection result information of each checkpoint indicates whether a location state of the checkpoint is abnormal, each monitoring information includes location information of the checkpoint corresponding to each monitoring information; a detection unit 52, including:
the first determining module 521 is configured to determine a pre-checkpoint and a post-checkpoint of each checkpoint according to the location information of the checkpoint in each monitoring information.
The second determining module 522 is configured to determine the position correctness of the pre-checkpoint and the post-checkpoint of each checkpoint according to the sequential relationship of the checkpoints in the preset checkpoint information, so as to obtain the detection result information of each checkpoint.
In one example, the second determining module 522 is specifically configured to:
for each check point, if the sequence relation of the check points in the preset check point information is not satisfied by the front check point and the rear check point of the check point, obtaining the detection result information of the check point, wherein the detection result information of the check point represents the abnormal position state of the check point; and aiming at each check point, if the front check point and the rear check point of the check point meet the sequence relation of the check points in the preset check point information, obtaining the detection result information of the check point, wherein the detection result information of the check point represents that the position state of the check point is normal.
In one example, if the detection result information of each checkpoint represents whether the jump state is abnormal, each monitoring information includes a timestamp of the checkpoint corresponding to each monitoring information; a detection unit 52, including:
the third determining module 523 is configured to determine an actual time interval of the current neighboring checkpoint according to the timestamp in the monitoring information of each of the received neighboring checkpoints.
A fourth determining module 524, configured to obtain that the detection result information of the previous checkpoint in the current adjacent checkpoint is a skip state exception if the actual time interval of the current adjacent checkpoint does not meet the preset time interval corresponding to the current adjacent checkpoint in the preset checkpoint information.
A fifth determining module 525, configured to, if the actual time interval of the current adjacent check point meets a preset time interval corresponding to the current adjacent check point in the preset check point information, obtain that the detection result information of the previous check point in the current adjacent check point is in a normal skip state.
In one example, if the detection result information of each check point represents whether the jump state is abnormal or not; a detection unit 52, including:
a sixth determining module 526, configured to, after receiving the monitoring information of each checkpoint, if it is determined that the monitoring information of the next checkpoint is not received within a preset time interval corresponding to the checkpoint, obtain that the detection result information of each checkpoint is a jump status exception.
A seventh determining module 527, configured to, after receiving the monitoring information of each checkpoint, if it is determined that the monitoring information of the next checkpoint is received within a preset time interval corresponding to the checkpoint, obtain that the detection result information of each checkpoint is that the jumping state is normal.
In one example, each monitoring information includes a timestamp of a checkpoint corresponding to each monitoring information.
In one example, the monitoring information includes a process identifier and a process name corresponding to the process; the device also includes:
and the prompting unit 61 is configured to generate prompting information of process exception when the detection result information is in an abnormal state, where the prompting information includes a process identifier and a process name.
The apparatus of this embodiment may execute the technical solution in the method, and the specific implementation process and the technical principle are the same, which are not described herein again.
Fig. 7 is a schematic structural diagram of a state monitoring apparatus of another process according to an embodiment of the present application, and as shown in fig. 7, the apparatus is applied to an electronic device, and the apparatus includes:
the monitoring unit 71 is configured to monitor the process to be monitored through the check points set on the process to be monitored, and obtain monitoring information of each check point; wherein each checkpoint is used to indicate each execution step on the process to be monitored.
A sending unit 72, configured to send the monitoring information of each check point to an external monitor, where the monitoring information of each check point is used for the external monitor to detect the monitoring information according to preset check point information to obtain detection result information of each check point; the preset check point information comprises the sequence relation of the check points and/or the preset time interval of each adjacent check point.
In one example, the monitoring unit 71 is specifically configured to:
monitoring the execution steps of the process to be monitored through each check point to obtain monitoring information of each check point; wherein the monitoring information of each checkpoint comprises the position information of the checkpoint and/or the timestamp of the checkpoint.
In an example, if the detection result information of each checkpoint indicates whether the location state of the checkpoint is abnormal, each monitoring information includes location information of the checkpoint corresponding to each monitoring information.
The detection result information of each check point is obtained by determining the position correctness of a front check point and a rear check point of each check point according to the sequence relation of the check points in the preset check point information; the front check point and the rear check point of each check point are determined according to the position information of the check point in each monitoring information.
In an example, if the detection result information of each checkpoint represents whether the jump state is abnormal, each monitoring information includes a timestamp of the checkpoint corresponding to each monitoring information.
The detection result information of each check point is determined according to the actual time interval corresponding to the check point in the check point information and the actual time interval of the adjacent check point corresponding to the check point; the actual time interval of the adjacent check points corresponding to the check point is determined according to the time stamp in the monitoring information of each check point in the adjacent check points corresponding to the check point.
In one example, if the detection result information of each checkpoint represents whether the jump state is abnormal or not.
The detection result information of each checkpoint is determined by determining whether the monitoring information of the next checkpoint is received within a preset time interval corresponding to the checkpoint after the external monitor receives the monitoring information of each checkpoint.
In one example, the monitoring information includes a process identifier and a process name corresponding to the process; the prompt message of the process exception generated by the external monitor comprises a process identification and a process name.
The apparatus of this embodiment may execute the technical solution in the method, and the specific implementation process and the technical principle are the same, which are not described herein again.
Fig. 8 is a schematic structural diagram of an external monitor according to an embodiment of the present application, and as shown in fig. 8, the external monitor includes: a memory 81, a processor 82;
a computer program is stored in the memory 81 that is executable on the processor 82.
The processor 82 is configured to perform the methods provided in the embodiments described above.
The external monitor also comprises a receiver 83 and a transmitter 84. The receiver 83 is used for receiving commands and data sent by an external device, and the transmitter 84 is used for sending commands and data to the external device.
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 9, the electronic device includes: a memory 91, a processor 92;
the memory 91 stores therein a computer program that is executable on the processor 92.
The processor 92 is configured to perform the methods provided in the embodiments described above.
The electronic device further comprises a receiver 93 and a transmitter 94. The receiver 93 is used for receiving commands and data transmitted from an external device, and the transmitter 94 is used for transmitting commands and data to an external device.
Fig. 10 is a block diagram of an electronic device, which may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, etc., provided by an embodiment of the present application.
The apparatus 1000 may include one or more of the following components: processing component 1002, memory 1004, power component 1006, multimedia component 1008, audio component 1010, input/output (I/O) interface 1012, sensor component 1014, and communications component 1016.
The processing component 1002 generally controls the overall operation of the device 1000, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 1002 may include one or more processors 1020 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 1002 may include one or more modules that facilitate interaction between processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate interaction between the multimedia component 1008 and the processing component 1002.
The memory 1004 is configured to store various types of data to support operations at the apparatus 1000. Examples of such data include instructions for any application or method operating on device 1000, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1004 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 1006 provides power to the various components of the device 1000. The power components 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1000.
The multimedia component 1008 includes a screen that provides an output interface between the device 1000 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1008 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 1000 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1010 is configured to output and/or input audio signals. For example, audio component 1010 includes a Microphone (MIC) configured to receive external audio signals when apparatus 1000 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 1004 or transmitted via the communication component 1016. In some embodiments, audio component 1010 also includes a speaker for outputting audio signals.
I/O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1014 includes one or more sensors for providing various aspects of status assessment for the device 1000. For example, sensor assembly 1014 may detect an open/closed state of device 1000, the relative positioning of components, such as a display and keypad of device 1000, sensor assembly 1014 may also detect a change in position of device 1000 or a component of device 1000, the presence or absence of user contact with device 1000, orientation or acceleration/deceleration of device 1000, and a change in temperature of device 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1014 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1016 is configured to facilitate communications between the apparatus 1000 and other devices in a wired or wireless manner. The device 1000 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1016 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1016 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1000 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 1004 comprising instructions, executable by the processor 1020 of the device 1000 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Embodiments of the present application also provide a non-transitory computer-readable storage medium, where instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method provided by the above embodiments.
An embodiment of the present application further provides a computer program product, where the computer program product includes: a computer program, stored in a readable storage medium, from which at least one processor of the electronic device can read the computer program, the at least one processor executing the computer program causing the electronic device to perform the solution provided by any of the embodiments described above.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (30)

1. A method for monitoring the status of a process, the method being applied to an external monitor, the method comprising:
receiving monitoring information sent by electronic equipment; each piece of monitoring information is obtained by monitoring the process to be monitored through a check point set on the process to be monitored by the electronic equipment, each piece of monitoring information corresponds to each check point, and each check point is used for indicating each execution step on the process to be monitored;
detecting each piece of monitoring information according to preset check point information to obtain detection result information of each check point; the preset check point information comprises the sequence relation of check points and/or the preset time interval of each adjacent check point.
2. The method according to claim 1, wherein if the detection result information of each of the checkpoints indicates whether the location state of the checkpoint is abnormal, each of the monitoring information includes the location information of the checkpoint corresponding to each of the monitoring information; according to preset check point information, detecting each monitoring information to obtain the detection result information of each check point, wherein the detection result information comprises the following steps:
determining a front check point and a rear check point of each check point according to the position information of the check point in each piece of monitoring information;
and determining the position correctness of a front check point and a rear check point of each check point according to the sequence relation of the check points in the preset check point information to obtain the detection result information of each check point.
3. The method according to claim 2, wherein determining the position correctness of a front checkpoint and a rear checkpoint of each checkpoint according to the sequential relationship of the checkpoints in the preset checkpoint information to obtain the detection result information of each checkpoint comprises:
for each check point, if the sequence relation of the check points in the preset check point information is not satisfied by the front check point and the rear check point of the check point, obtaining the detection result information of the check point, wherein the detection result information of the check point represents the abnormal position state of the check point;
and for each check point, if the front check point and the rear check point of the check point meet the sequence relation of the check points in the preset check point information, obtaining the detection result information of the check point, wherein the detection result information of the check point represents that the position state of the check point is normal.
4. The method according to claim 1, wherein if the detection result information of each of the checkpoints represents whether the jump status is abnormal, each of the monitoring information includes a timestamp of the checkpoint corresponding to each of the monitoring information; according to preset check point information, detecting each monitoring information to obtain the detection result information of each check point, wherein the detection result information comprises the following steps:
determining the actual time interval of the current adjacent check point according to the received time stamp in the monitoring information of each check point in the adjacent check points;
if the actual time interval of the current adjacent check point does not meet the preset time interval corresponding to the current adjacent check point in the preset check point information, the detection result information of the previous check point in the current adjacent check point is obtained as the jump state abnormity;
and if the actual time interval of the current adjacent check point meets the preset time interval corresponding to the current adjacent check point in the preset check point information, obtaining the detection result information of the previous check point in the current adjacent check point as the normal jump state.
5. The method according to claim 1, wherein if the detection result information of each of the checkpoints represents whether the jump status is abnormal or not; according to preset check point information, detecting each monitoring information to obtain the detection result information of each check point, wherein the detection result information comprises the following steps:
after receiving the monitoring information of each check point, if it is determined that the monitoring information of the next check point is not received within a preset time interval corresponding to the check point, obtaining the detection result information of each check point as a jump state abnormity;
after receiving the monitoring information of each check point, if it is determined that the monitoring information of the next check point is received within a preset time interval corresponding to the check point, the detection result information of each check point is obtained as a normal jump state.
6. The method of claim 5, wherein each of the monitoring information comprises a timestamp of a checkpoint corresponding to each of the monitoring information.
7. The method according to any one of claims 1-6, wherein the monitoring information includes a process identifier and a process name corresponding to the process; the method further comprises the following steps:
and when the detection result information is in an abnormal state, generating prompt information of process abnormity, wherein the prompt information comprises the process identification and the process name.
8. A method for monitoring the state of a process, which is applied to an electronic device, comprises the following steps:
monitoring the process to be monitored through a check point set on the process to be monitored to obtain monitoring information of each check point; wherein each checkpoint is used for indicating each execution step on the process to be monitored;
sending the monitoring information of each check point to an external monitor, wherein the monitoring information of each check point is used for the external monitor to detect the monitoring information according to preset check point information to obtain the detection result information of each check point; the preset check point information comprises the sequence relation of check points and/or the preset time interval of each adjacent check point.
9. The method according to claim 8, wherein monitoring the process to be monitored through the check points set on the process to be monitored to obtain the monitoring information of each check point, includes:
monitoring the execution steps of the process to be monitored through each check point to obtain monitoring information of each check point; wherein, the monitoring information of each checkpoint comprises the position information of the checkpoint and/or the timestamp of the checkpoint.
10. The method according to claim 9, wherein if the detection result information of each of the checkpoints indicates whether the location state of the checkpoint is abnormal, each of the monitoring information includes the location information of the checkpoint corresponding to each of the monitoring information;
the detection result information of each check point is obtained by determining the position correctness of a front check point and a rear check point of each check point according to the sequence relation of the check points in the preset check point information; the front check point and the rear check point of each check point are determined according to the position information of the check point in each monitoring information.
11. The method according to claim 9, wherein if the detection result information of each of the checkpoints represents whether the jump status is abnormal, each of the monitoring information includes a timestamp of the checkpoint corresponding to each of the monitoring information;
the detection result information of each check point is determined according to the actual time interval corresponding to the check point in the check point information and the actual time interval of the adjacent check point corresponding to the check point; the actual time interval of the adjacent check points corresponding to the check point is determined according to the time stamp in the monitoring information of each check point in the adjacent check points corresponding to the check point.
12. The method according to claim 9, wherein if the detection result information of each of the checkpoints indicates whether the jump status is abnormal;
the detection result information of each checkpoint is determined by determining whether the monitoring information of the next checkpoint is received within a preset time interval corresponding to the checkpoint after the external monitor receives the monitoring information of each checkpoint.
13. The method according to any one of claims 8-12, wherein the monitoring information includes a process identification and a process name corresponding to the process; and the prompt message of the process exception generated by the external monitor comprises the process identification and the process name.
14. A process condition monitoring apparatus for use with an external monitor, the apparatus comprising:
the receiving unit is used for receiving monitoring information sent by the electronic equipment; each piece of monitoring information is obtained by monitoring the process to be monitored through a check point set on the process to be monitored by the electronic equipment, each piece of monitoring information corresponds to each check point, and each check point is used for indicating each execution step on the process to be monitored;
the detection unit is used for detecting each piece of monitoring information according to preset check point information to obtain detection result information of each check point; the preset check point information comprises the sequence relation of check points and/or the preset time interval of each adjacent check point.
15. The apparatus according to claim 14, wherein if the detection result information of each of the checkpoints indicates whether the location state of the checkpoint is abnormal, each of the monitoring information includes location information of the checkpoint corresponding to each of the monitoring information; the detection unit includes:
the first determining module is used for determining a front check point and a rear check point of each check point according to the position information of the check point in each piece of monitoring information;
and the second determining module is used for determining the position correctness of the front check point and the rear check point of each check point according to the sequence relation of the check points in the preset check point information to obtain the detection result information of each check point.
16. The apparatus of claim 15, wherein the second determining module is specifically configured to:
for each check point, if the sequence relation of the check points in the preset check point information is not satisfied by the front check point and the rear check point of the check point, obtaining the detection result information of the check point, wherein the detection result information of the check point represents the abnormal position state of the check point;
and for each check point, if the front check point and the rear check point of the check point meet the sequence relation of the check points in the preset check point information, obtaining the detection result information of the check point, wherein the detection result information of the check point represents that the position state of the check point is normal.
17. The apparatus according to claim 14, wherein if the detection result information of each of the checkpoints indicates whether a jump status is abnormal, each of the monitoring information includes a timestamp of the checkpoint corresponding to each of the monitoring information; the detection unit includes:
the third determining module is used for determining the actual time interval of the current adjacent check point according to the received time stamp in the monitoring information of each check point in the adjacent check points;
a fourth determining module, configured to obtain that detection result information of a previous checkpoint in the current adjacent checkpoint is in an abnormal skip state if an actual time interval of the current adjacent checkpoint does not meet a preset time interval corresponding to the current adjacent checkpoint in the preset checkpoint information;
and the fifth determining module is used for obtaining the detection result information of the previous check point in the current adjacent check point as the normal skip state if the actual time interval of the current adjacent check point meets the preset time interval corresponding to the current adjacent check point in the preset check point information.
18. The apparatus according to claim 14, wherein if the detection result information of each of the checkpoints indicates whether the jump status is abnormal; the detection unit includes:
a sixth determining module, configured to, after receiving the monitoring information of each check point, if it is determined that the monitoring information of a next check point is not received within a preset time interval corresponding to the check point, obtain that detection result information of each check point is a skip state exception;
a seventh determining module, configured to, after receiving the monitoring information of each check point, if it is determined that the monitoring information of the next check point is received within a preset time interval corresponding to the check point, obtain that the detection result information of each check point is that the jumping state is normal.
19. The apparatus according to claim 18, wherein each of the monitoring information includes a timestamp of a checkpoint corresponding to each of the monitoring information.
20. The apparatus according to any one of claims 14-19, wherein the monitoring information comprises a process identifier and a process name corresponding to a process; the device further comprises:
and the prompting unit is used for generating prompting information of process exception when the detection result information is in an abnormal state, wherein the prompting information comprises the process identification and the process name.
21. A process state monitoring device, applied to an electronic device, the device comprising:
the monitoring unit is used for monitoring the process to be monitored through the check points arranged on the process to be monitored to obtain the monitoring information of each check point; wherein each checkpoint is used for indicating each execution step on the process to be monitored;
the sending unit is used for sending the monitoring information of each check point to an external monitor, and the monitoring information of each check point is used for detecting the monitoring information by the external monitor according to preset check point information to obtain detection result information of each check point; the preset check point information comprises the sequence relation of check points and/or the preset time interval of each adjacent check point.
22. The apparatus according to claim 21, wherein the monitoring unit is specifically configured to:
monitoring the execution steps of the process to be monitored through each check point to obtain monitoring information of each check point; wherein, the monitoring information of each checkpoint comprises the position information of the checkpoint and/or the timestamp of the checkpoint.
23. The apparatus according to claim 22, wherein if the detection result information of each of the checkpoints indicates whether the location state of the checkpoint is abnormal, each of the monitoring information includes location information of the checkpoint corresponding to each of the monitoring information;
the detection result information of each check point is obtained by determining the position correctness of a front check point and a rear check point of each check point according to the sequence relation of the check points in the preset check point information; the front check point and the rear check point of each check point are determined according to the position information of the check point in each monitoring information.
24. The apparatus according to claim 22, wherein if the detection result information of each of the checkpoints indicates whether the jump status is abnormal, each of the monitoring information includes a timestamp of the checkpoint corresponding to each of the monitoring information;
the detection result information of each check point is determined according to the actual time interval corresponding to the check point in the check point information and the actual time interval of the adjacent check point corresponding to the check point; the actual time interval of the adjacent check points corresponding to the check point is determined according to the time stamp in the monitoring information of each check point in the adjacent check points corresponding to the check point.
25. The apparatus according to claim 22, wherein if the detection result information of each of the checkpoints indicates whether the jump status is abnormal;
the detection result information of each checkpoint is determined by determining whether the monitoring information of the next checkpoint is received within a preset time interval corresponding to the checkpoint after the external monitor receives the monitoring information of each checkpoint.
26. The apparatus according to any of claims 21-25, wherein the monitoring information comprises a process identifier and a process name corresponding to a process; and the prompt message of the process exception generated by the external monitor comprises the process identification and the process name.
27. An external monitor comprising a memory, a processor, a computer program being stored in the memory and being executable on the processor, the processor implementing the method of any of the preceding claims 1-7 when executing the computer program.
28. An electronic device, comprising a memory and a processor, wherein the memory stores a computer program operable on the processor, and the processor implements the method of any one of claims 8 to 13 when executing the computer program.
29. A computer-readable storage medium having stored thereon computer-executable instructions for performing the method of any one of claims 1-7, or for performing the method of any one of claims 8-13, when executed by a processor.
30. A computer program product, comprising a computer program which, when executed by a processor, implements the method of any one of claims 1-7, or is for implementing the method of any one of claims 8-13.
CN202111071871.9A 2021-09-14 2021-09-14 Method, device and equipment for monitoring state of process Pending CN113515430A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111071871.9A CN113515430A (en) 2021-09-14 2021-09-14 Method, device and equipment for monitoring state of process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111071871.9A CN113515430A (en) 2021-09-14 2021-09-14 Method, device and equipment for monitoring state of process

Publications (1)

Publication Number Publication Date
CN113515430A true CN113515430A (en) 2021-10-19

Family

ID=78063226

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111071871.9A Pending CN113515430A (en) 2021-09-14 2021-09-14 Method, device and equipment for monitoring state of process

Country Status (1)

Country Link
CN (1) CN113515430A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114564361A (en) * 2022-03-03 2022-05-31 合众新能源汽车有限公司 Application management method and system for intelligent driving platform
CN115129573A (en) * 2022-08-31 2022-09-30 国汽智控(北京)科技有限公司 Program operation monitoring method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11508069A (en) * 1995-06-16 1999-07-13 ルーセント テクノロジーズ Checkpoint and recovery system for persistent state
CN101377750A (en) * 2007-09-21 2009-03-04 中国科学院计算技术研究所 System and method for cluster fault toleration
CN102369514A (en) * 2011-08-31 2012-03-07 华为技术有限公司 Method and system for establishing detection points
CN104516790A (en) * 2014-12-24 2015-04-15 西安电子科技大学 System and method for recording and recovering checking point in distributed environment
CN109709849A (en) * 2018-12-20 2019-05-03 浙江吉利汽车研究院有限公司 Single-chip microcontroller safety operating control method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11508069A (en) * 1995-06-16 1999-07-13 ルーセント テクノロジーズ Checkpoint and recovery system for persistent state
CN101377750A (en) * 2007-09-21 2009-03-04 中国科学院计算技术研究所 System and method for cluster fault toleration
CN102369514A (en) * 2011-08-31 2012-03-07 华为技术有限公司 Method and system for establishing detection points
CN104516790A (en) * 2014-12-24 2015-04-15 西安电子科技大学 System and method for recording and recovering checking point in distributed environment
CN109709849A (en) * 2018-12-20 2019-05-03 浙江吉利汽车研究院有限公司 Single-chip microcontroller safety operating control method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114564361A (en) * 2022-03-03 2022-05-31 合众新能源汽车有限公司 Application management method and system for intelligent driving platform
CN114564361B (en) * 2022-03-03 2024-05-07 合众新能源汽车股份有限公司 Application management method and system for intelligent driving platform
CN115129573A (en) * 2022-08-31 2022-09-30 国汽智控(北京)科技有限公司 Program operation monitoring method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US20210153195A1 (en) Method and device for identifying downlink transmissions
US11968665B2 (en) Resource configuration methods and apparatuses
CN110291840B (en) Connection processing method, device and medium
CN107635074B (en) Method, apparatus and computer-readable storage medium for controlling alarm
CN107491214B (en) Touch screen control method and device and storage medium
CN103986833A (en) Abnormal condition monitoring method and device
CN113515430A (en) Method, device and equipment for monitoring state of process
CN109314842B (en) Resource sensing result reporting method and device, user equipment and storage medium
CN108476379B (en) Information recording method and information recording apparatus
US12096407B2 (en) Time domain configuration method, device, and storage media
CN105653903A (en) Application program authority management method and device
CN106034323A (en) Wireless-terminal-based automatic recovery method and relevant apparatus for data connection
CN107158685B (en) Exercise verification method and apparatus
US11877155B2 (en) Method of performing integrity verification on downlink data of DRB and reporting information, user equipment and computer readable storage medium
US11956755B2 (en) Method and apparatus for transmitting paging signaling
US11533728B2 (en) Data transmission method and apparatus on unlicensed frequency band
CN107241432B (en) Message receiving method and device, electronic equipment and computer storage medium
CN111383364A (en) Method, device and equipment for testing automobile data recorder and storage medium
CN116437240A (en) Data information transmission method, device and equipment
CN107819871B (en) Application state determination method and device
CN106502719A (en) The method and device of the component of management application program
CN110999492B (en) Occupancy time length determining method, occupancy time length determining device and electronic equipment
CN110968516A (en) Application memory testing method and device and computer storage medium
CN113645695B (en) Method, device and storage medium for processing radio resource control link configuration signaling
CN105516456B (en) Communication event transfer method, device 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20211019