CN110781063A - Method, device and equipment for measuring first screen time of webpage and storage medium - Google Patents

Method, device and equipment for measuring first screen time of webpage and storage medium Download PDF

Info

Publication number
CN110781063A
CN110781063A CN201911025052.3A CN201911025052A CN110781063A CN 110781063 A CN110781063 A CN 110781063A CN 201911025052 A CN201911025052 A CN 201911025052A CN 110781063 A CN110781063 A CN 110781063A
Authority
CN
China
Prior art keywords
browser
time
current page
page screenshot
current
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.)
Granted
Application number
CN201911025052.3A
Other languages
Chinese (zh)
Other versions
CN110781063B (en
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 CN201911025052.3A priority Critical patent/CN110781063B/en
Publication of CN110781063A publication Critical patent/CN110781063A/en
Application granted granted Critical
Publication of CN110781063B publication Critical patent/CN110781063B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3419Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment by assessing time
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the invention discloses a method, a device, equipment and a storage medium for measuring the first screen time of a webpage. The method comprises the following steps: monitoring a rendering event of a current browser; when a rendering event is monitored, acquiring a current page screenshot of the current browser; and if the effective display proportion of the current page screenshot is larger than the preset proportion, taking the current time as the first screen time. According to the technical scheme of the embodiment of the invention, the accuracy of the statistical data is improved, the practical significance of the first screen time statistics is enhanced, and the cost of performance and power consumption is low.

Description

Method, device and equipment for measuring first screen time of webpage and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method, a device, equipment and a storage medium for measuring the first screen time of a webpage.
Background
With the development of internet technology, the first screen time of a mobile terminal page is an important performance index for measuring network performance monitoring service. In order to obtain the page first screen time, the conventional method is to obtain the first screen height according to Document Object Model (DOM) information, then poll the rendered height of the current page, and when the rendered page height is not less than the first screen height, consider that the first screen loading is finished, and record the current time as the page first screen time.
In the prior art, under the condition that a network environment is unstable or the loading time of the actual content of a page is long, the situation that the background white screen is displayed by a browser first and the actual content appears on the page only after a period of time easily occurs. At this time, according to the traditional first screen time calculation method, the time for completing the loading of the background "white screen" is considered as the first screen time, which is far from the actual experience of the user, and therefore the statistical data is not accurate enough.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for measuring a first screen time of a web page, so as to improve accuracy of statistical data, enhance practical significance of statistics of the first screen time, and achieve low performance and power consumption.
In a first aspect, an embodiment of the present invention provides a method for measuring a first screen time of a webpage, including:
monitoring a rendering event of a browser;
when a rendering event is monitored, acquiring a current page screenshot of the browser;
and if the effective display proportion of the current page screenshot is larger than the preset proportion, taking the current time as the first screen time.
Optionally, after obtaining the current page screenshot of the browser, the method further includes:
equally dividing the current page screenshot into a preset number of areas in proportion;
respectively and randomly acquiring a first number of pixel points in each region;
and respectively taking the pixel average value corresponding to the first number of pixel points in each region as a region pixel value.
Optionally, if the effective display ratio of the current page screenshot is greater than the preset ratio, taking the current time as the first screen time, including:
and if the ratio of the number of the areas with different area pixel values to the preset number is greater than the preset ratio, taking the current time as the first screen time, and stopping monitoring the rendering event of the browser.
Optionally, after obtaining the current page screenshot of the browser, the method further includes:
and if the effective display proportion of the current page screenshot is smaller than or equal to the preset proportion, returning to execute the operation of acquiring the current page screenshot of the browser when the rendering event is monitored.
In a second aspect, an embodiment of the present invention further provides a device for measuring a first screen time of a webpage, including:
the monitoring module is used for monitoring rendering events of the browser;
the acquisition module is used for acquiring a current page screenshot of the browser when a rendering event is monitored;
and the confirming module is used for taking the current time as the first screen time if the effective display proportion of the current page screenshot is larger than the preset proportion.
Optionally, the method further includes:
the area division module is used for equally dividing the current page screenshot into a preset number of areas in equal proportion after the current page screenshot of the browser is acquired;
respectively and randomly acquiring a first number of pixel points in each region;
and respectively taking the pixel average value corresponding to the first number of pixel points in each region as a region pixel value.
Optionally, the determining module is specifically configured to, if a ratio of the number of the regions with different region pixel values to the preset number is greater than a preset ratio, use the current time as a first screen time, and stop monitoring the rendering event of the browser.
Optionally, the method further includes:
and the returning module is used for returning and executing the operation of acquiring the current page screenshot of the browser when the rendering event is monitored if the effective display proportion of the current page screenshot is less than or equal to the preset proportion after the current page screenshot of the browser is acquired.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
a storage device 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 the method for measuring the first screen time of a web page as provided by any of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for measuring the first screen time of a web page according to any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, a rendering event of a browser is monitored, and when the rendering event is monitored, a current page screenshot of the browser is obtained; if the effective display proportion of the current page screenshot is larger than the preset proportion, the current time is used as the first screen time, the problem that in the prior art, the difference between the first screen time calculated in the background white screen process and the actual experience of a user is large, and statistical data are not accurate enough is solved, the accuracy of the statistical data is improved, the practical significance of the first screen time statistics is enhanced, and the paid performance and power consumption cost are low.
Drawings
Fig. 1a is a flowchart of a method for measuring a first screen time of a web page according to a first embodiment of the present invention;
fig. 1b is a flowchart of a method for measuring a first screen time of a web page according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a device for measuring the first screen time of a webpage according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus in a third 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. 1a is a flowchart of a method for measuring a first screen time of a web page according to an embodiment of the present invention, where the embodiment is applicable to a situation of measuring the first screen time of the web page, and the method can be executed by a device for measuring the first screen time of the web page, and the device can be implemented by hardware and/or software, and can be generally integrated in a device for providing a service of measuring the first screen time of the web page. As shown in fig. 1a, the method comprises:
and step 110, monitoring rendering events of the browser.
In this embodiment, when the browser starts to load hypertext Markup Language (HTML) codes, a rendering event of the browser on a web page starts to be monitored. Rendering means that the browser displays an HTML code in a browser window according to a rule defined by a Cascading Style Sheet (CSS), for example, elements such as a picture or a list are displayed in a current page, and the HTML code is returned by the server after the browser acquires a website input by the user and sends a page request corresponding to the website input by the user to the server.
And step 120, when a rendering event is monitored, acquiring a current page screenshot of the browser.
In this embodiment, in order to accurately determine that the actual display of the current page is valid, that is, the current page does not display a "white screen" or a background page set by another system, when a rendering event is monitored, a current page screenshot of the browser is obtained, so as to determine whether the actual display of the current page is valid according to a difference between pixel values in the current page screenshot.
Optionally, after acquiring the current page screenshot of the browser, the method may further include: equally dividing the current page screenshot into a preset number of areas in proportion; respectively and randomly acquiring a first number of pixel points in each region; and respectively taking the pixel average value corresponding to the first number of pixel points in each region as a region pixel value.
Illustratively, a current page screenshot can be divided into three equal parts in the horizontal direction and the vertical direction to obtain 9 equally divided regions in equal proportion, then 50 pixel points are randomly selected from each region, the average value of the pixel values of the 50 pixel points is calculated, and the pixel average value is used as the region pixel value of the region to participate in the determination operation of the first screen time.
And step 130, if the effective display proportion of the current page screenshot is larger than the preset proportion, taking the current time as the first screen time.
Optionally, if the effective display ratio of the current screenshot of the page is greater than the preset ratio, taking the current time as the first screen time may include: and if the ratio of the number of the areas with different area pixel values to the preset number is greater than the preset ratio, taking the current time as the first screen time, and stopping monitoring the rendering event of the browser.
In this embodiment, the condition that the current time is determined to be the first screen time is that a ratio of the number of the regions with different region pixel values to the total number of the regions is greater than a preset ratio, for example, assuming that the preset ratio is 5/9, in 9 regions, by comparing the region pixel values of the respective regions, if the region pixel values of at least 6 regions are different from each other, it is considered that the loading of the first screen is completed, and the time corresponding to the screenshot of the current page may be the first screen time.
On the basis of the foregoing embodiment, optionally, after obtaining the current page screenshot of the browser, the method may further include: and if the effective display proportion of the current page screenshot is smaller than or equal to the preset proportion, returning to execute the operation of acquiring the current page screenshot of the browser when the rendering event is monitored.
In this embodiment, if the ratio of the number of regions with different region pixel values to the total number of regions is smaller than or equal to the preset ratio, for example, assuming that the preset ratio is 5/9, in 9 regions, by comparing the region pixel values of the respective regions, if the region pixel values of at most 5 regions are different from each other, it is determined that the first screen has not been completely loaded, the time corresponding to the current page screenshot cannot be taken as the first screen time, and it is necessary to return to step 120 again, and perform the operation of obtaining the current page screenshot of the browser when the rendering event is monitored.
According to the technical scheme of the embodiment of the invention, the rendering event of the browser is monitored, and when the rendering event is monitored, the current page screenshot of the browser is obtained; if the effective display proportion of the current page screenshot is larger than the preset proportion, the current time is used as the first screen time, the problem that statistical data are not accurate enough due to the fact that the difference between the first screen time calculated in the background white screen mode and the actual experience difference of a user is large in the prior art is solved, the accuracy of the statistical data is improved, the practical significance of the first screen time statistics is enhanced, and the paid performance and the paid power consumption cost are low.
On the basis of the above embodiments, a further description of an optimized embodiment is provided. As shown in fig. 1b, the following steps may be included:
1) registering rendering event listening with a browser.
2) When the browser starts to load data, the rendering event of the browser starts to be monitored.
3) And acquiring a screenshot of the display content of the current browser every time an event of the change of the browser picture is monitored.
4) And (5) dividing the screenshot into three parts horizontally and vertically to obtain 9 equally divided areas in equal proportion.
5) And respectively randomly taking 50 pixel points in each region.
6) And respectively solving the color mean value of 50 pixel points of each region as the overall color mean value of the region.
7) Comparing the color mean values of the regions, entering the step 8) when the color mean values of at least 6 regions are different from each other, and returning to the step 3) otherwise.
8) And recording the current time as the first screen time.
9) And stopping monitoring the browser rendering event.
In the embodiment, when a browser screen is analyzed, the whole screen area is equally divided into 9 areas of 3 ﹡ 3 in equal proportion, 50 pixel points are randomly selected in each area, the color average value of the 50 pixel points is calculated to serve as the color average value of the area, and when no less than 6 different color average values appear in the color average values of the 9 areas, the current time is recorded as the first screen time.
Through the steps, the first screen time which is very close to the actual experience of the user can be obtained, and the practical significance and the reference value of the data are superior to those of the traditional first screen time calculation method. In addition, in view of program performance and power consumption, all operations performed in the process of the page screenshot analysis can be completed within a constant time in the embodiment, that is, the time complexity of the page screenshot analysis process is O (1), and is not affected by the size of the page screenshot, so that the performance and power consumption costs caused by additional page screenshot and analysis operations are relatively low.
Example two
Fig. 2 is a schematic structural diagram of a device for measuring the first screen time of a webpage according to a third embodiment of the present invention. The apparatus may be implemented by hardware and/or software and may be generally integrated in a device that provides a web page first screen time measurement service. As shown in fig. 2, the apparatus includes: a listening module 210, an acquisition module 220, and a confirmation module 230.
A monitoring module 210, configured to monitor a rendering event of a browser;
an obtaining module 220, configured to obtain a current page screenshot of the browser when the rendering event is monitored;
and the confirming module 230 is configured to take the current time as the first screen time if the effective display ratio of the current page screenshot is greater than a preset ratio.
According to the technical scheme of the embodiment of the invention, the rendering event of the browser is monitored, and when the rendering event is monitored, the current page screenshot of the browser is obtained; if the effective display proportion of the current page screenshot is larger than the preset proportion, the current time is used as the first screen time, the problem that statistical data are not accurate enough due to the fact that the difference between the first screen time calculated in the background white screen mode and the actual experience difference of a user is large in the prior art is solved, the accuracy of the statistical data is improved, the practical significance of the first screen time statistics is enhanced, and the paid performance and the paid power consumption cost are low.
Optionally, the method further includes: the area division module is used for equally dividing the current page screenshot into a preset number of areas in equal proportion after the current page screenshot of the browser is acquired; respectively and randomly acquiring a first number of pixel points in each region; and respectively taking the pixel average value corresponding to the first number of pixel points in each region as a region pixel value.
Optionally, the determining module is specifically configured to, if a ratio of the number of the regions with different region pixel values to the preset number is greater than a preset ratio, use the current time as a first screen time, and stop monitoring the rendering event of the browser.
Optionally, the method further includes: and the returning module is used for returning and executing the operation of acquiring the current page screenshot of the browser when the rendering event is monitored if the effective display proportion of the current page screenshot is less than or equal to the preset proportion after the current page screenshot of the browser is acquired.
The device for measuring the first screen time of the webpage can execute the method for measuring the first screen time of the webpage provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the method for measuring the first screen time of the webpage.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an apparatus in a third embodiment of the present invention. Fig. 3 illustrates a block diagram of an exemplary device 12 suitable for use in implementing embodiments of the present invention. The device 12 shown in fig. 3 is only an example and should not bring any limitations to the functionality and scope of use of the embodiments of the present invention.
As shown in FIG. 3, device 12 is in the form of a general purpose computing device. The components of device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 3, and commonly referred to as a "hard drive"). Although not shown in FIG. 3, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with device 12, and/or with any devices (e.g., network card, modem, etc.) that enable device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with the other modules of the device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, implementing a method for measuring the first screen time of a web page provided by an embodiment of the present invention.
Namely: the method for measuring the first screen time of the webpage comprises the following steps:
monitoring a rendering event of a browser;
when a rendering event is monitored, acquiring a current page screenshot of the browser;
and if the effective display proportion of the current page screenshot is larger than the preset proportion, taking the current time as the first screen time.
Example four
The fourth embodiment of the present invention further discloses a computer storage medium, on which a computer program is stored, and when the program is executed by a processor, the method for measuring the first screen time of a webpage is implemented, including:
monitoring a rendering event of a browser;
when a rendering event is monitored, acquiring a current page screenshot of the browser;
and if the effective display proportion of the current page screenshot is larger than the preset proportion, taking the current time as the first screen time.
Computer storage media for embodiments of the invention may employ 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 electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. 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 the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
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 measuring the time of the first screen of a webpage is characterized by comprising the following steps:
monitoring a rendering event of a browser;
when a rendering event is monitored, acquiring a current page screenshot of the browser;
and if the effective display proportion of the current page screenshot is larger than the preset proportion, taking the current time as the first screen time.
2. The method of claim 1, after obtaining the current page screenshot of the browser, further comprising:
equally dividing the current page screenshot into a preset number of areas in proportion;
respectively and randomly acquiring a first number of pixel points in each region;
and respectively taking the pixel average value corresponding to the first number of pixel points in each region as a region pixel value.
3. The method of claim 2, wherein if the effective display ratio of the current screenshot of the page is greater than a preset ratio, taking the current time as the first screen time comprises:
and if the ratio of the number of the areas with different area pixel values to the preset number is greater than a preset ratio, taking the current time as the first screen time, and stopping monitoring the rendering event of the browser.
4. The method of claim 1, after obtaining the current page screenshot of the browser, further comprising:
and if the effective display proportion of the current page screenshot is smaller than or equal to the preset proportion, returning to execute the operation of acquiring the current page screenshot of the browser when the rendering event is monitored.
5. A device for measuring the time of the first screen of a webpage is characterized by comprising:
the monitoring module is used for monitoring rendering events of the browser;
the acquisition module is used for acquiring a current page screenshot of the browser when a rendering event is monitored;
and the confirming module is used for taking the current time as the first screen time if the effective display proportion of the current page screenshot is larger than the preset proportion.
6. The apparatus of claim 5, further comprising:
the area division module is used for dividing the current page screenshot into a preset number of areas in equal proportion after the current page screenshot of the browser is obtained;
respectively and randomly acquiring a first number of pixel points in each region;
and respectively taking the pixel average value corresponding to the first number of pixel points in each region as a region pixel value.
7. The apparatus of claim 6, wherein:
the confirming module is specifically configured to, if a ratio of the number of the regions with different region pixel values to the preset number is greater than a preset ratio, take the current time as a first screen time, and stop monitoring the rendering event of the browser.
8. The apparatus of claim 5, further comprising:
and the return module is used for returning to execute the operation of acquiring the current page screenshot of the browser when the rendering event is monitored if the effective display proportion of the current page screenshot is less than or equal to the preset proportion after the current page screenshot of the browser is acquired.
9. An apparatus, characterized in that the apparatus comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method for measuring a time to first screen of a web page as recited in any of claims 1-4.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method for measuring a time to first screen of a web page according to any one of claims 1 to 4.
CN201911025052.3A 2019-10-25 2019-10-25 Method, device, equipment and storage medium for measuring first screen time of web page Active CN110781063B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911025052.3A CN110781063B (en) 2019-10-25 2019-10-25 Method, device, equipment and storage medium for measuring first screen time of web page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911025052.3A CN110781063B (en) 2019-10-25 2019-10-25 Method, device, equipment and storage medium for measuring first screen time of web page

