CN107894946A - Page frame per second statistical method, device, terminal and computer-readable recording medium - Google Patents

Page frame per second statistical method, device, terminal and computer-readable recording medium Download PDF

Info

Publication number
CN107894946A
CN107894946A CN201711142495.1A CN201711142495A CN107894946A CN 107894946 A CN107894946 A CN 107894946A CN 201711142495 A CN201711142495 A CN 201711142495A CN 107894946 A CN107894946 A CN 107894946A
Authority
CN
China
Prior art keywords
page
frame per
class
tool
statistical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711142495.1A
Other languages
Chinese (zh)
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.)
Shenzhen Spring Sports Management Co Ltd
Original Assignee
Shenzhen Spring Sports 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 Shenzhen Spring Sports Management Co Ltd filed Critical Shenzhen Spring Sports Management Co Ltd
Priority to CN201711142495.1A priority Critical patent/CN107894946A/en
Publication of CN107894946A publication Critical patent/CN107894946A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; 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/3452Performance evaluation by statistical analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING; 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/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

Abstract

The embodiment of the invention discloses a kind of page frame per second statistical method, applied to Internet technical field, this method includes:The first tool-class is created in the client, for recording the frame per second of each page, page statistics codes are added in the homepage of the page to be counted, enable the frame per second that the first tool-class records each page, and bring page statistics codes into the next page when entering next page, the second tool-class is created in the client, is graphically shown the frame per second of record by the second tool-class.The embodiment of the invention also discloses a kind of page frame per second statistic device, terminal and computer can storage medium, the statistics accuracy of page frame per second can be improved.

Description

