Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and apparatus for monitoring and collecting PHP code data

A technology of code data and data, which is applied in the field of PHP code data monitoring and collection, can solve the problems of large amount of collected data, no centralized management, difficult control of the number of monitoring requests, etc., and achieve the effect of convenient use

Inactive Publication Date: 2018-08-28
GUANGDONG INTELL VISION TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The above-mentioned tools mainly have the following disadvantages: 1. To start monitoring, only the monitoring code can be embedded in the user code; 2. The number of monitoring requests is difficult to control, the amount of collected data is small, the data is unreliable, and the amount of collected data is large. The server is under extra pressure; 3. The collected data can only be saved in the current server without centralized management

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and apparatus for monitoring and collecting PHP code data
  • Method and apparatus for monitoring and collecting PHP code data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] Such as figure 1 As shown, the present embodiment provides a method for monitoring and collecting PHP code data, comprising the following steps:

[0033] S1: Receive control information, the control information includes random sampling, specific parameter sampling and storage device information, the random sampling includes whether to enable random sampling and random sampling probability, the specific parameter sampling includes whether to enable specific parameter sampling and specific parameter ; The monitoring tool needs to confirm whether to start according to the control information; the reading of the control information is mainly used to control the intervention of the monitoring system and determine the data storage scheme.

[0034] In the process of implementation, it can monitor the PHP logic code through random sampling, for example, it can monitor the response speed of the logic code during operation, and can also monitor whether the logic code has abnormal...

Embodiment 2

[0043] Such as figure 2 As shown, the present embodiment provides a device for monitoring and collecting PHP code data, including the following modules:

[0044]Receiving module: used to receive control information, the control information includes random sampling and specific parameter sampling, the random sampling includes whether to enable random sampling and random sampling probability, the specific parameter sampling includes whether to enable specific parameter sampling and specific parameters;

[0045] Monitoring data acquisition module: used to monitor the operation of PHP logic code according to the control information to obtain monitoring data.

[0046] Data sending module: used to send the collected monitoring data to the corresponding storage device. The storage device mentioned in the data sending step is a database, a network interface or a cache queue.

Embodiment 3

[0048] Embodiment 3 discloses an electronic device, the electronic device includes a processor, a memory, and a program, wherein one or more of the processor and the memory can be used, and the program is stored in the memory and is configured to be executed by the processor, When the processor executes the program, the method for monitoring and collecting PHP code data in Embodiment 1 is realized. The electronic device may be a series of electronic devices such as a mobile phone, a computer, and a tablet computer.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention discloses a method for monitoring and collecting PHP code data. The method comprises the following steps: the receiving step: receiving control information, wherein the control information comprises random sampling, and the random sampling comprises whether to start random sampling and a random sampling probability; and the monitoring data acquisition step: monitoring the running of the PHP logic code according to the control information to obtain monitoring data. The present invention also provides an electronic device and a computer readable storage medium. According tothe method for monitoring and collecting PHP code data provided by the present invention, control information is introduced, and startup of a monitoring tool is controlled by using the control information to complete data collection for running the PHP logic code; and by introducing the control information, there is no need to implant the monitoring code in the original code, and the amount of the collected data can be adjusted according to the actual situation, so that it is more convenient for the user to use the data.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for monitoring and collecting PHP code data. Background technique [0002] At present, in order to monitor the execution of PHP codes on the web server, there are some performance monitoring tools. Using these monitoring tools, the performance data and execution logic of the PHP code execution process can be obtained. This tool is a passive form of activation startup monitoring tool, independent deployment and other features. [0003] The above-mentioned tools mainly have the following disadvantages: 1. To start monitoring, only the monitoring code can be embedded in the user code; 2. The number of monitoring requests is difficult to control, the amount of collected data is small, the data is unreliable, and the amount of collected data is large. The server is under extra pressure; 3. The collected data can only be saved in the current server without centra...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/30G06F11/34
CPCG06F11/302G06F11/3466
Inventor 钟志武
Owner GUANGDONG INTELL VISION TECH CO LTD