Data stream analysis method, apparatus and device, and medium

A data flow analysis and data technology, applied in the field of data processing, can solve problems such as inefficiency and time-consuming

Active Publication Date: 2018-01-23
BEIJING INTERNETWARE LTD
View PDF3 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, it is also very inefficient and time-consuming to use the traditional method of inserting breakpoints, monitoring variables, etc. to track and view the flow of data for debugging.

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
  • Data stream analysis method, apparatus and device, and medium
  • Data stream analysis method, apparatus and device, and medium
  • Data stream analysis method, apparatus and device, and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0052] figure 1 It is a flow chart of a data stream analysis method provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation of analyzing data in the process of implementing code logic by means of a browser. The method is applied to the browser end, and can be executed by a data stream analysis device, which can be implemented by software and / or hardware. see figure 1 , a data flow analysis method provided in this embodiment includes:

[0053] S110. Obtain the JavaScript code in the resource file corresponding to the web application to be analyzed.

[0054] Specifically, the process of obtaining the JavaScript code in the resource file corresponding to the web application to be analyzed may include:

[0055]Obtaining the Uniform Resource Identifier of the web application to be analyzed determined by the user;

[0056] Sending a request to a server corresponding to the above web application according to the above uniform resource id...

Embodiment 2

[0075] figure 2 It is a flow chart of a data flow analysis method provided by the second embodiment of the present invention. This embodiment is an optional solution proposed on the basis of the first embodiment above. see figure 2 , the data flow analysis method provided in this embodiment includes:

[0076] S210. Obtain the resource file returned by the server corresponding to the web application to be analyzed.

[0077] S220. Determine the type of the resource file, and if the resource file is a JavaScript file, acquire the code therein.

[0078] S230. If the resource file is an HTML file, determine the embedded JavaScript code according to the set identifier.

[0079] S240. Determine whether the resource file corresponding to the JavaScript code is a preset ignored resource file, and if not, determine the code logic of the JavaScript code, and insert a probe into the JavaScript code according to the code logic.

[0080] S250. Execute the resource file inserted into ...

Embodiment 3

[0103] Figure 5 It is a schematic structural diagram of a data flow analysis device provided in Embodiment 3 of the present invention. see Figure 5 , The data flow analysis device provided in this embodiment includes: a code acquisition module 10 , a logic judgment module 20 , a data acquisition module 30 and a data analysis module 40 . Wherein, the code obtaining module 10 is used to obtain the JavaScript code in the resource file corresponding to the web application to be analyzed;

[0104] A logic judging module 20, configured to judge the code logic of the JavaScript code, and insert a probe into the JavaScript code according to the code logic, wherein the probe is a piece of code;

[0105] The data acquisition module 30 is used to run the resource file inserted into the probe, acquire the data in the process of implementing the code logic of the web application by means of the browser according to the probe, and record it;

[0106] The data analysis module 40 is conf...

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 data stream analysis method, apparatus and device, and a medium, and relates to the data processing technology. The method comprises: obtaining a JavaScript code in aresource file corresponding to a to-be-analyzed web application; determining code logic of the JavaScript code, and inserting a probe into the JavaScript code according to the code logic, wherein theprobe is a segment of code; running the resource file inserted by a probe, according to the probe, obtaining data in the code logic process implemented by the web application by using the browser, and recording the data; and analyzing the web application according to the recorded data. According to the data stream analysis method, apparatus and device, and the medium provided by embodiments of the present invention, data obtaining and analysis in the code logic process implemented by the web application by using the browser are realized.

Description

technical field [0001] Embodiments of the present invention relate to data processing technologies, and in particular, to a data stream analysis method, device, equipment, and medium. Background technique [0002] Nowadays, large-scale and complex front-end web applications are very popular. However, for these complex web applications, part of the business logic and data processing logic that implements application functions is implemented by running a browser, so it cannot be directly extracted from the web document returned by the server. All data during the execution of the web application. For example, the view of a web application is rendered by the JavaScript engine in the browser by translating and running the corresponding JavaScript code, and the rendered data cannot be directly extracted from the webpage document returned by the server. [0003] The existing data flow analysis schemes are mainly divided into the following two types, and at the same time, the inven...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F8/74G06F11/36G06F16/972G06F9/3005G06F11/3466G06F11/3612G06F11/3692G06F9/4484G06F16/9577G06F16/958
Inventor 张颖朱晓旻苏星黄罡姚伟
Owner BEIJING INTERNETWARE LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products