A network performance data collection method, device and storage medium
A technology for data acquisition and network performance, applied in data exchange networks, digital transmission systems, electrical components, etc., can solve problems such as inconsistent standards, difficult network request key node location, long process, etc., and achieve the effect of consistent definitions
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0064] figure 1 The flow chart of the network performance data collection method provided by the technical solution of the first embodiment of the present invention, the APP in the first embodiment is described by taking the preset application software running on the android system as an example, and the APP can also run on the IOS system , windows system or any other operating system used by the terminal. In the present invention, the default application is embedded with an H5 page.
[0065] In the prior art, network performance data generally includes bandwidth (throughput), number of lost packets, time consumption, and the like. In this embodiment and the following embodiments, the network performance data refers to the time consumption of the network request process. Time consumption describes the time it takes for a data packet to be received from sending to receiving. The unit is usually milliseconds (ms), which reflects the speed of the network, so generally the small...
Embodiment 2
[0087] figure 2 Shown is a flow chart of the method for collecting network performance data provided by Embodiment 2 of the present invention. In this embodiment, on the basis of the above-mentioned embodiments, the step of "monitoring the first time-consuming data of execution of multiple first-stage tasks" is optimized.
[0088] Specifically, such as figure 2 As shown, the second step of the present embodiment is as follows:
[0089] Step S210, decomposing the first network request initiated by the APP based on the preset application into multiple first-stage tasks according to preset key nodes.
[0090] Step S220, configure an interceptor on the APP side, and initiate a first network request to the server.
[0091] In the steps, interceptors are used to intercept user requests and add processing logic before and after the requests. The APP side adds corresponding tags to the request header of each request data interface, and configures the interceptor according to the...
Embodiment 3
[0109] Such as image 3 The flow chart of the method for collecting network performance data provided by Embodiment 3 of the present invention, this embodiment is based on the above-mentioned Embodiments 1 and 2, and the step "monitoring the second time-consuming data of multiple second-stage tasks being executed" It is implemented by calling the js script during the loading process of the H5 page. Specifically, the steps are as follows:
[0110] Step S310, decomposing the first network request initiated by the APP based on the preset application into multiple first-stage tasks according to the preset key nodes, so as to monitor the first time-consuming data of the execution of the multiple first-stage tasks.
[0111] Step S320, decomposing the second network request initiated by the H5 page based on the preset application into multiple second-stage tasks according to the preset key nodes.
[0112] Step S330, calling the js script of the second stage task during the loading p...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