Publications (2)

Publication Number Publication Date
CN110781063A true CN110781063A (en) 2020-02-11
CN110781063B CN110781063B (en) 2023-12-05

Family

ID=69386625

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911025052.3A Active CN110781063B (en) 2019-10-25 2019-10-25 Method, device, equipment and storage medium for measuring first screen time of web page

Country Status (1)

Country Link
CN (1) CN110781063B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111538885A (en) * 2020-04-24 2020-08-14 腾讯音乐娱乐科技(深圳)有限公司 Page monitoring method and device, electronic equipment and storage medium
CN112579416A (en) * 2020-12-11 2021-03-30 广州品唯软件有限公司 Page loading duration statistical method, terminal and readable storage medium
DE202022101830U1 (en) 2022-04-05 2022-05-18 Iftikar Ahmed Wearable medical device for monitoring screen time with Internet of Things sensor

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020091755A1 (en) * 2000-06-30 2002-07-11 Attila Narin Supplemental request header for applications or devices using web browsers
CN102479151A (en) * 2010-11-26 2012-05-30 腾讯科技(深圳)有限公司 Testing method and device of webpage access speed
CN103324521A (en) * 2013-06-20 2013-09-25 张家港保税区润桐电子技术研发有限公司 Method for measuring initial screen time of webpage
CN103777939A (en) * 2013-03-18 2014-05-07 北京基调网络系统有限公司 Method for measuring webpage first screen time
CN107885645A (en) * 2017-10-31 2018-04-06 阿里巴巴集团控股有限公司 Calculate method, apparatus and electronic equipment that the first screen of the page renders duration
CN108228463A (en) * 2018-01-10 2018-06-29 百度在线网络技术(北京)有限公司 For detecting the method and apparatus of initial screen time
CN109344044A (en) * 2018-10-08 2019-02-15 杭州有赞科技有限公司 Calculate the method and system of page head screen render time
WO2019033852A1 (en) * 2017-08-16 2019-02-21 北京京东尚科信息技术有限公司 Thermodynamic diagram generating method, device and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020091755A1 (en) * 2000-06-30 2002-07-11 Attila Narin Supplemental request header for applications or devices using web browsers
CN102479151A (en) * 2010-11-26 2012-05-30 腾讯科技(深圳)有限公司 Testing method and device of webpage access speed
CN103777939A (en) * 2013-03-18 2014-05-07 北京基调网络系统有限公司 Method for measuring webpage first screen time
CN103324521A (en) * 2013-06-20 2013-09-25 张家港保税区润桐电子技术研发有限公司 Method for measuring initial screen time of webpage
WO2019033852A1 (en) * 2017-08-16 2019-02-21 北京京东尚科信息技术有限公司 Thermodynamic diagram generating method, device and system
CN107885645A (en) * 2017-10-31 2018-04-06 阿里巴巴集团控股有限公司 Calculate method, apparatus and electronic equipment that the first screen of the page renders duration
CN108228463A (en) * 2018-01-10 2018-06-29 百度在线网络技术(北京)有限公司 For detecting the method and apparatus of initial screen time
CN109344044A (en) * 2018-10-08 2019-02-15 杭州有赞科技有限公司 Calculate the method and system of page head screen render time

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
吴清扬等: "基于完全渲染的网页首屏性能测量设计", 《电子制作》 *
魏尔啸等: "公共图书馆网站服务前瞻", 《河南图书馆学刊》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111538885A (en) * 2020-04-24 2020-08-14 腾讯音乐娱乐科技(深圳)有限公司 Page monitoring method and device, electronic equipment and storage medium
CN111538885B (en) * 2020-04-24 2023-10-24 腾讯音乐娱乐科技(深圳)有限公司 Page monitoring method and device, electronic equipment and storage medium
CN112579416A (en) * 2020-12-11 2021-03-30 广州品唯软件有限公司 Page loading duration statistical method, terminal and readable storage medium
CN112579416B (en) * 2020-12-11 2023-01-31 广州品唯软件有限公司 Page loading duration statistical method, terminal and readable storage medium
DE202022101830U1 (en) 2022-04-05 2022-05-18 Iftikar Ahmed Wearable medical device for monitoring screen time with Internet of Things sensor

