CN110955438A - Method, device and equipment for monitoring performance of small program and storage medium - Google Patents

Method, device and equipment for monitoring performance of small program and storage medium Download PDF

Info

Publication number
CN110955438A
CN110955438A CN201911221439.6A CN201911221439A CN110955438A CN 110955438 A CN110955438 A CN 110955438A CN 201911221439 A CN201911221439 A CN 201911221439A CN 110955438 A CN110955438 A CN 110955438A
Authority
CN
China
Prior art keywords
performance
data
reference data
applet
small program
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
CN201911221439.6A
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.)
Beijing Bo Hongyuan Data Polytron Technologies Inc
Original Assignee
Beijing Bo Hongyuan Data Polytron Technologies Inc
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 Beijing Bo Hongyuan Data Polytron Technologies Inc filed Critical Beijing Bo Hongyuan Data Polytron Technologies Inc
Priority to CN201911221439.6A priority Critical patent/CN110955438A/en
Publication of CN110955438A publication Critical patent/CN110955438A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes

Abstract

The invention discloses a method, a device, equipment and a storage medium for monitoring the performance of an applet, wherein the method comprises the following steps: loading a small program package containing a probe; acquiring performance reference data in the small program operation process according to a data acquisition rule associated with the probe; the performance reference data is sent to the server. The embodiment of the invention solves the problem that the terminal cannot acquire the performance parameters of the small program before the user opens each page browsing operation after entering the small program in the prior art, effectively collects the performance reference data in the operation process of the small program and creates conditions for the server to monitor the performance of the small program.

Description

