CN111858282B - Page track recording method and related equipment - Google Patents

Page track recording method and related equipment Download PDF

Info

Publication number
CN111858282B
CN111858282B CN202010718754.6A CN202010718754A CN111858282B CN 111858282 B CN111858282 B CN 111858282B CN 202010718754 A CN202010718754 A CN 202010718754A CN 111858282 B CN111858282 B CN 111858282B
Authority
CN
China
Prior art keywords
page
instruction
time point
preset
track data
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.)
Active
Application number
CN202010718754.6A
Other languages
Chinese (zh)
Other versions
CN111858282A (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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202010718754.6A priority Critical patent/CN111858282B/en
Publication of CN111858282A publication Critical patent/CN111858282A/en
Application granted granted Critical
Publication of CN111858282B publication Critical patent/CN111858282B/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/3438Recording 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 monitoring of user actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to the technical field of computer information processing, and provides a page track recording method and device, computer equipment and a computer readable storage medium. The method comprises the steps of obtaining track data of a first page; controlling a preset page base class to monitor a creating instruction, a displaying instruction, a hiding instruction and a destroying instruction of a second page; recording and monitoring a creating time point of a creating instruction, a displaying time point of a displaying instruction, a hiding time point of a hiding instruction and a destroying time point of a destroying instruction of a second page; calculating the difference value between the destruction time point and the creation time point of the second page to obtain the page life time length of the second page, and calculating the difference value between the hiding time point and the display time point of the second page to obtain the page single-time display time length of the second page; recording the track data as a second page; and generating a page track of the application program according to the track data of the first page and the track data of the second page. The invention improves the accuracy of recording the page track.

Description

Page track recording method and related equipment
Technical Field
The invention relates to the technical field of computer information processing, in particular to a page track recording method and device, computer equipment and a computer readable storage medium.
Background
With the rise of the mobile internet, application programs have become the most dominant selling and displaying platform of mobile internet products.
By collecting page track data of the application program accessed by the user, the frequently-used pages and page tracks of the user can be counted, and the page layout of the application program is convenient to optimize. After a user enters an application program, how to accurately record page track data of the user accessing the application program becomes a problem to be solved urgently.
Disclosure of Invention
In view of the foregoing, there is a need for a page trace recording method, device, computer device and computer readable storage medium, which can record the page trace of an application program and improve the accuracy of recording the page trace.
A first aspect of the present application provides a page trace recording method, where the page trace recording method includes:
acquiring track data of a first page of an application program, wherein the track data comprises a page number, a page name, a page controller number of the page, a page controller number of an upper page, page single-time display duration and page life duration, the first page inherits a preset page base class, and a page controller to which the first page belongs inherits the preset controller base class;
controlling the preset page base class to monitor a creation instruction, a display instruction, a hiding instruction and a destruction instruction of a second page of the application program, wherein the second page inherits the preset page base class, and the creation instruction, the display instruction, the disappearance instruction and the destruction instruction of the second page are defined by the preset page base class;
when a creating instruction of the second page is monitored, acquiring a page number, a page name, a page controller number of the second page and a page controller number of an upper-layer page;
recording and monitoring a creating time point of a creating instruction, a displaying time point of a displaying instruction, a hiding time point of a hiding instruction and a destroying time point of a destroying instruction of the second page;
calculating a difference value between the destruction time point and the creation time point of the second page to obtain a page life time length of the second page, and calculating a difference value between the hiding time point and the display time point of the second page to obtain a single-time display time length of the page of the second page;
recording the page number, the page name, the page controller number of the second page, the page controller number of the upper page, the single-time display duration of the page and the life duration of the page as the track data of the second page;
and generating a page track of the application program according to the track data of the first page and the track data of the second page.
In another possible implementation manner, before the obtaining the trace data of the first page of the application program, the page trace recording method further includes:
and updating the page number and the page name of the application program from a preset server.
In another possible implementation manner, the controlling the preset page base class to monitor the creating instruction, the displaying instruction, the hiding instruction, and the destroying instruction of the second page includes:
when the creating method of the second page is called, controlling the preset page base class to monitor the creating instruction of the second page, and when the creating instruction of the second page is determined to be monitored, controlling the preset page base class to send the creating instruction of the second page to a preset collection class;
when the display method of the second page is called, controlling the preset page base class to monitor the display instruction of the second page, and when the display instruction of the second page is determined to be monitored, controlling the preset page base class to send the display instruction of the second page to the preset acquisition class;
when the hiding method of the second page is called, controlling the preset page base class to monitor the hiding instruction of the second page, and when the hiding instruction of the second page is determined to be monitored, controlling the preset page base class to send the hiding instruction of the second page to the preset collection class;
when the destruction method of the second page is called, controlling the preset page base class to monitor the destruction instruction of the second page, and when the destruction instruction of the second page is determined to be monitored, controlling the preset page base class to send the destruction instruction of the second page to the preset acquisition class.
In another possible implementation manner, the recording and monitoring a creation time point of the creation instruction, a display time point of the display instruction, a hiding time point of the hiding instruction, and a destruction time point of the destruction instruction of the second page includes:
creating a time queue;
and sequentially recording a creation time point, a display time point, a hiding time point and a destruction time point of the second page based on the time queue.
In another possible implementation manner, the generating a page trace of the application according to the trace data of the first page and the trace data of the second page includes:
and generating a chain page track of the application program according to the track data of the first page and the track data of the second page, wherein the track data of the second page in the chain page track is positioned behind the track data of the first page track.
In another possible implementation manner, the generating a page track of the application according to the track data of the first page and the track data of the second page includes:
acquiring a preset stack;
sequentially stacking the track data of the first page and the track data of the second page into the preset stack;
sequentially popping the track data in the preset stack to sequentially obtain the track data of the second page and the track data of the first page;
and connecting the track data of the first page and the track data of the second page to obtain the page track of the application program.
In another possible implementation manner, the page track recording method further includes:
and modifying the page layout of the application program according to the page track of the application program.
A second aspect of the present application provides a page trace recording apparatus, including:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring track data of a first page of an application program, and the track data comprises a page number, a page name, a page controller number of the page, a page controller number of an upper page, a page single-time display duration and a page life duration;
the monitoring module is used for controlling the preset page base class to monitor a creating instruction, a displaying instruction, a hiding instruction and a destroying instruction of a second page of the application program, wherein the second page inherits the preset page base class, and the creating instruction, the displaying instruction, the disappearing instruction and the destroying instruction of the second page are defined by the preset page base class;
the second obtaining module is used for obtaining the page number, the page name, the page controller number of the second page and the page controller number of the upper page when the creating instruction of the second page is monitored;
the first recording module is used for recording and monitoring a creation time point of a creation instruction, a display time point of a display instruction, a hiding time point of a hiding instruction and a destroying time point of a destroying instruction of the second page;
the calculation module is used for calculating the difference value between the destruction time point and the creation time point of the second page to obtain the page life time length of the second page, and calculating the difference value between the hiding time point and the display time point of the second page to obtain the single-time display time length of the page of the second page;
the second recording module is used for recording the page number, the page name, the page controller number of the second page, the page controller number of the upper page, the single display time length of the page and the life time length of the page as the track data of the second page;
and the generating module is used for generating the page track of the application program according to the track data of the first page and the track data of the second page.
A third aspect of the application provides a computer apparatus comprising a processor for implementing the page trace recording method when executing a computer program stored in a memory.
A fourth aspect of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the page trace recording method.
The invention records the page track of the application program, and improves the accuracy and efficiency of recording the page track.
Drawings
Fig. 1 is a flowchart of a page track recording method according to an embodiment of the present invention.
Fig. 2 is a structural diagram of a page trace recording apparatus according to an embodiment of the present invention.
FIG. 3 is a schematic diagram of a computer apparatus provided by an embodiment of the invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a detailed description of the present invention will be given below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth to provide a thorough understanding of the present invention, and the described embodiments are merely a subset of the embodiments of the present invention, rather than a complete embodiment. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Preferably, the page track recording method of the present invention is applied to one or more computer apparatuses. The computer device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing equipment. The computer device can be in man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch panel or voice control equipment and the like.
Example one
Fig. 1 is a flowchart of a page trace recording method according to an embodiment of the present invention. The page track recording method is applied to a computer device and used for recording the page track of an application program.
As shown in fig. 1, the page trace recording method includes:
101, obtaining track data of a first page of an application program, wherein the track data comprises a page number, a page name, a page controller number of the page, a page controller number of an upper page, a page single-time display duration and a page life duration, the first page inherits a preset page base class, and a page controller to which the first page belongs inherits the preset controller base class.
The first page may be a top page, and a page controller number of an upper page of the top page is a null value or a preset threshold value.
The page controller is a container that loads pages.
In a specific embodiment, before the acquiring the trace data of the first page of the application program, the page trace recording method further includes:
and updating the page number and the page name of the application program from a preset server.
For example, when the application is started, the page number of the home page of the application is updated from the preset server to be "1 \u01 \u001", and the page name is "public App-iOS _ public module _ home page".
And 102, controlling the preset page base class to monitor a creation instruction, a display instruction, a hiding instruction and a destruction instruction of a second page of the application program, wherein the second page inherits the preset page base class, and the creation instruction, the display instruction, the disappearance instruction and the destruction instruction of the second page are defined by the preset page base class.
When the second page is created, the second page inherits the preset page base class, and the second page is composed of specific data belonging to the second page and execution logic (operation and method) of the preset page base class. When the second page is created, the second page transmits the specific data of the second page to the preset page base class, and the execution logic (operation and method) of the preset page base class monitors the second page.
In a specific embodiment, the controlling the preset page base class to monitor the creating instruction, the displaying instruction, the hiding instruction, and the destroying instruction of the second page includes:
when the creating method of the second page is called, controlling the preset page base class to monitor the creating instruction of the second page, and when the creating instruction of the second page is determined to be monitored, controlling the preset page base class to send the creating instruction of the second page to a preset collection class;
when the display method of the second page is called, controlling the preset page base class to monitor the display instruction of the second page, and when the display instruction of the second page is determined to be monitored, controlling the preset page base class to send the display instruction of the second page to the preset collection class;
when the hiding method of the second page is called, controlling the preset page base class to monitor the hiding instruction of the second page, and when the hiding instruction of the second page is monitored, controlling the preset page base class to send the hiding instruction of the second page to the preset collection class;
when the destruction method of the second page is called, the preset page base class is controlled to monitor the destruction instruction of the second page, and when the destruction instruction of the second page is monitored, the preset page base class is controlled to send the destruction instruction of the second page to the preset acquisition class.
103, when the creating instruction of the second page is monitored, acquiring the page number, the page name, the page controller number of the page, and the page controller number of the upper page of the second page.
For example, when a creation instruction of the second page is monitored, it is obtained that the page number of the second page is "1_01_002", the page name of the second page is "preferential App-iOS _ common module _ order", the page controller number of the second page (i.e., the page controller number of the present page) is 0002, and the page controller number of the first page (i.e., the page controller number of the upper page of the second page) is 0001.
And 104, recording and monitoring a creation time point of a creation instruction, a display time point of a display instruction, a hiding time point of a hiding instruction and a destroying time point of a destroying instruction of the second page.
In a specific embodiment, the recording and monitoring a creation time point of a creation instruction, a display time point of a display instruction, a hiding time point of a hiding instruction, and a destruction time point of a destruction instruction of the second page includes:
creating a time queue;
and sequentially recording a creation time point, a display time point, a hiding time point and a destruction time point of the second page based on the time queue.
For example, a time queue is created; when a creating instruction of the second page is monitored, recording a monitoring time point and recording the monitoring time point as a creating time point, and executing enqueuing operation on the creating time point to enable the creating time point to enter a time queue; when a display instruction of the second page is monitored, recording a monitoring time point and recording the monitoring time point as a display time point, and executing enqueuing operation on the display time point to enable the display time point to enter a time queue; when a hiding instruction of the second page is monitored, recording a monitoring time point and recording the monitoring time point as a hiding time point, and executing enqueuing operation on the hiding time point to enable the hiding time point to enter a time queue; when the destruction instruction of the second page is monitored, recording a monitoring time point and recording as a destruction time point, and executing a queuing operation on the destruction time point to enable the destruction time point to enter a time queue. The respective time points are read from the time queue.
105, calculating a difference value between the destruction time point and the creation time point of the second page to obtain a page life time length of the second page, and calculating a difference value between the hiding time point and the displaying time point of the second page to obtain a single-time page displaying time length of the second page.
For example, calculating the difference value between the destruction time point (1587298868) of the second page and the creation time point (1587298861) of the second page to be 7, and obtaining the page life time length of the second page to be 7; and calculating the difference value between the hidden time point (1587298866) of the second page and the display time point (1587298863) of the second page to be 3, and obtaining the single-time display time length of the page of the second page to be 3.
And 106, recording the page number and the page name of the second page, the page controller number of the upper page, the single-time display duration of the page and the life duration of the page as the track data of the second page.
As in the above example, the page number, the page name, the page controller number of the second page, the page controller number of the upper page, the page single display duration, and the page life duration of the second page are recorded as the track data of the second page, so as to obtain "1 \u01 \ -u 002-praise App-iOS _ public module _ order-0002-0001-3-7".
And 107, generating a page track of the application program according to the track data of the first page and the track data of the second page.
In a specific embodiment, the generating a page trace of the application according to the trace data of the first page and the trace data of the second page includes:
and generating a chain page track of the application program according to the track data of the first page and the track data of the second page, wherein the track data of the second page in the chain page track is positioned behind the track data of the first page track.
In a specific embodiment, the generating a page track of the application program according to the track data of the first page and the track data of the second page includes:
acquiring a preset stack;
sequentially stacking the track data of the first page and the track data of the second page into the preset stack;
sequentially popping the track data in the preset stack to sequentially obtain the track data of the second page and the track data of the first page;
and connecting the track data of the first page and the track data of the second page to obtain the page track of the application program.
The preset stack may determine an order of each trace data (i.e., a sequence of each page).
For example, a preset stack is obtained, the track data a of the first page and the track data B of the second page are sequentially stacked on the preset stack, the track data a of the second page and the track data a of the first page are sequentially popped from the preset stack, the track data B of the second page and the track data a of the first page are obtained, the track data a of the first page and the track data B of the second page are connected, and the page track "a-B" of the application program is obtained.
For another example, a preset stack is obtained, track data a, B, C, and D of 4 pages are sequentially stacked on the preset stack, track data in the preset stack is sequentially popped to obtain D, C, B, and a, and the track data a, B, C, and D are connected to obtain a page track "a-B-C-D" of the application program.
The page track recording method of the first embodiment records the page track of the application program, and improves the accuracy and efficiency of recording the page track.
In another embodiment, the page trace recording method further includes:
and modifying the page layout of the application program according to the page track of the application program.
For example, when the number of the page a jumping to the page B in the record is greater than the preset number, the page position and the page size of the page B in the application program are modified, so that the user can jump from the page B to the page B more conveniently.
In another embodiment, the page trace recording method further includes:
recording a page track of a page controller of the first page and a page track of a page controller of the second page;
and generating a page track of the application program according to the page track of the page controller of the first page, the page track of the page controller of the second page, the track data of the first page and the track data of the second page.
In another embodiment, the page trace recording method further includes:
acquiring a third-party page;
and the third-party page actively calls a monitoring interface of the preset page base class to enable the preset page base class to monitor a creation instruction, a display instruction, a hiding instruction and a destruction instruction of the third-party page.
Example two
Fig. 2 is a structural diagram of a page trace recording apparatus according to a second embodiment of the present invention. The page trace recording device 20 is applied to a computer device. The page track recording device 20 is used for recording the page track of the application program.
As shown in fig. 2, the page trace recording apparatus 20 may include a first obtaining module 201, a monitoring module 202, a second obtaining module 203, a first recording module 204, a calculating module 205, a second recording module 206, and a generating module 207.
The first obtaining module 201 is configured to obtain trajectory data of a first page of an application, where the trajectory data includes a page number, a page name, a page controller number of the page, a page controller number of an upper page, a page single-display duration, and a page life duration, the first page inherits a preset page base class, and a page controller to which the first page belongs inherits the preset controller base class.
The first page may be a top page, and the number of the page controller of the top page is a null value or a preset threshold value.
The page controller is a container that loads pages.
In a specific embodiment, the page trace recording apparatus further includes an updating module, configured to update a page number and a page name of the application from a preset server before the trace data of the first page of the application is obtained.
For example, when the application is started, the page number of the home page of the application is updated from the preset server to be "1 \u01 \u001", and the page name is "public App-iOS _ public module _ home page".
The monitoring module 202 is configured to control the preset page base class to monitor a creation instruction, a display instruction, a hiding instruction, and a destruction instruction of a second page of the application program, where the second page inherits the preset page base class, and the creation instruction, the display instruction, the disappearance instruction, and the destruction instruction of the second page are defined by the preset page base class.
When the second page is created, the second page inherits the preset page base class, and the second page is composed of specific data belonging to the second page and execution logic (operation and method) of the preset page base class. When the second page is created, the second page transmits the specific data of the second page to the preset page base class, and the second page is monitored by execution logic (operation and method) of the preset page base class.
In a specific embodiment, the controlling the preset page base class to monitor the creating instruction, the displaying instruction, the hiding instruction, and the destroying instruction of the second page includes:
when the creating method of the second page is called, controlling the preset page base class to monitor the creating instruction of the second page, and when the creating instruction of the second page is determined to be monitored, controlling the preset page base class to send the creating instruction of the second page to a preset collection class;
when the display method of the second page is called, controlling the preset page base class to monitor the display instruction of the second page, and when the display instruction of the second page is determined to be monitored, controlling the preset page base class to send the display instruction of the second page to the preset acquisition class;
when the hiding method of the second page is called, controlling the preset page base class to monitor the hiding instruction of the second page, and when the hiding instruction of the second page is determined to be monitored, controlling the preset page base class to send the hiding instruction of the second page to the preset collection class;
when the destruction method of the second page is called, the preset page base class is controlled to monitor the destruction instruction of the second page, and when the destruction instruction of the second page is monitored, the preset page base class is controlled to send the destruction instruction of the second page to the preset acquisition class.
The second obtaining module 203 is configured to obtain the page number, the page name, the page controller number of the current page, and the page controller number of the upper page when the creation instruction of the second page is monitored.
For example, when a creation instruction of the second page is monitored, it is obtained that the page number of the second page is "1_01_002", the page name of the second page is "preferential App-iOS _ common module _ order", the page controller number of the second page (i.e., the page controller number of the present page) is 0002, and the page controller number of the first page (i.e., the page controller number of the upper page of the second page) is 0001.
The first recording module 204 is configured to record and monitor a creation time point of the creation instruction, a display time point of the display instruction, a hiding time point of the hiding instruction, and a destruction time point of the destruction instruction of the second page.
In a specific embodiment, the recording and monitoring a creation time point of a creation instruction, a display time point of a display instruction, a hiding time point of a hiding instruction, and a destruction time point of a destruction instruction of the second page includes:
creating a time queue;
and sequentially recording a creation time point, a display time point, a hiding time point and a destruction time point of the second page based on the time queue.
For example, a time queue is created; when a creating instruction of the second page is monitored, recording a monitoring time point and recording the monitoring time point as a creating time point, and executing enqueuing operation on the creating time point to enable the creating time point to enter a time queue; when a display instruction of the second page is monitored, recording a monitoring time point and recording the monitoring time point as a display time point, and performing enqueuing operation on the display time point to enable the display time point to enter a time queue; when a hiding instruction of the second page is monitored, recording a monitoring time point and recording the monitoring time point as a hiding time point, and executing enqueuing operation on the hiding time point to enable the hiding time point to enter a time queue; when the destruction instruction of the second page is monitored, recording a monitoring time point and recording as a destruction time point, and executing a queuing operation on the destruction time point to enable the destruction time point to enter a time queue. The respective time points are read from the time queue.
The calculating module 205 is configured to calculate a difference between the destruction time point and the creation time point of the second page to obtain a page lifetime of the second page, and calculate a difference between the hiding time point and the displaying time point of the second page to obtain a page single-time displaying time length of the second page.
For example, calculating the difference value between the destruction time point (1587298868) of the second page and the creation time point (1587298861) of the second page to be 7, and obtaining the page life time length of the second page to be 7; and calculating the difference value between the hidden time point (1587298866) of the second page and the display time point (1587298863) of the second page to be 3, and obtaining the single-time display time length of the page of the second page to be 3.
The second recording module 206 is configured to record the page number, the page name, the page controller number of the second page, the page controller number of the upper page, the single-display duration of the page, and the life duration of the page as track data of the second page.
As above, the page number, the page name, the page controller number of the second page, the page controller number of the upper page, the single display time length of the page, and the life time length of the page are recorded as the track data of the second page, so as to obtain "1_01 _002-general App-iOS _ public module _ order-0002-0001-3-7".
A generating module 207, configured to generate a page track of the application program according to the track data of the first page and the track data of the second page.
In a specific embodiment, the generating a page track of the application program according to the track data of the first page and the track data of the second page includes:
and generating a chain page track of the application program according to the track data of the first page and the track data of the second page, wherein the track data of the second page in the chain page track is positioned behind the track data of the first page track.
In a specific embodiment, the generating a page trace of the application according to the trace data of the first page and the trace data of the second page includes:
acquiring a preset stack;
sequentially stacking the track data of the first page and the track data of the second page into the preset stack;
sequentially popping the track data in the preset stack to sequentially obtain the track data of the second page and the track data of the first page;
and connecting the track data of the first page and the track data of the second page to obtain the page track of the application program.
The preset stack may determine an order of each trace data (i.e., a sequence of each page).
For example, a preset stack is obtained, the track data a of the first page and the track data B of the second page are sequentially stacked on the preset stack, the track data a of the second page and the track data a of the first page are sequentially popped from the preset stack, the track data B of the second page and the track data a of the first page are obtained, the track data a of the first page and the track data B of the second page are connected, and the page track "a-B" of the application program is obtained.
For another example, a preset stack is obtained, track data a, B, C, and D of 4 pages are sequentially stacked on the preset stack, track data in the preset stack is sequentially popped to obtain D, C, B, and a, and the track data a, B, C, and D are connected to obtain a page track "a-B-C-D" of the application program.
The page track recording apparatus 20 of the second embodiment records the page track of the application program, thereby improving the accuracy and efficiency of recording the page track.
In another embodiment, the page trace recording apparatus 20 further includes a modification module, configured to modify the page layout of the application according to the page trace of the application.
For example, when the number of the page A jumps to the page B in the record is larger than the preset number, the page position and the page size of the page B in the application program are modified, so that the user can jump from the page B to the page B more conveniently.
In another embodiment, the generating module is further configured to record a page track of the page controller of the first page and a page track of the page controller of the second page; and generating a page track of the application program according to the page track of the page controller of the first page, the page track of the page controller of the second page, the track data of the first page and the track data of the second page.
In another embodiment, the page trace recording apparatus 20 further includes a calling module, configured to obtain a third-party page; and the third-party page actively calls a monitoring interface of the preset page base class to enable the preset page base class to monitor a creating instruction, a displaying instruction, a hiding instruction and a destroying instruction of the third-party page.
EXAMPLE III
The present embodiment provides a computer-readable storage medium, which stores thereon a computer program, which when executed by a processor implements the steps in the above-mentioned page trace recording method embodiment, such as steps 101-107 shown in fig. 1:
101, acquiring track data of a first page of an application program, wherein the track data comprises a page number, a page name, a page controller number of the page, a page controller number of an upper page, a page single-time display duration and a page life duration, the first page inherits a preset page base class, and a page controller to which the first page belongs inherits the preset controller base class;
102, controlling the preset page base class to monitor a creation instruction, a display instruction, a hiding instruction and a destruction instruction of a second page of the application program, wherein the second page inherits the preset page base class, and the creation instruction, the display instruction, the disappearance instruction and the destruction instruction of the second page are defined by the preset page base class;
103, when a creating instruction of the second page is monitored, acquiring a page number, a page name, a page controller number of the second page, and a page controller number of an upper page;
104, recording and monitoring a creation time point of a creation instruction, a display time point of a display instruction, a hiding time point of a hiding instruction and a destroying time point of a destroying instruction of the second page;
105, calculating a difference value between the destruction time point and the creation time point of the second page to obtain a page life time length of the second page, and calculating a difference value between the hiding time point and the display time point of the second page to obtain a single-time display time length of the page of the second page;
106, recording the page number and the page name of the second page, the page controller number of the upper page, the single-time display duration of the page and the life duration of the page as the track data of the second page;
and 107, generating a page track of the application program according to the track data of the first page and the track data of the second page.
Alternatively, the computer program, when executed by the processor, implements the functionality of the modules in the above-described apparatus embodiments, such as modules 201-207 in fig. 2:
the first obtaining module 201 is configured to obtain trajectory data of a first page of an application, where the trajectory data includes a page number, a page name, a page controller number of the page, a page controller number of an upper page, a page single-display duration, and a page life duration, the first page inherits a preset page base class, and a page controller to which the first page belongs inherits the preset controller base class;
the monitoring module 202 is configured to control the preset page base class to monitor a creation instruction, a display instruction, a hiding instruction, and a destruction instruction of a second page of the application program, where the second page inherits the preset page base class, and the creation instruction, the display instruction, the disappearance instruction, and the destruction instruction of the second page are defined by the preset page base class;
a second obtaining module 203, configured to obtain a page number, a page name, a page controller number of the current page, and a page controller number of an upper page of the second page when the creating instruction of the second page is monitored;
the first recording module 204 is configured to record and monitor a creation time point of a creation instruction, a display time point of a display instruction, a hiding time point of a hiding instruction, and a destruction time point of a destruction instruction of the second page;
the calculating module 205 is configured to calculate a difference between a destruction time point and a creation time point of the second page to obtain a page life time length of the second page, and calculate a difference between a hiding time point and a display time point of the second page to obtain a single-time page display time length of the second page;
a second recording module 206, configured to record the page number, the page name, the page controller number of the second page, the page controller number of the upper page, the single-display duration of the page, and the life duration of the page as track data of the second page;
a generating module 207, configured to generate a page track of the application program according to the track data of the first page and the track data of the second page.
Example four
Fig. 3 is a schematic diagram of a computer device according to a third embodiment of the present invention. The computer device 30 comprises a memory 301, a processor 302 and a computer program 303, such as a page trace recording program, stored in the memory 301 and executable on the processor 302. The processor 302, when executing the computer program 303, implements the steps in the above-described embodiments of the page trace recording method, such as 101-107 shown in fig. 1:
101, acquiring track data of a first page of an application program, wherein the track data comprises a page number, a page name, a page controller number of the page, a page controller number of an upper page, a page single-time display duration and a page life duration, the first page inherits a preset page base class, and a page controller to which the first page belongs inherits the preset controller base class;
102, controlling the preset page base class to monitor a creation instruction, a display instruction, a hiding instruction and a destruction instruction of a second page of the application program, wherein the second page inherits the preset page base class, and the creation instruction, the display instruction, the disappearance instruction and the destruction instruction of the second page are defined by the preset page base class;
103, when a creating instruction of the second page is monitored, acquiring a page number, a page name, a page controller number of the second page, and a page controller number of an upper page;
104, recording and monitoring a creation time point of a creation instruction, a display time point of a display instruction, a hiding time point of a hiding instruction and a destroying time point of a destroying instruction of the second page;
105, calculating a difference value between the destruction time point and the creation time point of the second page to obtain a page life time length of the second page, and calculating a difference value between the hiding time point and the displaying time point of the second page to obtain a single-time page displaying time length of the second page;
106, recording the page number and the page name of the second page, the page controller number of the upper page, the single-time display duration of the page and the life duration of the page as the track data of the second page;
and 107, generating a page track of the application program according to the track data of the first page and the track data of the second page.
Alternatively, the computer program, when executed by the processor, implements the functionality of the modules in the above-described apparatus embodiments, such as modules 201-207 in fig. 2:
the first obtaining module 201 is configured to obtain trajectory data of a first page of an application, where the trajectory data includes a page number, a page name, a page controller number of the page, a page controller number of an upper page, a page single-display duration, and a page life duration, the first page inherits a preset page base class, and a page controller to which the first page belongs inherits the preset controller base class;
the monitoring module 202 is configured to control the preset page base class to monitor a creation instruction, a display instruction, a hiding instruction, and a destruction instruction of a second page of the application program, where the second page inherits the preset page base class, and the creation instruction, the display instruction, the disappearance instruction, and the destruction instruction of the second page are defined by the preset page base class;
a second obtaining module 203, configured to obtain, when the creation instruction of the second page is monitored, a page number and a page name of the second page, a page controller number of the second page, and a page controller number of an upper page;
the first recording module 204 is configured to record and monitor a creation time point of the creation instruction, a display time point of the display instruction, a hiding time point of the hiding instruction, and a destruction time point of the destruction instruction of the second page;
the calculating module 205 is configured to calculate a difference between a destruction time point and a creation time point of the second page to obtain a page life time length of the second page, and calculate a difference between a hiding time point and a display time point of the second page to obtain a single-time page display time length of the second page;
a second recording module 206, configured to record the page number, the page name, the page controller number of the second page, the page controller number of the upper page, the single-display duration of the page, and the life duration of the page as track data of the second page;
a generating module 207, configured to generate a page track of the application program according to the track data of the first page and the track data of the second page.
Illustratively, the computer program 303 may be partitioned into one or more modules that are stored in the memory 301 and executed by the processor 302 to perform the present method. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 303 in the computer device 30. For example, the computer program 303 may be divided into a first obtaining module 201, a monitoring module 202, a second obtaining module 203, a first recording module 204, a calculating module 205, a second recording module 206, and a generating module 207 in fig. 2, where specific functions of each module are described in embodiment two.
Those skilled in the art will appreciate that the schematic diagram 3 is merely an example of the computer device 30 and does not constitute a limitation of the computer device 30, and may include more or less components than those shown, or combine certain components, or different components, for example, the computer device 30 may also include input and output devices, network access devices, buses, etc.
The Processor 302 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor 302 may be any conventional processor or the like, the processor 302 being the control center for the computer device 30 and connecting the various parts of the overall computer device 30 using various interfaces and lines.
The memory 301 may be used to store the computer program 303, and the processor 302 may implement various functions of the computer device 30 by executing or executing the computer program or module stored in the memory 301 and calling data stored in the memory 301. The memory 301 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, etc.) created according to the use of the computer device 30, and the like. Further, the memory 301 may include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other non-volatile solid state storage device.
The modules integrated by the computer device 30 may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM).
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware form, and can also be realized in a form of hardware and a software functional module.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the page trace recording method according to various embodiments of the present invention.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned. Furthermore, it is to be understood that the word "comprising" does not exclude other modules or steps, and the singular does not exclude the plural. A plurality of modules or means recited in the system claims may also be implemented by one module or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (9)

