CN110472178A - A kind of probe method for implanting, device, computer equipment and storage medium - Google Patents
A kind of probe method for implanting, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN110472178A CN110472178A CN201910767879.5A CN201910767879A CN110472178A CN 110472178 A CN110472178 A CN 110472178A CN 201910767879 A CN201910767879 A CN 201910767879A CN 110472178 A CN110472178 A CN 110472178A
- Authority
- CN
- China
- Prior art keywords
- probe
- page
- processed
- data
- browser
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明实施例公开了一种探针注入方法、装置、计算机设备及存储介质,该方法包括:获取待处理页面原始数据;通过服务端探针对所述待处理页面原始数据进行浏览器探针注入处理,得到处理后的目标页面数据;其中,所述目标页面数据包括浏览器探针文件引用;返回所述目标页面数据。本发明实施例的技术方案能够实现探针的自动注入,从而降低探针引入的时间成本,并提高探针使用效率。
The embodiment of the present invention discloses a probe injection method, device, computer equipment and storage medium. The method includes: obtaining the original data of the page to be processed; Injecting processing to obtain processed target page data; wherein, the target page data includes a browser probe file reference; and returns the target page data. The technical solution of the embodiment of the present invention can realize the automatic injection of the probe, thereby reducing the time cost of introducing the probe and improving the use efficiency of the probe.
Description
技术领域technical field
本发明实施例涉及互联网数据处理技术领域,尤其涉及一种探针注入方法、装置、计算机设备及存储介质。The embodiments of the present invention relate to the technical field of Internet data processing, and in particular to a probe injection method, device, computer equipment and storage medium.
背景技术Background technique
JS(JavaScript)探针是一种在前端页面引入的一段JS代码。通过在网站页面中嵌入JS探针,能够获取基于真实浏览器用户全样本访问数据,从而进行实时监控,帮助网站开发及运营人员快速定位影响用户体验问题的根源,以高效率地进行网站优化。JS (JavaScript) probe is a piece of JS code introduced in the front-end page. By embedding JS probes in website pages, access data based on the full sample of real browser users can be obtained for real-time monitoring, helping website developers and operators to quickly locate the root causes of problems affecting user experience, and to optimize websites efficiently.
目前JS探针的使用方式为在各个不同的网站页面采用不同的方式手动引入JS探针代码文件。Currently, JS probes are used by manually introducing JS probe code files in different ways on different website pages.
发明人在实现本发明的过程中,发现现有技术存在如下缺陷:现有的通过手动方式在网站页面中引入JS探针不仅需要较高的时间成本,而且在项目繁多的情况下极易出现遗漏。In the process of implementing the present invention, the inventor found that the existing technology has the following defects: the existing manual introduction of JS probes into website pages not only requires a relatively high time cost, but also easily occurs when there are many projects. omission.
发明内容Contents of the invention
本发明实施例提供一种探针注入方法、装置、计算机设备及存储介质,实现探针的自动注入,从而降低探针引入的时间成本,并提高探针使用效率。Embodiments of the present invention provide a probe injection method, device, computer equipment, and storage medium to realize automatic injection of probes, thereby reducing the time cost of probe introduction and improving the use efficiency of probes.
第一方面,本发明实施例提供了一种探针注入方法,包括:In a first aspect, an embodiment of the present invention provides a probe injection method, including:
获取待处理页面原始数据;Obtain the raw data of the page to be processed;
通过服务端探针对所述待处理页面原始数据进行浏览器探针注入处理,得到处理后的目标页面数据;其中,所述目标页面数据包括浏览器探针文件引用;Performing browser probe injection processing on the original data of the page to be processed through the server probe to obtain processed target page data; wherein, the target page data includes browser probe file references;
返回所述目标页面数据。Returns the target page data.
第二方面,本发明实施例还提供了一种探针注入装置,包括:In the second aspect, the embodiment of the present invention also provides a probe injection device, including:
数据获取模块,用于获取待处理页面原始数据;The data acquisition module is used to acquire the raw data of the page to be processed;
数据处理模块,用于通过服务端探针对所述待处理页面原始数据进行浏览器探针注入处理,得到处理后的目标页面数据;其中,所述目标页面数据包括浏览器探针文件引用;The data processing module is used to perform browser probe injection processing on the original data of the page to be processed through the server probe to obtain processed target page data; wherein, the target page data includes browser probe file references;
数据返回模块,用于返回所述目标页面数据。The data return module is used to return the target page data.
第三方面,本发明实施例还提供了一种计算机设备,所述计算机设备包括:In a third aspect, an embodiment of the present invention also provides a computer device, the computer device comprising:
一个或多个处理器;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 are made to implement the probe injection method provided by any embodiment of the present invention.
第四方面,本发明实施例还提供了一种计算机存储介质,其上存储有计算机程序,该程序被处理器执行时实现本发明任意实施例所提供的探针注入方法。In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, and when the program is executed by a processor, the probe injection method provided in any embodiment of the present invention is implemented.
本发明实施例通过服务端探针对获取待处理页面原始数据进行浏览器探针注入处理,从而得到处理后的目标页面数据,解决现有浏览器探针需要手动注入的问题,实现探针的自动注入,从而降低探针引入的时间成本,并提高探针使用效率。The embodiment of the present invention performs browser probe injection processing on the original data of the page to be processed through the server probe, thereby obtaining the processed target page data, solving the problem that the existing browser probe needs manual injection, and realizing the probe Automatic injection, thereby reducing the time cost of probe introduction and improving the efficiency of probe use.
附图说明Description of drawings
图1是本发明实施例一提供的一种探针注入方法的流程图;FIG. 1 is a flow chart of a probe injection method provided by Embodiment 1 of the present invention;
图2是本发明实施例二提供的一种探针注入装置的示意图;Fig. 2 is a schematic diagram of a probe injection device provided by Embodiment 2 of the present invention;
图3为本发明实施例三提供的一种计算机设备的结构示意图。FIG. 3 is a schematic structural diagram of a computer device provided by Embodiment 3 of the present invention.
具体实施方式Detailed ways
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention.
另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部内容。在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作(或步骤)描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。In addition, it should be noted that, for the convenience of description, only parts related to the present invention are shown in the drawings but not all content. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe various operations (or steps) as sequential processing, many of the operations may be performed in parallel, concurrently, or simultaneously. In addition, the order of operations can be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.
实施例一Embodiment one
图1是本发明实施例一提供的一种探针注入方法的流程图,本实施例可适用于自动注入浏览器探针的情况,该方法可以由探针注入装置来执行,该装置可以由软件和/或硬件的方式来实现,并一般可集成在服务器中。相应的,如图1所示,该方法包括如下操作:Fig. 1 is a flow chart of a probe injection method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of automatically injecting browser probes. This method can be executed by a probe injection device, which can be composed of It can be realized by means of software and/or hardware, and can generally be integrated in a server. Correspondingly, as shown in Figure 1, the method includes the following operations:
S110、获取待处理页面原始数据。S110. Obtain the original data of the page to be processed.
其中,待处理页面原始数据可以是尚未进行浏览器探针注入处理的页面数据。Wherein, the original data of the page to be processed may be the page data that has not been processed by browser probe injection.
可以理解的是,前端动态页面如JSP(Java Server Pages,java服务器页面),以及基于模板和动态改变数据的模板引擎如freemarker(模板引擎)等,这类前端页面技术都需要经过服务端的处理才能最终生成页面数据。不同容器和不同框架的动态页处理技术,本质上都是页面数据经过处理类最终生成页面展示数据。因此,在对网站页面注入浏览器探针时,首先需要获取需要注入探针的待处理页面原始数据。It is understandable that front-end dynamic pages such as JSP (Java Server Pages, java server pages), and template engines based on templates and dynamically changing data such as freemarker (template engine), etc., such front-end page technologies need to be processed by the server to Finally generate page data. The dynamic page processing technologies of different containers and different frameworks essentially generate page display data after the page data is processed. Therefore, when injecting a browser probe into a website page, it is first necessary to obtain the raw data of the page to be processed that needs to be injected into the probe.
在本发明的一个可选实施例中,所述获取待处理页面原始数据,可以包括:通过服务端探针对所述待处理页面原始数据进行拦截处理。In an optional embodiment of the present invention, the acquiring the original data of the page to be processed may include: intercepting the original data of the page to be processed through a server probe.
示例性的,服务端探针可以采用Java Agent Asm技术实现。Exemplarily, the server-side probe can be implemented using Java Agent Asm technology.
在通过服务端探针对待处理页面原始数据进行浏览器探针注入处理之前,可以通过服务端探针对待处理页面原始数据进行拦截处理。Before performing browser probe injection on the original data of the page to be processed through the server probe, the original data of the page to be processed can be intercepted and processed through the server probe.
在本发明的一个可选实施例中,所述对所述待处理页面原始数据进行拦截处理,可以包括:对所述待处理页面原始数据中的页面处理类的字节码进行插码处理。In an optional embodiment of the present invention, the intercepting processing of the original data of the page to be processed may include: performing code insertion processing on the bytecode of the page processing class in the original data of the page to be processed.
具体的,当服务器获取到待处理页面原始数据时,可以对待处理页面原始数据中的页面处理类的字节码进行插码以添加类的功能,修改类的字节码后添加的功能即可以实现拦截待处理页面原始数据。Specifically, when the server obtains the original data of the page to be processed, the bytecode of the page processing class in the original data of the page to be processed can be inserted to add the function of the class, and the added function after modifying the bytecode of the class can be Realize the interception of the raw data of the page to be processed.
S120、通过服务端探针对所述待处理页面原始数据进行浏览器探针注入处理,得到处理后的目标页面数据;其中,所述目标页面数据包括浏览器探针文件引用。S120. Perform browser probe injection processing on the original data of the page to be processed through the server probe to obtain processed target page data; wherein, the target page data includes a browser probe file reference.
其中,目标页面数据包括浏览器探针文件引用,可以实现浏览器探针自动注入。Wherein, the target page data includes browser probe file references, which can realize automatic injection of browser probes.
相应的,在服务器获取到待处理页面原始数据后,可以通过服务端探针对待处理页面原始数据进行浏览器探针注入处理,从而得到包括浏览器探针文件引用的目标页面数据。其中,浏览器探针即为JS探针。Correspondingly, after the server obtains the original data of the page to be processed, browser probe injection may be performed on the original data of the page to be processed through the server-side probe, so as to obtain the target page data including the browser probe file reference. Wherein, the browser probe is the JS probe.
在本发明的一个可选实施例中,所述通过服务端探针对所述待处理页面原始数据进行浏览器探针注入处理,可以包括:通过所述服务端探针对所述待处理页面原始数据中的设定位置内插入浏览器探针文件的引用。In an optional embodiment of the present invention, the browser probe injection processing of the original data of the page to be processed through the server probe may include: using the server probe to inject the raw data of the page to be processed Inserts a reference to the browser probe file at the set position in the raw data.
其中,设定位置可以是能够添加浏览器探针文件引用的位置。Wherein, the set location may be a location where a browser probe file reference can be added.
需要说明的是,实现浏览器探针自动注入的方式即为在输出的页面数据中在指定位置插入JS探针代码文件的引用。因此,服务器在获取到待处理页面原始数据后,可以在待处理页面原始数据中的设定位置内插入浏览器探针文件的引用。It should be noted that the way to implement automatic browser probe injection is to insert a reference to a JS probe code file at a specified position in the output page data. Therefore, after the server obtains the original data of the page to be processed, it can insert the reference of the browser probe file into the set position in the original data of the page to be processed.
在本发明的一个可选实施例中,所述设定位置可以包括头部标签;所述通过所述服务端探针对所述待处理页面原始数据中的设定位置内插入浏览器探针文件的引用,可以包括:通过所述服务端探针对所述待处理页面原始数据中的头部标签内插入浏览器探针文件引用的功能代码。In an optional embodiment of the present invention, the set position may include a header tag; the browser probe is inserted into the set position in the original data of the page to be processed through the server probe The file reference may include: inserting the browser probe file reference function code into the header tag in the original data of the page to be processed through the server probe.
可选的,设定位置可以包括头部标签,相应的,可以通过服务端探针对待处理页面原始数据中的头部标签内插入浏览器探针文件引用的功能代码。具体的,在获取的待处理页面原始数据中找到html(HyperText Markup Language,超文本标记语言)的head(头部)标签,并在head标签内插入JS探针文件引用的代码,即插入<script src="agent_path"></script>。Optionally, the setting position may include a header tag, and correspondingly, the function code referenced by the browser probe file may be inserted into the header tag in the raw data of the page to be processed through the server-side probe. Specifically, find the head (head) tag of html (HyperText Markup Language, Hypertext Markup Language) in the raw data of the page to be processed, and insert the code referenced by the JS probe file in the head tag, that is, insert <script src="agent_path"></script>.
S130、返回所述目标页面数据。S130. Return the target page data.
相应的,在通过服务端探针对待处理页面原始数据进行浏览器探针注入处理得到目标页面数据后,服务器即可返回目标页面数据。由此浏览器在每个输出的页面中,都已引入JS探针代码文件。由此可见,本发明实施例所提供的探针注入方法能够实现浏览器探针的自动注入,从而大幅缩减探针引入的时间成本。即使在项目繁多的情况下,服务器也可通过服务器探针技术依次完成浏览器探针的自动注入,不会出现探针注入遗漏的情况,因此能够有效提高探针的使用效率。Correspondingly, after the browser probe injects the original data of the page to be processed through the server probe to obtain the target page data, the server can return the target page data. Therefore, the browser has introduced the JS probe code file in each output page. It can be seen that the probe injection method provided by the embodiment of the present invention can realize the automatic injection of browser probes, thereby greatly reducing the time cost of probe introduction. Even in the case of a large number of projects, the server can complete the automatic injection of browser probes sequentially through the server probe technology, and there will be no missed probe injection, so the use efficiency of probes can be effectively improved.
本发明实施例通过服务端探针对获取待处理页面原始数据进行浏览器探针注入处理,从而得到处理后的目标页面数据,解决现有浏览器探针需要手动注入的问题,实现探针的自动注入,从而降低探针引入的时间成本,并提高探针使用效率。The embodiment of the present invention performs browser probe injection processing on the original data of the page to be processed through the server probe, thereby obtaining the processed target page data, solving the problem that the existing browser probe needs manual injection, and realizing the probe Automatic injection, thereby reducing the time cost of probe introduction and improving the efficiency of probe use.
实施例二Embodiment two
图2是本发明实施例二提供的一种探针注入装置的示意图,如图2所示,所述装置包括:数据获取模块210、数据处理模块220以及数据返回模块230,其中:FIG. 2 is a schematic diagram of a probe injection device provided in Embodiment 2 of the present invention. As shown in FIG. 2 , the device includes: a data acquisition module 210, a data processing module 220, and a data return module 230, wherein:
数据获取模块210,用于获取待处理页面原始数据;A data acquisition module 210, configured to acquire the original data of the page to be processed;
数据处理模块220,用于通过服务端探针对所述待处理页面原始数据进行浏览器探针注入处理,得到处理后的目标页面数据;其中,所述目标页面数据包括浏览器探针文件引用;The data processing module 220 is configured to perform browser probe injection processing on the original data of the page to be processed through the server probe to obtain processed target page data; wherein, the target page data includes browser probe file references ;
数据返回模块230,用于返回所述目标页面数据。The data returning module 230 is configured to return the target page data.
本发明实施例通过服务端探针对获取待处理页面原始数据进行浏览器探针注入处理,从而得到处理后的目标页面数据,解决现有浏览器探针需要手动注入的问题,实现探针的自动注入,从而降低探针引入的时间成本,并提高探针使用效率。The embodiment of the present invention performs browser probe injection processing on the original data of the page to be processed through the server probe, thereby obtaining the processed target page data, solving the problem that the existing browser probe needs manual injection, and realizing the probe Automatic injection, thereby reducing the time cost of probe introduction and improving the efficiency of probe usage.
可选的,数据获取模块210,用于通过所述服务端探针对所述待处理页面原始数据进行拦截处理。Optionally, the data acquisition module 210 is configured to intercept the original data of the page to be processed through the server probe.
可选的,数据获取模块210,用于对所述待处理页面原始数据中的页面处理类的字节码进行插码处理。Optionally, the data acquisition module 210 is configured to insert the bytecode of the page processing class in the original data of the page to be processed.
可选的,数据处理模块220,用于通过所述服务端探针对所述待处理页面原始数据中的设定位置内插入浏览器探针文件的引用。Optionally, the data processing module 220 is configured to use the server-side probe to insert a reference to a browser probe file at a set position in the original data of the page to be processed.
可选的,所述设定位置包括头部标签;数据处理模块220,用于通过所述服务端探针对所述待处理页面原始数据中的头部标签内插入浏览器探针文件引用的功能代码。Optionally, the set position includes a header tag; the data processing module 220 is configured to use the server probe to insert browser probe file references into the header tag in the original data of the page to be processed. function code.
上述探针注入装置可执行本发明任意实施例所提供的探针注入方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本发明任意实施例提供的探针注入方法。The above-mentioned probe injection device can execute the probe injection method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method. For technical details not exhaustively described in this embodiment, refer to the probe injection method provided in any embodiment of the present invention.
由于上述所介绍的探针注入装置为可以执行本发明实施例中的探针注入方法的装置,故而基于本发明实施例中所介绍的探针注入方法,本领域所属技术人员能够了解本实施例的探针注入装置的具体实施方式以及其各种变化形式,所以在此对于该探针注入装置如何实现本发明实施例中的探针注入方法不再详细介绍。只要本领域所属技术人员实施本发明实施例中探针注入方法所采用的装置,都属于本申请所欲保护的范围。Since the probe injection device described above is a device that can perform the probe injection method in the embodiment of the present invention, based on the probe injection method described in the embodiment of the present invention, those skilled in the art can understand this embodiment The specific implementation of the probe injection device and its various variations, so how the probe injection device implements the probe injection method in the embodiment of the present invention will not be described in detail here. As long as a person skilled in the art implements the device used by the probe injection method in the embodiment of the present invention, it all falls within the scope of protection intended by the present application.
实施例三Embodiment Three
图3为本发明实施例三提供的一种计算机设备的结构示意图。图3示出了适于用来实现本发明实施方式的计算机设备312的框图。图3显示的计算机设备312仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。计算机设备312典型的是承担服务器功能的计算设备。FIG. 3 is a schematic structural diagram of a computer device provided by Embodiment 3 of the present invention. Figure 3 shows a block diagram of a computer device 312 suitable for use in implementing embodiments of the invention. The computer device 312 shown in FIG. 3 is only an example, and should not limit the functions and scope of use of this embodiment of the present invention. Computer device 312 is typically a computing device that performs server functions.
如图3所示,计算机设备312以通用计算设备的形式表现。计算机设备312的组件可以包括但不限于:一个或者多个处理器316,存储装置328,连接不同系统组件(包括存储装置328和处理器316)的总线318。As shown in FIG. 3, computer device 312 takes the form of a general-purpose computing device. Components of computer device 312 may include, but are not limited to: one or more processors 316, storage 328, bus 318 connecting various system components including storage 328 and processor 316.
总线318表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(Industry StandardArchitecture,ISA)总线,微通道体系结构(Micro Channel Architecture,MCA)总线,增强型ISA总线、视频电子标准协会(Video Electronics Standards Association,VESA)局域总线以及外围组件互连(Peripheral Component Interconnect,PCI)总线。Bus 318 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (Industry Standard Architecture, ISA) bus, Micro Channel Architecture (Micro Channel Architecture, MCA) bus, Enhanced ISA bus, Video Electronics Standards Association (Video Electronics Standards Association , VESA) local bus and peripheral component interconnect (Peripheral Component Interconnect, PCI) bus.
计算机设备312典型地包括多种计算机系统可读介质。这些介质可以是任何能够被计算机设备312访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。Computer device 312 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computing device 312 and include both volatile and nonvolatile media, removable and non-removable media.
存储装置328可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(Random Access Memory,RAM)330和/或高速缓存存储器332。计算机设备312可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统334可以用于读写不可移动的、非易失性磁介质(图3未显示,通常称为“硬盘驱动器”)。尽管图3中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如只读光盘(Compact Disc-Read Only Memory,CD-ROM)、数字视盘(Digital Video Disc-Read Only Memory,DVD-ROM)或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线318相连。存储装置328可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本发明各实施例的功能。The storage device 328 may include computer system readable media in the form of volatile memory, such as random access memory (Random Access Memory, RAM) 330 and/or cache memory 332 . Computer device 312 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 334 may be used to read and write to non-removable, non-volatile magnetic media (not shown in FIG. 3, commonly referred to as a "hard drive"). Although not shown in FIG. 3, a disk drive for reading and writing to a removable non-volatile disk (such as a "floppy disk") may be provided, as well as a removable non-volatile disk (such as a Compact Disc- Read Only Memory, CD-ROM), Digital Video Disc (Digital Video Disc-Read Only Memory, DVD-ROM) or other optical media) CD-ROM drive. In these cases, each drive may be connected to bus 318 through one or more data media interfaces. Storage device 328 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of various embodiments of the present invention.
具有一组(至少一个)程序模块326的程序336,可以存储在例如存储装置328中,这样的程序模块326包括但不限于操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块326通常执行本发明所描述的实施例中的功能和/或方法。A program 336 having a set (at least one) of program modules 326 may be stored, for example, in storage device 328, such program modules 326 including but not limited to an operating system, one or more application programs, other program modules, and program data, which Each or some combination of the examples may include the implementation of a network environment. Program modules 326 generally perform the functions and/or methodologies of the described embodiments of the invention.
计算机设备312也可以与一个或多个外部设备314(例如键盘、指向设备、摄像头、显示器324等)通信,还可与一个或者多个使得用户能与该计算机设备312交互的设备通信,和/或与使得该计算机设备312能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(Input/Output,I/O)接口322进行。并且,计算机设备312还可以通过网络适配器320与一个或者多个网络(例如局域网(Local Area Network,LAN),广域网Wide Area Network,WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器320通过总线318与计算机设备312的其它模块通信。应当明白,尽管图中未示出,可以结合计算机设备312使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、磁盘阵列(Redundant Arraysof Independent Disks,RAID)系统、磁带驱动器以及数据备份存储系统等。The computer device 312 may also communicate with one or more external devices 314 (e.g., a keyboard, pointing device, camera, display 324, etc.), and with one or more devices that enable a user to interact with the computer device 312, and/or Or communicate with any device (eg, network card, modem, etc.) that enables the computing device 312 to communicate with one or more other computing devices. Such communication may be through an input/output (Input/Output, I/O) interface 322 . Moreover, the computer device 312 can also communicate with one or more networks (such as a local area network (Local Area Network, LAN), wide area network, Wide Area Network, WAN) and/or public networks, such as the Internet) through the network adapter 320 . As shown, network adapter 320 communicates with other modules of computer device 312 via bus 318 . It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with computer device 312, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, disk arrays (Redundant Arrays of Independent Disks, RAID) systems, tape drives, and data backup storage systems.
处理器316通过运行存储在存储装置328中的程序,从而执行各种功能应用以及数据处理,例如实现本发明上述实施例所提供的探针注入方法。The processor 316 executes various functional applications and data processing by running the programs stored in the storage device 328 , such as realizing the probe injection method provided by the above-mentioned embodiments of the present invention.
也即,所述处理单元执行所述程序时实现:获取待处理页面原始数据;通过服务端探针对所述待处理页面原始数据进行浏览器探针注入处理,得到处理后的目标页面数据;其中,所述目标页面数据包括浏览器探针文件引用;返回所述目标页面数据。That is, when the processing unit executes the program, it realizes: obtaining the original data of the page to be processed; performing browser probe injection processing on the original data of the page to be processed through the server probe to obtain the processed target page data; Wherein, the target page data includes a browser probe file reference; and the target page data is returned.
实施例四Embodiment Four
本发明实施例四还提供一种存储计算机程序的计算机存储介质,所述计算机程序在由计算机处理器执行时用于执行本发明上述实施例任一所述的探针注入方法:获取待处理页面原始数据;通过服务端探针对所述待处理页面原始数据进行浏览器探针注入处理,得到处理后的目标页面数据;其中,所述目标页面数据包括浏览器探针文件引用;返回所述目标页面数据。Embodiment 4 of the present invention also provides a computer storage medium storing a computer program, the computer program is used to execute the probe injection method described in any one of the above-mentioned embodiments of the present invention when executed by a computer processor: obtaining a page to be processed Raw data; perform browser probe injection processing on the raw data of the page to be processed through the server probe to obtain processed target page data; wherein, the target page data includes browser probe file references; return the Target page data.
本发明实施例的计算机存储介质,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(Read Only Memory,ROM)、可擦式可编程只读存储器((Erasable Programmable ReadOnly Memory,EPROM)或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer storage medium in the embodiments of the present invention may use any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media include: electrical connections with one or more conductors, portable computer disks, hard disks, Random Access Memory (RAM), Read Only Memory (Read Only Memory) , ROM), erasable programmable read-only memory ((Erasable Programmable ReadOnly Memory, EPROM) or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or the above any suitable combination. In this document, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a data signal carrying computer readable program code in baseband or as part of a carrier wave. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于无线、电线、光缆、射频(Radio Frequency,RF)等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium may be transmitted by any appropriate medium, including but not limited to wireless, wire, optical cable, radio frequency (Radio Frequency, RF), etc., or any suitable combination of the above.
可以以一种或多种程序设计语言或其组合来编写用于执行本发明操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言——诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out the operations of the present invention may be written in one or more programming languages, or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, and conventional Procedural programming language - such as "C" or a similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910767879.5A CN110472178A (en) | 2019-08-20 | 2019-08-20 | A kind of probe method for implanting, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910767879.5A CN110472178A (en) | 2019-08-20 | 2019-08-20 | A kind of probe method for implanting, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110472178A true CN110472178A (en) | 2019-11-19 |
Family
ID=68511971
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910767879.5A Pending CN110472178A (en) | 2019-08-20 | 2019-08-20 | A kind of probe method for implanting, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110472178A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110888731A (en) * | 2019-12-09 | 2020-03-17 | 北京博睿宏远数据科技股份有限公司 | Route data acquisition method, device, equipment and storage medium |
CN110955438A (en) * | 2019-12-03 | 2020-04-03 | 北京博睿宏远数据科技股份有限公司 | Method, device and equipment for monitoring performance of small program and storage medium |
CN111913862A (en) * | 2020-08-05 | 2020-11-10 | 北京控制与电子技术研究所 | User behavior safety monitoring method oriented to application system |
CN112860543A (en) * | 2021-01-20 | 2021-05-28 | 维沃移动通信(深圳)有限公司 | Method and electronic equipment for detecting page operation |
CN113688022A (en) * | 2021-08-23 | 2021-11-23 | 中国南方电网有限责任公司 | Browser performance monitoring method, device, device and medium |
CN115037526A (en) * | 2022-05-19 | 2022-09-09 | 咪咕文化科技有限公司 | Anti-crawling method, apparatus, device and computer storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110131553A1 (en) * | 2009-11-30 | 2011-06-02 | International Business Machines Corporation | Associating probes with test cases |
US20140280756A1 (en) * | 2013-03-15 | 2014-09-18 | American Megatrends, Inc. | System and method of web-based virtual media redirection |
CN107622015A (en) * | 2017-09-25 | 2018-01-23 | 北京因特睿软件有限公司 | A data flow analysis method, device, equipment and medium |
CN108600035A (en) * | 2018-07-21 | 2018-09-28 | 杭州安恒信息技术股份有限公司 | A kind of non-intrusion type web application monitoring and log inquiring method |
CN109739725A (en) * | 2018-12-29 | 2019-05-10 | 云智慧(北京)科技有限公司 | Monitoring method, device and system based on browser and storage medium |
-
2019
- 2019-08-20 CN CN201910767879.5A patent/CN110472178A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110131553A1 (en) * | 2009-11-30 | 2011-06-02 | International Business Machines Corporation | Associating probes with test cases |
US20140280756A1 (en) * | 2013-03-15 | 2014-09-18 | American Megatrends, Inc. | System and method of web-based virtual media redirection |
CN107622015A (en) * | 2017-09-25 | 2018-01-23 | 北京因特睿软件有限公司 | A data flow analysis method, device, equipment and medium |
CN108600035A (en) * | 2018-07-21 | 2018-09-28 | 杭州安恒信息技术股份有限公司 | A kind of non-intrusion type web application monitoring and log inquiring method |
CN109739725A (en) * | 2018-12-29 | 2019-05-10 | 云智慧(北京)科技有限公司 | Monitoring method, device and system based on browser and storage medium |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110955438A (en) * | 2019-12-03 | 2020-04-03 | 北京博睿宏远数据科技股份有限公司 | Method, device and equipment for monitoring performance of small program and storage medium |
CN110888731A (en) * | 2019-12-09 | 2020-03-17 | 北京博睿宏远数据科技股份有限公司 | Route data acquisition method, device, equipment and storage medium |
CN111913862A (en) * | 2020-08-05 | 2020-11-10 | 北京控制与电子技术研究所 | User behavior safety monitoring method oriented to application system |
CN112860543A (en) * | 2021-01-20 | 2021-05-28 | 维沃移动通信(深圳)有限公司 | Method and electronic equipment for detecting page operation |
CN113688022A (en) * | 2021-08-23 | 2021-11-23 | 中国南方电网有限责任公司 | Browser performance monitoring method, device, device and medium |
CN115037526A (en) * | 2022-05-19 | 2022-09-09 | 咪咕文化科技有限公司 | Anti-crawling method, apparatus, device and computer storage medium |
CN115037526B (en) * | 2022-05-19 | 2024-04-19 | 咪咕文化科技有限公司 | Anti-crawler method, device, equipment and computer storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110472178A (en) | A kind of probe method for implanting, device, computer equipment and storage medium | |
CN109873735B (en) | Performance test method and device for H5 page and computer equipment | |
CN113900958B (en) | Test case script generation method, system, medium and electronic device | |
US9021367B2 (en) | Metadata capture for screen sharing | |
US8924943B2 (en) | Browser emulator system | |
US8346870B2 (en) | Low-privilege debug channel | |
CN109992498B (en) | Test case generation method and system and computer system | |
US9268668B1 (en) | System for testing markup language applications | |
US20150309916A1 (en) | Remote debugging into mobile web applications across devices | |
CN111367814A (en) | Embedded point testing method and device, terminal equipment and storage medium | |
CN112799940B (en) | Regression testing method, regression testing device, computer system and computer readable storage medium | |
CN110597704B (en) | Pressure test method, device, server and medium for application program | |
CN109656799B (en) | Test method and device | |
CN110968305A (en) | Small program visualization generation method, device, device and storage medium | |
US7860927B2 (en) | Inspecting web browser state information from a synchronously-invoked service | |
CN113778897B (en) | Automatic test method, device and equipment for interface and storage medium | |
US9648078B2 (en) | Identifying a browser for rendering an electronic document | |
CN111666199B (en) | Debugging method executed on intelligent terminal and software debugger | |
CN106372844B (en) | Schedule creating method and device | |
CN112131092A (en) | Page debugging method and device | |
CN114780126A (en) | Code updating method, device, equipment and medium for vehicle-mounted controller software | |
CN110855675B (en) | Mail safety consciousness testing method, device, equipment and storage medium | |
CN113656326A (en) | Program testing method, program testing device, computer system and storage medium | |
US8752026B2 (en) | Efficient code instrumentation | |
CN109101473B (en) | Method and apparatus for processing two-dimensional data tables |
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: 20191119 |