Page frame per second statistical method, device, terminal and computer-readable recording medium
Technical field
The invention belongs to Internet technical field, more particularly to a kind of page frame per second statistical method, device, terminal and calculating Machine readable storage medium storing program for executing.
Background technology
Develop with the technology of internet arena, establish substantial amounts of website, website is made up of webpage, the page frame of webpage Rate can reflect the fluency of webpage, and therefore, the real time frame rate of the statistical web page page is particularly significant.
Present statistics page real time frame rate scheme is to add statistics codes in each page, and increasing a page newly just needs New statistics codes are added, and as project change time passage, statistics codes quantity add up, cause to count page real-time frame Rate is increasingly difficult to safeguard.
The content of the invention
The present invention provides a kind of page frame per second statistical method, device, terminal and computer-readable recording medium, can be due to Caused by statistics page code is cumulative the problem of real time frame rate statistical difficulty.
First aspect of the embodiment of the present invention provides a kind of page frame per second statistical method, including:
The first tool-class is created in the client, for recording the frame per second of each page;
Page statistics codes are added in the homepage of the page to be counted, enable the frame that first tool-class records each page Rate, and bring the page statistics codes into next page when entering next page;
The second tool-class is created in the client, is graphically entered the frame per second of record by second tool-class Row displaying.
Second aspect of the embodiment of the present invention provides a kind of page frame per second statistic device, including:
Creation module, for creating the first tool-class in the client;
Statistical module, for adding page statistics codes in the homepage of the page to be counted, enable the first tool-class record The frame per second of each page, and bring the page statistics codes into next page when entering next page;
The creation module, it is additionally operable to create the second tool-class in the client;
Display module, for being graphically shown the frame per second of record by second tool-class.
The third aspect of the embodiment of the present invention provides a kind of terminal, including:
Memory, processor and storage are on a memory and the computer program that can run on a processor, the processor are held The page frame per second statistical method that first aspect of the embodiment of the present invention provides is realized during row described program.
The third aspect of the embodiment of the present invention provides a kind of storage medium, including:
Computer program is stored thereon with, when the computer program is executed by processor, realizes first party of the embodiment of the present invention The described page frame per second statistical method that face provides.
It was found from the embodiments of the present invention, page frame per second statistical method, device, terminal and computer provided by the invention Readable storage medium storing program for executing, the first tool-class is created in the client, for recording the frame per second of each page, in the head of the page to be counted Page statistics codes are added on page, enable the frame per second that first tool-class records each page, and when entering next page Bring the page statistics codes into next page, avoid each page in real-time statistics frame per second from being added with the generation of oneself Code, causes after running multiple pages, counts the slow problem of frame per second, also, the second tool-class is created in the client, passes through The frame per second of record is graphically shown by second tool-class, is formed visualization interface, is easy to user intuitively to lead to Observation, analysis frame per second are crossed, knows the interim card point of the page, and is targetedly solved, improves the practicality of statistics frame per second.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention.
Fig. 1 is the schematic flow sheet for the page frame per second statistical method that first embodiment of the invention provides;
Fig. 2 is the schematic flow sheet for the page frame per second statistical method that second embodiment of the invention provides;
Fig. 3 is the structural representation for the page frame per second statistic device that third embodiment of the invention provides;
Fig. 4 shows a kind of hardware structure diagram of terminal.
Embodiment
To enable goal of the invention, feature, the advantage of the present invention more obvious and understandable, below in conjunction with the present invention Accompanying drawing in embodiment, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described reality It is only part of the embodiment of the present invention to apply example, and not all embodiments.Based on the embodiment in the present invention, people in the art The every other embodiment that member is obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Referring to Fig. 1, Fig. 1 is the implementation process signal for the page frame per second statistical method that first embodiment of the invention provides Figure, this method can be applied in terminal, and the terminal includes:The terminals such as desktop computer, notebook computer, mobile phone.This method includes Following steps:
S101, the first tool-class is created in the client, for recording the frame per second of each page;
Specifically, a tool-class M is created in client-side program, refreshes how many times within each second for recording screen, that is, records The frame per second of the page.
S102, page statistics codes are added in the homepage of the page to be counted, enable first tool-class and record each page The frame per second in face, and bring the page statistics codes into the next page when entering next page;
Page statistics codes are added first in the homepage of the page to be counted, current page can be counted by running the page statistics codes Frame per second.
The frame per second that first tool-class M records each page is enabled, and counts the page when entering next page Code brings next page into, and the page statistics codes of so each page are just added in statistics, are avoided each Caused by code caused by the page has the page statistics codes of oneself is cumulative the problem of statistical difficulty.
S103, the second tool-class is created in the client, by second tool-class by the frame per second chart of record Mode is shown.
The second tool-class S is created in the client, the frame for first tool-class M being recorded by the second tool-class S Rate is graphically shown, and provides the user intuitively frame per second statistics.
In the embodiment of the present invention, the first tool-class is created in the client, for recording the frame per second of each page, is waiting to unite Count and page statistics codes are added in the homepage of the page, enable the frame per second that first tool-class records each page, and under entrance The page statistics codes are brought into next page during one page, avoid each page in real-time statistics frame per second from adding There is the code of oneself, cause after running multiple pages, count the slow problem of frame per second, also, second is created in the client Tool-class, the frame per second of record is graphically shown by second tool-class, forms visualization interface, be easy to use Intuitively by observing, analyzing frame per second, know the interim card point of the page, and targetedly solved, raising statistics frame per second in family Practicality.
Referring to Fig. 2, Fig. 2 is the schematic flow sheet of the page frame per second statistical method in second embodiment of the invention, the party Method can be applied in terminal, and this method comprises the following steps:
S201, the first tool-class is created in the client, for recording the frame per second of each page;
Specifically, a tool-class M is created in client-side program, refreshes how many times within each second for recording screen, that is, records The frame per second of the page.
S202, statistics codes are added in the homepage of the page to be counted, enable first tool-class and record each page Frame per second, and bring the statistics codes into the next page when entering next page;
Statistics codes are added in the homepage of the page to be counted first, the frame per second of current page can be counted by running the statistics codes.
The frame per second that first tool-class M records each page is enabled, and when entering next page by the statistics codes Bring next page into, the statistics codes of so each page are just added in statistics, and avoiding each page has Caused by code caused by the statistics codes of oneself is cumulative the problem of statistical difficulty.
The statistics codes are brought into the next page when entering next page, are specially:
Create the classification of view controller class, have in the classification into the page and the method for leaving the page, the classification be used for according to Following manner is that next page adds statistics codes:With Objective-C Runtime mechanism, the entrance during this is classified The first method of the page and the first method for leaving the page, replace respectively the second method that enters the page in page life cycle and The second method of the page is left, and the page statistics codes in the first tool-class are added in first method and second method.This The page statistics codes are added in next page by sample can at the end of each page life cycle.
The life cycle of the page refers generally to the process from requests for page to the unloading page.
Objective-C be expand C language Object-Oriented Programming Language, Objective-C Runtime mechanism functions It is very powerful, it can operationally obtain and change the various information of class, including acquisition methods list, attribute list, variable column Table, amending method, attribute, increase method, attribute etc..
S203, the second tool-class is created in the client, sat the frame per second of record with two dimension by second tool-class Mark on a map and be shown.
The second tool-class S is created in the client, the frame for first tool-class M being recorded by the second tool-class S Rate is shown with two-dimensional coordinate figure, wherein, the two-dimensional coordinate figure abscissa is the statistics moment, and ordinate is the frame per second of statistics, Provide the user intuitively frame per second statistics.
In the embodiment of the present invention, the first tool-class is created in the client, for recording the frame per second of each page, is waiting to unite Count and page statistics codes are added in the homepage of the page, enable the frame per second that first tool-class records each page, and under entrance The page statistics codes are brought into next page during one page, avoid each page in real-time statistics frame per second from adding There is the code of oneself, cause after running multiple pages, count the slow problem of frame per second, also, second is created in the client Tool-class, the frame per second of record is graphically shown by second tool-class, forms visualization interface, be easy to use Intuitively by observing, analyzing frame per second, know the interim card point of the page, and targetedly solved, raising statistics frame per second in family Practicality.
Refer to Fig. 3, Fig. 3 is the structural representation of page frame per second statistic device in third embodiment of the invention, the page Frame per second statistic device can be built in terminal, for performing the page frame per second statistical method in above-mentioned Fig. 1 ~ embodiment illustrated in fig. 2, The page frame per second statistic device includes:Creation module 301, statistical module 302 and display module 303.
Creation module 301, for creating the first tool-class in the client;
Statistical module 302, for adding page statistics codes in the homepage of the page to be counted, enable first tool-class record The frame per second of each page, and bring the page statistics codes into next page when entering next page;
Creation module 301, it is additionally operable to create the second tool-class in the client;
Display module 303, for being graphically shown the frame per second of record by second tool-class.
The details of the present embodiment not to the greatest extent, refers to description of the earlier figures 1 to embodiment illustrated in fig. 2, here is omitted.
In the embodiment of the present invention, the first tool-class is created in the client, for recording the frame per second of each page, is waiting to unite Count and page statistics codes are added in the homepage of the page, enable the frame per second that first tool-class records each page, and under entrance The page statistics codes are brought into next page during one page, avoid each page in real-time statistics frame per second from adding There is the code of oneself, cause after running multiple pages, count the slow problem of frame per second, also, second is created in the client Tool-class, the frame per second of record is graphically shown by second tool-class, forms visualization interface, be easy to use Intuitively by observing, analyzing frame per second, know the interim card point of the page, and targetedly solved, raising statistics frame per second in family Practicality.
Still refer to Fig. 3, page frame per second statistic device and the page frame in 3rd embodiment in fourth embodiment of the invention The difference of rate statistic device is:
Further, creation module 301, it is additionally operable to create the classification of view controller class;
Statistical module 302, the first method of the page is additionally operable to the first method into the page in classifying and leaves, respectively Replace and enter the second method of the page in page life cycle and leave the second method of the page, and in the first method and second The page statistics codes in first tool-class are added in method.
Statistical module 302, specifically for using Objective-C Runtime mechanism, enter the page during this is classified First method and leave the first method of the page, replace the second method for entering the page in page life cycle respectively and leave The second method of the page.
Display module 303, specifically for the frame per second of record is shown with two-dimensional coordinate figure by second tool-class, Wherein, abscissa is the moment in the two-dimensional coordinate figure, and ordinate is frame per second.
The details of the present embodiment not to the greatest extent, refers to the description of foregoing embodiments, here is omitted.
In the embodiment of the present invention, the first tool-class is created in the client, for recording the frame per second of each page, is waiting to unite Count and page statistics codes are added in the homepage of the page, enable the frame per second that first tool-class records each page, and under entrance The page statistics codes are brought into next page during one page, avoid each page in real-time statistics frame per second from adding There is the code of oneself, cause after running multiple pages, count the slow problem of frame per second, also, second is created in the client Tool-class, the frame per second of record is graphically shown by second tool-class, forms visualization interface, be easy to use Intuitively by observing, analyzing frame per second, know the interim card point of the page, and targetedly solved, raising statistics frame per second in family Practicality.
Referring to Fig. 4, Fig. 4 is terminal hardware structural representation provided in an embodiment of the present invention.
Terminal described in the present embodiment, including:
At least one input equipment 53 and at least one output equipment 54.
Above-mentioned memory 51, processor 52, input equipment 53 and output equipment 54, are connected by bus 55.
Wherein, input equipment 53 concretely camera, contact panel, physical button or mouse etc..Output equipment 54 concretely display screens.
Memory 51 can be high random access memory body(RAM, Random Access Memory)Memory, also may be used For non-labile memory(non-volatile memory), such as magnetic disk storage.Memory 51 is used for one group of storage can Configuration processor code, processor 52 couple with memory 51.
Further, the embodiment of the present invention additionally provides a kind of computer-readable recording medium, the computer-readable storage Medium can be disposed in the terminal in the various embodiments described above, and the computer-readable recording medium can be shown in earlier figures 4 Memory in embodiment.Computer program is stored with the computer-readable recording medium, when the program is executed by processor Realize earlier figures 1 to the page frame per second statistical method described in embodiment illustrated in fig. 2.Further, the computer can store Jie Matter can also be USB flash disk, mobile hard disk, read-only storage(ROM, Read-Only Memory), RAM, magnetic disc or CD etc. it is each Kind can be with the medium of store program codes.
It should be noted that each functional module in each embodiment of the present invention can be integrated in a processing module In or modules be individually physically present, can also two or more modules be integrated in a module.It is above-mentioned Integrated module can both be realized in the form of hardware, can also be realized in the form of software function module.
If the integrated module is realized in the form of software function module and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products Embody.
It should be noted that for foregoing each method embodiment, in order to which simplicity describes, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because According to the present invention, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to preferred embodiment, and involved action and module might not all be this hairs Necessary to bright.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
It is to page frame per second statistical method, device, terminal and computer-readable recording medium provided by the present invention above Description, for those skilled in the art, according to the thought of the embodiment of the present invention, in specific embodiments and applications There will be changes, to sum up, this specification content should not be construed as limiting the invention.