1. A page track recording method is characterized by comprising the following steps:
acquiring track data of a first page of an application program, wherein the track data comprises a page number, a page name, a page controller number of the page, a page controller number of an upper page, page single-time display duration and page life duration, the first page inherits a preset page base class, and a page controller to which the first page belongs inherits the preset controller base class;
controlling the preset page base class to monitor a creation instruction, a display instruction, a hiding instruction and a destruction instruction of a second page of the application program, wherein the second page inherits the preset page base class, and the creation instruction, the display instruction, the disappearance instruction and the destruction instruction of the second page are defined by the preset page base class;
when a creating instruction of the second page is monitored, acquiring a page number, a page name, a page controller number of the second page and a page controller number of an upper page;
recording and monitoring a creating time point of a creating instruction, a displaying time point of a displaying instruction, a hiding time point of a hiding instruction and a destroying time point of a destroying instruction of the second page;
calculating a difference value between the destruction time point and the creation time point of the second page to obtain a page life time length of the second page, and calculating a difference value between the hiding time point and the displaying time point of the second page to obtain a single-time page displaying time length of the second page;
recording the page number, the page name, the page controller number of the second page, the page controller number of the upper page, the single-time display duration of the page and the life duration of the page as track data of the second page;
generating a page track of the application program according to the track data of the first page and the track data of the second page, including:
acquiring a preset stack;
sequentially stacking the track data of the first page and the track data of the second page to the preset stack;
sequentially popping the track data in the preset stack to sequentially obtain the track data of the second page and the track data of the first page;
and connecting the track data of the first page and the track data of the second page to obtain the page track of the application program.
2. The page trace recording method of claim 1, wherein prior to said obtaining trace data for the first page of the application, the page trace recording method further comprises:
and updating the page number and the page name of the application program from a preset server.
3. The method for recording the page trace of claim 1, wherein the controlling the preset page base class to monitor the creating instruction, the displaying instruction, the hiding instruction, and the destroying instruction of the second page includes:
when the creating method of the second page is called, controlling the preset page base class to monitor the creating instruction of the second page, and when the creating instruction of the second page is determined to be monitored, controlling the preset page base class to send the creating instruction of the second page to a preset collection class;
when the display method of the second page is called, controlling the preset page base class to monitor the display instruction of the second page, and when the display instruction of the second page is determined to be monitored, controlling the preset page base class to send the display instruction of the second page to the preset collection class;
when the hiding method of the second page is called, controlling the preset page base class to monitor the hiding instruction of the second page, and when the hiding instruction of the second page is monitored, controlling the preset page base class to send the hiding instruction of the second page to the preset collection class;
when the destruction method of the second page is called, controlling the preset page base class to monitor the destruction instruction of the second page, and when the destruction instruction of the second page is determined to be monitored, controlling the preset page base class to send the destruction instruction of the second page to the preset acquisition class.
4. The method for recording page traces according to claim 1, wherein the recording and monitoring a creation time point of a creation instruction, a display time point of a display instruction, a hiding time point of a hiding instruction, and a destruction time point of a destruction instruction of the second page comprises:
creating a time queue;
and sequentially recording a creation time point, a display time point, a hiding time point and a destruction time point of the second page based on the time queue.
5. The page trace recording method of claim 1, wherein the generating the page trace of the application program according to the trace data of the first page and the trace data of the second page comprises:
and generating a chain page track of the application program according to the track data of the first page and the track data of the second page, wherein the track data of the second page in the chain page track is positioned behind the track data of the first page track.
6. The page trace recording method according to any one of claims 1 to 5, characterized in that the page trace recording method further comprises:
and modifying the page layout of the application program according to the page track of the application program.
7. A page track recording apparatus, characterized in that the page track recording apparatus comprises:
the system comprises a first acquisition module, a first display module and a second acquisition module, wherein the first acquisition module is used for acquiring track data of a first page of an application program, and the track data comprises a page number, a page name, a page controller number of the page, a page controller number of an upper page, a page single-time display duration and a page life duration;
the monitoring module is used for controlling the preset page base class to monitor a creating instruction, a displaying instruction, a hiding instruction and a destroying instruction of a second page of the application program, wherein the second page inherits the preset page base class, and the creating instruction, the displaying instruction, the disappearing instruction and the destroying instruction of the second page are defined by the preset page base class;
the second obtaining module is used for obtaining the page number, the page name, the page controller number of the second page and the page controller number of the upper page when the creating instruction of the second page is monitored;
the first recording module is used for recording and monitoring a creating time point of a creating instruction, a displaying time point of a displaying instruction, a hiding time point of a hiding instruction and a destroying time point of a destroying instruction of the second page;
the calculation module is used for calculating the difference value between the destruction time point and the creation time point of the second page to obtain the page life time length of the second page, and calculating the difference value between the hiding time point and the display time point of the second page to obtain the single-time display time length of the page of the second page;
the second recording module is used for recording the page number, the page name, the page controller number of the second page, the page controller number of the upper page, the single display time length of the page and the life time length of the page as the track data of the second page;
a generating module, configured to generate a page track of the application according to the track data of the first page and the track data of the second page, where the generating module includes:
acquiring a preset stack;
sequentially stacking the track data of the first page and the track data of the second page into the preset stack;
sequentially popping the track data in the preset stack to sequentially obtain the track data of the second page and the track data of the first page;
and connecting the track data of the first page and the track data of the second page to obtain the page track of the application program.
8. A computer device, characterized in that the computer device comprises a processor for executing a computer program stored in a memory to implement the page trace recording method according to any one of claims 1 to 6.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the page trace recording method according to any one of claims 1 to 6.
CN202010718754.6A 2020-07-23 2020-07-23 Page track recording method and related equipment Active CN111858282B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010718754.6A CN111858282B (en) 2020-07-23 2020-07-23 Page track recording method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010718754.6A CN111858282B (en) 2020-07-23 2020-07-23 Page track recording method and related equipment