Method, device and equipment for monitoring performance of small program and storage medium
Technical Field
The embodiment of the invention relates to a data acquisition and processing technology, in particular to a method, a device, equipment and a storage medium for monitoring the performance of an applet.
Background
Before a user scans codes or links to an applet entering the terminal, the terminal can complete preparation items such as basic information acquisition, code downloading or updating of the applet, and if the preparation fails or the waiting time is too long, the user leaves; before a user opens each page browsing operation after entering the applet, the page can be rendered, requested for data and the like, if the rendering time or the data request time is long, the user is easy to leave, and if the data request fails, the use process of the user is terminated.
However, in the applet loading process, the terminal cannot provide performance monitoring, and the data acquisition rate is low.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for monitoring the performance of an applet, which effectively collect performance reference data in the running process of the applet, improve the data collection rate in the loading process of the applet and create conditions for monitoring the performance of the applet by a server.
In a first aspect, an embodiment of the present invention provides a method for monitoring performance of an applet, where the method is applied to a terminal, and the method includes:
loading a applet package, the applet package containing a probe;
acquiring performance reference data in the small program operation process according to the data acquisition rule associated with the probe;
sending the performance reference data to a server.
Optionally, acquiring performance reference data in the applet running process according to the data acquisition rule associated with the probe includes:
acquiring performance parameter data calibrated by a probe in the running process of the small program, and judging whether the performance parameter data meets a corresponding data acquisition rule or not;
if not, acquiring a page screenshot matched with the performance parameter data and the performance parameter data;
correspondingly, the sending the performance reference data to a server includes:
and sending the performance parameter data and the page screenshot matched with the performance parameter data to a server.
Optionally, before loading the applet package, the method includes:
adding a preset service address into the legal domain name requested by the applet;
correspondingly, the sending the performance reference data to a server includes:
and sending the performance reference data to a server according to the preset service address.
In a second aspect, an embodiment of the present invention provides a method for monitoring performance of an applet, where the method is applied to a server, and the method includes:
receiving performance reference data of the small program sent by a terminal;
generating performance monitoring data according to the performance reference data;
outputting the performance monitoring data in a graphical user interface.
Optionally, generating performance monitoring data according to the performance reference data includes:
cleaning the performance reference data, and storing the cleaned performance reference data in a database;
acquiring performance reference data after cleaning treatment from the data, and determining performance monitoring data according to the performance reference data after cleaning treatment;
correspondingly, the outputting the performance monitoring data in the graphical user interface includes:
and synchronously displaying the performance monitoring data in a user graphical interface.
Optionally, before receiving the performance reference data of the applet sent by the terminal, the method further includes:
and embedding a probe into the small program package, wherein the probe is used for acquiring performance reference data in the small program operation process.
In a third aspect, an embodiment of the present invention further provides an apparatus for monitoring performance of an applet, where the apparatus includes:
the small program package loading module is used for loading a small program package, and the small program package comprises a probe;
the performance reference data acquisition module is used for acquiring performance reference data in the small program operation process according to the data acquisition rule associated with the probe;
and the sending module is used for sending the performance reference data to a server.
In a fourth aspect, an embodiment of the present invention further provides an apparatus for monitoring performance of an applet, where the apparatus includes:
the performance reference data receiving module is used for receiving the performance reference data of the small program sent by the terminal;
the performance monitoring data generation module is used for generating performance monitoring data according to the performance reference data;
and the performance monitoring data output module is used for outputting the performance monitoring data in a user graphical interface.
In a fifth aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement a method for monitoring performance of an applet, as provided in any embodiment of the invention.
In a sixth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the storage medium stores a computer program, and the computer program, when executed by a processor, implements the method for monitoring performance of an applet provided in any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, the small program package containing the probe is loaded to acquire the performance reference data in the small program running process, so that the problem that the performance parameters of the small program cannot be acquired when the small program is loaded by a terminal is solved, the performance reference data in the small program running process can be effectively acquired, the data acquisition rate in the small program loading process is improved, and conditions are created for monitoring the performance of the small program by a server.
Drawings
Fig. 1 is a flowchart of a method for monitoring performance of an applet according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a method for monitoring the performance of an applet in an embodiment of the present invention;
FIG. 3 is a flowchart of a method for monitoring the performance of an applet in accordance with a second embodiment of the present invention;
FIG. 4 is a block diagram of a performance monitoring apparatus of an applet in a third embodiment of the present invention;
FIG. 5 is a block diagram of a performance monitoring apparatus of an applet in a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer device in the fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a method for monitoring the performance of an applet according to an embodiment of the present invention, where this embodiment is applicable to a situation where a terminal sends, in a process of running an applet, performance reference data of the applet to a server, so that the server monitors the performance of the applet, as shown in fig. 2, the method may be executed by a performance monitoring apparatus of the applet, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a terminal, and the terminal is capable of communicating with the server, where the method specifically includes the following steps:
step 110, loading an applet package, wherein the applet package comprises a probe.
In this embodiment, in order to promote a product, an enterprise or a company may develop an applet corresponding to a product Application (APP) in addition to a product Application (APP). The applet can run in an instant chat type APP in the terminal, and through the applet, a user does not need to install an actual product application program, and only opens a corresponding applet inside the instant chat type APP, so that relevant operations aiming at the product APP can be completed, for example, functions of purchasing, playing or subscribing are executed. The code data of the small program for loading, compiling and running is a small program package.
The probe is code data added to the applet package for obtaining the operating parameters of the applet. The probe is edited by a specific programming language, and specifically, the probe can be a JS (JavaScript) probe.
In this embodiment, before loading the applet package, the terminal should add a preset service address to a development setting-server domain name-request legal domain name in the applet background, where the preset service address is an address for the applet package to receive probe data, so that the probe legally obtains an operating parameter of the applet.
And 120, acquiring performance reference data in the small program operation process according to the data acquisition rule associated with the probe.
In this embodiment, the probe calibrates performance parameter data related to an applet running process, and the data acquisition rule associated with the probe is an acquisition rule corresponding to the performance parameter data.
In a specific example, assuming that the performance parameter data calibrated in the probe is the first response time, the request elapsed time, the request error number, and the response error number, and accordingly, the data acquisition rule associated with the probe is: setting a sampling rate; setting a slow page threshold, and collecting a page with the first response time larger than the slow page threshold as a slow page; and setting a slow request threshold, and collecting requests which consume more time than the slow request threshold as slow requests. The sampling rate can be set by a user in a self-defined mode, and when the sampling rate is set to be 100%, the terminal collects all pages opened in the applet at each time. The slow page threshold may be set to 500ms, the slow request threshold may be set to 300ms, and the specific value is preset according to an actual situation, which is not limited in this embodiment.
In the present embodiment, as shown in fig. 2, the performance reference data determination process is as follows:
s101, collecting performance parameter data calibrated by the probe in the small program operation process by the terminal.
S102, judging whether the performance parameter data meet corresponding data acquisition rules or not; if yes, executing step S103; if not, step S104 is executed.
And S103, acquiring the performance parameter data as performance reference data.
S104, acquiring a page screenshot matched with the performance parameter data and the performance parameter data, and taking the page screenshot and the performance parameter data as performance reference data;
in a specific example, assuming that the first response time acquired in the small program running process is greater than a preset slow page threshold or the request consumed time is greater than a slow request threshold, acquiring a page screenshot of the current acquisition process, the first response time, the request consumed time, the request error times and the response error times as performance reference data, wherein the page screenshot comprises error reporting information of the small program request error; on the contrary, if the first response time acquired in the applet running process is smaller than the preset slow page threshold or the request consumed time is smaller than the slow request threshold, the first response time, the request consumed time, the request error times and the response error times of the current acquisition process are acquired as the performance reference data.
Step 130, sending the performance reference data to a server.
In step 110, a preset service address is already added to the legal domain name requested by the applet, and in this embodiment, the terminal sends the performance reference data to the server according to the preset service address, so that the server monitors the performance of the applet.
The embodiment of the invention firstly loads a small program package containing a probe; then acquiring performance reference data in the small program operation process according to the data acquisition rule associated with the probe; and finally, sending the performance reference data to a server. The embodiment of the invention solves the problem that the performance parameters of the small program cannot be acquired when the small program is loaded by the terminal, can effectively acquire the performance reference data in the operation process of the small program, improves the data acquisition rate in the loading process of the small program and creates conditions for the performance monitoring of the small program by the server.
Example two
Fig. 3 is a flowchart of a method for monitoring the performance of an applet according to a second embodiment of the present invention, where this embodiment is applicable to a situation where a server receives performance reference data of an applet sent by a terminal and then visually monitors the applet, as shown in fig. 2, the method may be executed by a device for monitoring the performance of the applet, where the device may be implemented by software and/or hardware, and may be generally integrated in a server, and the server may be capable of communicating with the terminal, where the method specifically includes the following steps:
and step 310, receiving the performance reference data of the small program sent by the terminal.
In this embodiment, the terminal specifically refers to an application carrier capable of running an applet. Typically, the terminal is an instant messaging application; the applet is an application program capable of implementing a set function (e.g., product purchase, video play, or reading an electronic book, etc.) that can be run in the terminal.
Before this step, as shown in S201 in fig. 2, the server embeds a probe into the applet package, where the probe is used to obtain performance reference data during the applet running process. And the terminal acquires the performance reference data in the small program operation process according to the data acquisition rule associated with the probe by loading the small program package containing the probe.
The small program package is code data which is carried by the small program and used for loading, compiling and running. The probe is code data added to the applet package for obtaining the operating parameters of the applet. The probe is edited by a specific programming language, and specifically, the probe can be a JS (JavaScript) probe. The probe calibrates performance parameter data related to the small program operation process, and the data acquisition rule associated with the probe is an acquisition rule corresponding to the performance parameter data.
And 320, generating performance monitoring data according to the performance reference data.
In this embodiment, the server performs a cleaning process on the performance reference data, as shown in S202 in fig. 2, and stores the performance reference data after the cleaning process in the database;
performance reference data after the cleaning process is obtained from the data, and performance monitoring data is determined according to the performance reference data after the cleaning process, as shown in S203 in fig. 2.
In a specific example, the server performs an Extract-transform-form-Load (ETL-Load) process, i.e., a cleaning process, on the performance reference data, so as to screen out effective performance reference data and perform uniform format conversion on the effective performance reference data; then storing the performance reference data after cleaning treatment in a database, wherein the database can be a Druid or Mysql and the like; acquiring performance reference data after cleaning treatment from the data, and determining performance monitoring data according to the performance reference data after cleaning treatment, wherein the performance monitoring data comprises: multiple performance indexes such as the health score data of the small program, the first response time, the time consumed by the request, the request error rate, the response error rate and the preparation (onReady) time of the small program. The method comprises the steps that first response time, request consumed time, request error rate and response error rate are obtained by a probe embedded in an applet through collecting performance parameter data, the preparation time is obtained by a terminal before the applet is loaded, and the applet health score data is obtained according to a preset calculation formula through the first response time, the request consumed time, the request error rate, the applet preparation time and the response error rate.
And step 330, outputting the performance monitoring data in a user graphical interface.
In the above steps, the performance monitoring data is determined, and the embodiment displays the performance monitoring data in the user graphical interface synchronously, so that the applet developer can master the health condition of the applet in time.
Specifically, in this embodiment, the performance monitoring data obtained in step 320, that is, the applet health score data, the first response time, the request consumed time, the request error rate, the response error rate, and the applet preparation (onReady) time are displayed in the user graphical interface in the form of a graph, and an average value, a maximum value, and a data value acquired last time of the index are respectively recorded under each performance index; secondly, the embodiment draws a curve graph corresponding to the acquisition time and the health score of the small program, so that the server side can monitor the performance of the small program more intuitively. In the embodiment of the invention, a server firstly receives performance reference data of an applet sent by a terminal; then generating performance monitoring data according to the performance reference data; and finally generating performance monitoring data according to the performance reference data. The embodiment of the invention solves the problem that the terminal cannot provide performance monitoring before the user opens each page browsing operation after entering the applet in the prior art, effectively obtains the performance monitoring data of the applet, so that an applet developer can master the health condition of the applet in time, and takes optimization measures aiming at the condition of performance deterioration.
EXAMPLE III
Fig. 4 is a structural diagram of a performance monitoring apparatus of an applet according to a third embodiment of the present invention, where the apparatus includes: an applet loading module 410, a performance reference data collection module 420, and a sending module 430.
The applet package loading module 410 is configured to load an applet package, where the applet package includes a probe; a performance reference data acquisition module 420, configured to acquire performance reference data in the applet running process according to the data acquisition rule associated with the probe; a sending module 430, configured to send the performance reference data to a server.
According to the technical scheme of the embodiment, an applet package containing a probe is loaded through an applet package loading module; then, acquiring performance reference data in the small program operation process by using a performance reference data acquisition module according to the data acquisition rule associated with the probe; and finally, sending the performance reference data to a server by using a sending module. The embodiment of the invention solves the problem that the performance parameters of the small program cannot be acquired when the small program is loaded by the terminal, can effectively acquire the performance reference data in the operation process of the small program, improves the data acquisition rate in the loading process of the small program and creates conditions for the performance monitoring of the small program by the server.
On the basis of the foregoing embodiments, the performance reference data acquisition module 420 may include:
the judging unit is used for acquiring performance parameter data calibrated by the probe in the running process of the small program and judging whether the performance parameter data meets the corresponding data acquisition rule or not;
and if not, acquiring the page screenshot matched with the performance parameter data and the performance parameter data.
The applet loading module 410 may include:
and the preset service address adding module is used for adding a preset service address into a legal domain name requested by the applet before the applet package is loaded.
The device for monitoring the performance of the applet, provided by the embodiment of the invention, can execute the method for monitoring the performance of the applet, provided by the embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 5 is a structural diagram of a performance monitoring apparatus of an applet according to a fourth embodiment of the present invention, where the apparatus includes: a performance reference data receiving module 510, a performance monitoring data generating module 520, and a performance monitoring data outputting module 530.
The performance reference data receiving module 510 is configured to receive performance reference data of an applet sent by a terminal; a performance monitoring data generating module 520, configured to generate performance monitoring data according to the performance reference data; a performance monitoring data output module 530, configured to output the performance monitoring data in a graphical user interface.
The technical scheme of the embodiment comprises the steps that firstly, performance reference data of an applet sent by a terminal is received through a performance reference data receiving module; then generating performance monitoring data according to the performance reference data by using a performance monitoring data generating module; and finally, outputting the performance monitoring data in a user graphical interface by using a performance monitoring data output module. The embodiment of the invention solves the problem that the terminal cannot provide performance monitoring before the user opens each page browsing operation after entering the applet in the prior art, effectively obtains the performance monitoring data of the applet, so that an applet developer can master the health condition of the applet in time, and takes optimization measures aiming at the condition of performance deterioration.
On the basis of the foregoing embodiments, the performance monitoring data generating module 520 may include:
the performance reference data cleaning unit is used for cleaning the performance reference data and storing the cleaned performance reference data in a database;
and the performance monitoring data determining unit is used for acquiring performance reference data after cleaning treatment from the data and determining the performance monitoring data according to the performance reference data after cleaning treatment.
The performance reference data receiving module 510 may include:
and the probe embedding unit is used for embedding a probe into the small program package, and the probe is used for acquiring performance reference data in the small program operation process.
The device for monitoring the performance of the applet, provided by the embodiment of the invention, can execute the method for monitoring the performance of the applet, provided by the second embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
Fig. 6 is a schematic structural diagram of a computing apparatus according to a fifth embodiment of the present invention, as shown in fig. 6, the computing apparatus includes a processor 610, a memory 620, an input device 630, and an output device 640; the number of processors 610 in the computing device may be one or more, and one processor 610 is taken as an example in fig. 6; the processor 610, memory 620, input device 630, and output device 640 in the computing device may be connected by a bus or other means, such as by a bus in fig. 6.
The memory 620 is used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to a method for monitoring the performance of an applet in an embodiment of the present invention (for example, the applet loading module 410, the performance reference data collecting module 420, and the sending module 430 in a device for monitoring the performance of an applet). The processor 610 executes various functional applications and data processing of the computing device by executing software programs, instructions and modules stored in the memory 620, namely, implements the above-described small program performance monitoring method. That is, the program when executed by the processor implements:
loading a applet package, the applet package containing a probe;
acquiring performance reference data in the small program operation process according to the data acquisition rule associated with the probe;
sending the performance reference data to a server.
The memory 620, as a computer-readable storage medium, can also be used for program instructions/modules corresponding to the method for monitoring the performance of an applet in the second embodiment of the present invention (for example, the performance reference data receiving module 510, the performance monitoring data generating module 520, and the performance monitoring data outputting module 530 in the apparatus for monitoring the performance of an applet). The processor 610 executes various functional applications and data processing of the computing device by executing software programs, instructions and modules stored in the memory 620, namely, implements the above-described small program performance monitoring method. That is, the program when executed by the processor implements:
receiving performance reference data of the small program sent by a terminal;
generating performance monitoring data according to the performance reference data;
outputting the performance monitoring data in a graphical user interface.
The memory 620 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 620 may further include memory located remotely from the processor 610, which may be connected to a computing device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 630 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the computing device, and may include a keyboard and a mouse, etc. The output device 640 may include a display device such as a display screen.
EXAMPLE six
The sixth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method according to any embodiment of the present invention. Of course, the embodiment of the present invention provides a computer-readable storage medium, which can perform related operations in the method for monitoring the performance of an applet provided in the embodiment of the present invention. That is, the program when executed by the processor implements:
loading a applet package, the applet package containing a probe;
acquiring performance reference data in the small program operation process according to the data acquisition rule associated with the probe;
sending the performance reference data to a server.
The computer-readable storage medium provided in the second embodiment of the present invention may further perform related operations in the method for monitoring the performance of an applet provided in the second embodiment of the present invention. That is, the program when executed by the processor implements:
receiving performance reference data of the small program sent by a terminal;
generating performance monitoring data according to the performance reference data;
outputting the performance monitoring data in a graphical user interface.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the performance monitoring apparatus for an applet, each unit and each module included in the embodiment are only divided according to functional logic, but are not limited to the above division as long as the corresponding function can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for monitoring the performance of an applet is applied to a terminal and comprises the following steps:
loading a applet package, the applet package containing a probe;
acquiring performance reference data in the small program operation process according to the data acquisition rule associated with the probe;
sending the performance reference data to a server.
2. The method of claim 1, wherein collecting performance reference data during applet operation according to the probe-associated data collection rules comprises:
acquiring performance parameter data calibrated by a probe in the running process of the small program, and judging whether the performance parameter data meets a corresponding data acquisition rule or not;
if not, acquiring a page screenshot matched with the performance parameter data and the performance parameter data;
correspondingly, the sending the performance reference data to a server includes:
and sending the performance parameter data and the page screenshot matched with the performance parameter data to a server.
3. The method of claim 1, prior to loading the applet package, comprising:
adding a preset service address into the legal domain name requested by the applet;
correspondingly, the sending the performance reference data to a server includes:
and sending the performance reference data to a server according to the preset service address.
4. A method for monitoring the performance of an applet is applied to a server and comprises the following steps:
receiving performance reference data of the small program sent by a terminal;
generating performance monitoring data according to the performance reference data;
outputting the performance monitoring data in a graphical user interface.
5. The method of claim 4, wherein generating performance monitoring data from the performance reference data comprises:
cleaning the performance reference data, and storing the cleaned performance reference data in a database;
acquiring performance reference data after cleaning treatment from the data, and determining performance monitoring data according to the performance reference data after cleaning treatment;
correspondingly, the outputting the performance monitoring data in the graphical user interface includes:
and synchronously displaying the performance monitoring data in a user graphical interface.
6. The method of claim 4, wherein before receiving the capability reference data of the applet sent by the terminal, the method further comprises:
and embedding a probe into the small program package, wherein the probe is used for acquiring performance reference data in the small program operation process.
7. The performance monitoring device of the small program is applied to a terminal and comprises the following components:
the small program package loading module is used for loading a small program package, and the small program package comprises a probe;
the performance reference data acquisition module is used for acquiring performance reference data in the small program operation process according to the data acquisition rule associated with the probe;
and the sending module is used for sending the performance reference data to a server.
8. An apparatus for monitoring performance of an applet, applied to a server, includes: the performance reference data receiving module is used for receiving the performance reference data of the small program sent by the terminal;
the performance monitoring data generation module is used for generating performance monitoring data according to the performance reference data;
and the performance monitoring data output module is used for outputting the performance monitoring data in a user graphical interface.
9. A computing device, wherein the computing device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method of performance monitoring of an applet as claimed in any one of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a method of performance monitoring of an applet as claimed in any one of claims 1-6.
CN201911221439.6A 2019-12-03 2019-12-03 Method, device and equipment for monitoring performance of small program and storage medium Pending CN110955438A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911221439.6A CN110955438A (en) 2019-12-03 2019-12-03 Method, device and equipment for monitoring performance of small program and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911221439.6A CN110955438A (en) 2019-12-03 2019-12-03 Method, device and equipment for monitoring performance of small program and storage medium