Claims (10)

1. a kind of page frame per second statistical method, it is characterised in that methods described includes:
The first tool-class is created in the client, for recording the frame per second of each page;
Page statistics codes are added in the homepage of the page to be counted, enable the frame that first tool-class records each page Rate, and bring the page statistics codes into next page when entering next page;
The second tool-class is created in the client, is graphically entered the frame per second of record by second tool-class Row displaying.
2. according to the method for claim 1, it is characterised in that described to count the page when entering next page Code, which brings next page into, to be included:
Create the classification of view controller class;By the first method in the classification into the page and leave the first party of the page Method, replace respectively in page life cycle and enter the second method of the page and leave the second method of the page, and described first The page statistics codes are added in method and second method.
3. according to the method for claim 2, it is characterised in that the first method into the page by the classification With the first method for leaving the page, the second method for entering the page in page life cycle is replaced respectively and leaves the second of the page Method, including:With Objective-C Runtime mechanism, by the first method in the classification into the page and leave The first method of the page, replace respectively in page life cycle and enter the second method of the page and leave the second method of the page.
4. according to the method described in claim any one of 1-3, it is characterised in that described to be recorded by second tool-class Frame per second be graphically shown including:
The frame per second of record is shown with two-dimensional coordinate figure by second tool-class, wherein, in the two-dimensional coordinate figure Abscissa is the moment, and ordinate is frame per second.
5. a kind of page frame per second statistic device, it is characterised in that described device includes:
Creation module, for creating the first tool-class in the client;
Statistical module, for adding page statistics codes in the homepage of the page to be counted, enable the first tool-class record The frame per second of each page, and bring the page statistics codes into next page when entering next page;
The creation module, it is additionally operable to create the second tool-class in the client;
Display module, for being graphically shown the frame per second of record by second tool-class.
6. device according to claim 5, it is characterised in that
The creation module, it is additionally operable to create the classification of view controller class;
The statistical module, the first method of the page is additionally operable to the first method in the classification into the page and leaves, Replace respectively in page life cycle and enter the second method of the page and leave the second method of the page, and in the first method With the page statistics codes in first tool-class are added in second method.
7. device according to claim 6, it is characterised in that
The statistical module, specifically for using Objective-C Runtime mechanism, by the classification into the page First method and the first method for leaving the page, the second method for entering the page in page life cycle is replaced respectively and leaves page The second method in face.
8. according to the device described in claim any one of 5-7, it is characterised in that including:
The display module, specifically for the frame per second of record is shown with two-dimensional coordinate figure by second tool-class, Wherein, abscissa is the moment in the two-dimensional coordinate figure, and ordinate is frame per second.
9. a kind of terminal, including:Memory, processor and it is stored on the memory and can runs on the processor Computer program, it is characterised in that described in the computing device during computer program, realize as any in claim 1-4 Page frame per second statistical method described in.
10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program When being executed by processor, the page frame per second statistical method as any one of claim 1-4 is realized.
CN201711142495.1A 2017-11-17 2017-11-17 Page frame per second statistical method, device, terminal and computer-readable recording medium Pending CN107894946A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711142495.1A CN107894946A (en) 2017-11-17 2017-11-17 Page frame per second statistical method, device, terminal and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711142495.1A CN107894946A (en) 2017-11-17 2017-11-17 Page frame per second statistical method, device, terminal and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107894946A true CN107894946A (en) 2018-04-10