Publications (2)

Publication Number Publication Date
CN111858282A CN111858282A (en) 2020-10-30
CN111858282B true CN111858282B (en) 2022-11-04

Family

ID=72949801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010718754.6A Active CN111858282B (en) 2020-07-23 2020-07-23 Page track recording method and related equipment

Country Status (1)

Country Link
CN (1) CN111858282B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114637680A (en) * 2022-03-22 2022-06-17 马上消费金融股份有限公司 Information acquisition method, device and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106446228A (en) * 2016-10-08 2017-02-22 中国工商银行股份有限公司 Collection analysis method and device for WEB page data
CN109542689A (en) * 2018-11-30 2019-03-29 努比亚技术有限公司 Applied program processing method, terminal and computer readable storage medium
CN111176960A (en) * 2019-10-22 2020-05-19 腾讯科技(深圳)有限公司 User operation behavior tracking method, device, equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729446B (en) * 2013-12-30 2018-02-02 广州猎豹网络科技有限公司 A kind of processing method, processing unit and the server of user's operation data
CN107870933B (en) * 2016-09-27 2020-09-29 北京京东尚科信息技术有限公司 Method, device and system for counting android application page browsing behaviors
CN108304301B (en) * 2017-12-15 2021-03-19 创新先进技术有限公司 Method and device for recording user behavior track
CN108647133A (en) * 2018-04-28 2018-10-12 深圳市小牛在线互联网信息咨询有限公司 User's operation track recording method, device, storage medium and computer equipment
CN109766253B (en) * 2018-12-15 2023-06-27 平安证券股份有限公司 Performance data sending method and device, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106446228A (en) * 2016-10-08 2017-02-22 中国工商银行股份有限公司 Collection analysis method and device for WEB page data
CN109542689A (en) * 2018-11-30 2019-03-29 努比亚技术有限公司 Applied program processing method, terminal and computer readable storage medium
CN111176960A (en) * 2019-10-22 2020-05-19 腾讯科技(深圳)有限公司 User operation behavior tracking method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN111858282A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
US8799796B2 (en) System and method for generating graphical dashboards with drill down navigation
CN108292231A (en) It generates and applies from data
CN111461168A (en) Training sample expansion method and device, electronic equipment and storage medium
US8250534B2 (en) Method and system for constructing a software application from a complete and consistent specification in a software development process
CN103530107A (en) System, method, and computer program product for determining whether parameter configurations meet predetermined criteria
CN112784016B (en) Method and equipment for detecting speaking information
CN102567459A (en) Presentation process as context for presenter and audience
JP2018147280A (en) Data analysis device and data analysis method
CN111858282B (en) Page track recording method and related equipment
CN111111201A (en) Skill creating method, skill creating device, skill creating server and skill creating medium based on game
CN114862140A (en) Behavior analysis-based potential evaluation method, device, equipment and storage medium
Koenig et al. Complication rates, hospital size, and bias in the CMS hospital-acquired condition reduction program
CN111191999B (en) Product research and development management method, device, computer equipment and storage medium
CN112905424A (en) Monitoring software customization generation method, system, equipment and storage medium
CN107133072A (en) One kind operation performs method and apparatus
CN112583603B (en) Visual signature method and device, electronic equipment and computer readable storage medium
CN112698899A (en) Data transformation method, device, equipment and medium based on data visualization
JP5449506B1 (en) Product quality management device and product quality management program
CN112685120A (en) Visual data conversion method, device, equipment and medium
US20200233932A1 (en) Providing ability to simulate production systems at scale in a fast, scalable way
CN112988022B (en) Virtual calendar display method and device, electronic equipment and computer readable medium
CN116938372B (en) Method and device for rapidly configuring broadcast timing task based on time axis
CN111933267B (en) Medical early warning method, device, computer equipment and computer readable storage medium
US20150279236A1 (en) Method And Apparatus For Providing A Presentation Model
US20230169597A1 (en) Systems and methods for building and executing insurance contracts

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