Publications (1)

Publication Number Publication Date
CN110955438A true CN110955438A (en) 2020-04-03

Family

ID=69979692

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911221439.6A Pending CN110955438A (en) 2019-12-03 2019-12-03 Method, device and equipment for monitoring performance of small program and storage medium

Country Status (1)

Country Link
CN (1) CN110955438A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112084485A (en) * 2020-09-16 2020-12-15 腾讯科技(深圳)有限公司 Data acquisition method, device, equipment and computer storage medium
CN112860543A (en) * 2021-01-20 2021-05-28 维沃移动通信(深圳)有限公司 Method and electronic equipment for detecting page operation
US11831735B2 (en) 2020-06-28 2023-11-28 Baidu Online Network Technology (Beijing) Co., Ltd. Method and device for processing mini program data

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6321263B1 (en) * 1998-05-11 2001-11-20 International Business Machines Corporation Client-based application availability
CN107967209A (en) * 2017-10-09 2018-04-27 中国银联股份有限公司 It is a kind of to detect method, detection device and server wrong in the web page code of front end
CN108280022A (en) * 2018-02-08 2018-07-13 无线生活(杭州)信息科技有限公司 Performance monitoring method and device
CN108334429A (en) * 2017-01-19 2018-07-27 阿里巴巴集团控股有限公司 Method, apparatus and system for investigating front end page problem
CN108512695A (en) * 2018-03-12 2018-09-07 腾讯音乐娱乐科技(深圳)有限公司 The method and device of interim card is applied in monitoring
CN109766242A (en) * 2018-12-29 2019-05-17 云智慧(北京)科技有限公司 Monitoring method, device and system based on mobile user side and storage medium
CN110472178A (en) * 2019-08-20 2019-11-19 北京博睿宏远数据科技股份有限公司 A kind of probe method for implanting, device, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6321263B1 (en) * 1998-05-11 2001-11-20 International Business Machines Corporation Client-based application availability
CN108334429A (en) * 2017-01-19 2018-07-27 阿里巴巴集团控股有限公司 Method, apparatus and system for investigating front end page problem
CN107967209A (en) * 2017-10-09 2018-04-27 中国银联股份有限公司 It is a kind of to detect method, detection device and server wrong in the web page code of front end
CN108280022A (en) * 2018-02-08 2018-07-13 无线生活(杭州)信息科技有限公司 Performance monitoring method and device
CN108512695A (en) * 2018-03-12 2018-09-07 腾讯音乐娱乐科技(深圳)有限公司 The method and device of interim card is applied in monitoring
CN109766242A (en) * 2018-12-29 2019-05-17 云智慧(北京)科技有限公司 Monitoring method, device and system based on mobile user side and storage medium
CN110472178A (en) * 2019-08-20 2019-11-19 北京博睿宏远数据科技股份有限公司 A kind of probe method for implanting, device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李云龙 等: "《增长思维 》", 31 October 2019, 中信出版集团, pages: 107 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11831735B2 (en) 2020-06-28 2023-11-28 Baidu Online Network Technology (Beijing) Co., Ltd. Method and device for processing mini program data
CN112084485A (en) * 2020-09-16 2020-12-15 腾讯科技(深圳)有限公司 Data acquisition method, device, equipment and computer storage medium
CN112084485B (en) * 2020-09-16 2023-09-15 腾讯科技(深圳)有限公司 Data acquisition method, device, equipment and computer storage medium
CN112860543A (en) * 2021-01-20 2021-05-28 维沃移动通信(深圳)有限公司 Method and electronic equipment for detecting page operation