Family

ID=61805362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711142495.1A Pending CN107894946A (en) 2017-11-17 2017-11-17 Page frame per second statistical method, device, terminal and computer-readable recording medium

Country Status (1)

Country Link
CN (1) CN107894946A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473011A (en) * 2013-09-03 2013-12-25 小米科技有限责任公司 Mobile terminal, and performance detecting method and performance detecting device for mobile terminal
US20160110236A1 (en) * 2011-12-06 2016-04-21 Introspex, Inc. Analytics data collection with low integration cost for dynamic message passing systems
CN106371786A (en) * 2016-08-31 2017-02-01 福建省天奕网络科技有限公司 Dynamic frame rate acquisition method and system
CN106776259A (en) * 2017-01-10 2017-05-31 广东欧珀移动通信有限公司 A kind of mobile terminal frame rate detection method, device and mobile terminal
CN107133077A (en) * 2016-02-29 2017-09-05 深圳秀豹科技有限公司 A kind of page end calls the method and device of locally applied function

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160110236A1 (en) * 2011-12-06 2016-04-21 Introspex, Inc. Analytics data collection with low integration cost for dynamic message passing systems
CN103473011A (en) * 2013-09-03 2013-12-25 小米科技有限责任公司 Mobile terminal, and performance detecting method and performance detecting device for mobile terminal
CN107133077A (en) * 2016-02-29 2017-09-05 深圳秀豹科技有限公司 A kind of page end calls the method and device of locally applied function
CN106371786A (en) * 2016-08-31 2017-02-01 福建省天奕网络科技有限公司 Dynamic frame rate acquisition method and system
CN106776259A (en) * 2017-01-10 2017-05-31 广东欧珀移动通信有限公司 A kind of mobile terminal frame rate detection method, device and mobile terminal