Also Published As

Publication number Publication date
CN110781063B (en) 2023-12-05

Similar Documents

Publication Publication Date Title
CN107506300B (en) User interface testing method, device, server and storage medium
CN110781063B (en) Method, device, equipment and storage medium for measuring first screen time of web page
CN107526631B (en) Task monitoring method, device, equipment and medium
CN109344044B (en) Method and system for calculating rendering time of first screen of page
CN107193747B (en) Code testing method and device and computer equipment
CN112612546A (en) Page loading method and device, electronic equipment and storage medium
CN111813641A (en) Method, device, medium and equipment for collecting crash information
CN110781427A (en) Method, device, equipment and storage medium for calculating first screen time
CN110990842A (en) Recurrence method and device of small probability event, storage medium and electronic equipment
CN109165372B (en) Webpage loading method, device, equipment and storage medium
CN110597704B (en) Pressure test method, device, server and medium for application program
CN112954056B (en) Method and device for processing monitoring data, electronic equipment and storage medium
CN111367813B (en) Automatic testing method and device for decision engine, server and storage medium
CN112817831A (en) Application performance monitoring method, device, computer system and readable storage medium
CN111913861A (en) Performance test method, device, equipment and medium of Internet of things system
CN110989898A (en) Monitoring method, system, medium and equipment for display used for nuclear power plant simulation
CN107944564B (en) Deep learning job processing method, device, equipment and storage medium
CN111741046B (en) Data reporting method, data acquisition method, device, equipment and medium
CN111914002B (en) Machine room resource information processing method and device and electronic equipment
CN114564354A (en) Database performance monitoring method and device, electronic equipment and storage medium
CN113780163A (en) Page loading time detection method and device, electronic equipment and medium
CN104714879B (en) Picture method of testing and device
CN113656391A (en) Data detection method and device, storage medium and electronic equipment
CN113760696A (en) Program problem positioning method and device, electronic equipment and storage medium
CN112100270A (en) Information-based examination data mining and analyzing method and device, electronic equipment and medium

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
GR01 Patent grant
GR01 Patent grant