Similar Documents

Publication Publication Date Title
CN109885452B (en) Performance monitoring method and device and terminal equipment
CN110955438A (en) Method, device and equipment for monitoring performance of small program and storage medium
US8660833B2 (en) Method, computer program product and apparatus for providing an interactive network simulator
CN105786455B (en) Data processing method and device and terminal
CN109828859B (en) Mobile terminal memory analysis method and device, storage medium and electronic equipment
CN110795181A (en) Application program interface display method and device based on skip protocol and electronic equipment
JP5390227B2 (en) Information analysis apparatus and method, information analysis system, program, and storage medium
CN109240916B (en) Information output control method, information output control device and computer readable storage medium
US8782626B2 (en) Search suggestions for static code analysis
CN110825425A (en) Configuration data management method and device, electronic equipment and storage medium
CN110188308B (en) Client automatic dotting reporting method, storage medium, equipment and system
CN116541069A (en) Key function evaluation method, device, electronic equipment, medium and program product
CN111415200A (en) Data processing method and device
CN110852050A (en) Method and device for configuring report generation system and electronic equipment
CN115860877A (en) Product marketing method, device, equipment and medium
CN111666201A (en) Regression testing method, device, medium and electronic equipment
CN111338928A (en) Chrome-based browser testing method and device
CN111681093B (en) Method and device for displaying resource page and electronic equipment
CN114625448A (en) Flow generation method and device combining RPA and AI, electronic equipment and storage medium
CN113326237A (en) Log data processing method and device, terminal device and storage medium
CN110619541B (en) Application program management method, device, computer equipment and storage medium
CN108874625B (en) Information processing method and device, electronic equipment and storage medium
CN116205697A (en) Resource recommendation method and resource recommendation device for virtual public cloud
CN107506299B (en) Code analysis method and terminal equipment
CN111950770A (en) Method and device for managing resource return auxiliary strategy and electronic equipment

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