Similar Documents

Publication Publication Date Title
EP3038002B1 (en) Interactive user interfaces
EP2946333B1 (en) Efficient query processing using histograms in a columnar database
US10410258B2 (en) Graphical user interface for high volume data analytics
US10599313B2 (en) System for high volume data analytic integration and channel-independent advertisement generation
Halavais Bigger sociological imaginations: Framing big social data theory and methods
US8423909B2 (en) System and method for an interactive filter
US20140324448A1 (en) Business analytics package with key performance indicators for health care providers
US20190244240A1 (en) Statistical marketing attribution correlation
US9201572B2 (en) A/B test configuration environment
US9424237B2 (en) Flexible analytics-driven webpage design and optimization
US20170118093A1 (en) Providing visualizations of event sequence data
US8823710B2 (en) Large scale data visualization with interactive chart
DE112011101203T5 (en) Portable electronic device and method for its control
Acuna et al. Predicting scientific success
Heymann et al. Turkalytics: analytics for human computation
US20150073866A1 (en) Data visualization and user interface for monitoring resource allocation to customers
TW201824017A (en) Virtual resource allocation method, client and server
US20160026730A1 (en) Html5-based document format with parts architecture
US20110066973A1 (en) Rendering System Log Data
US20140040009A1 (en) Providing and filtering keyword stacks
CN105827510A (en) Push message processing method for mobile terminal, and mobile terminal
CN104238897B (en) A kind of menu item display methods and device
Uddin et al. Mapping the computer science research in SAARC countries
US20100049686A1 (en) Methods and apparatus for visual recommendation based on user behavior
JP6476308B2 (en) How to stop serving retargeting ads

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