CN107315623A - A kind of method and apparatus for reporting statistics - Google Patents

A kind of method and apparatus for reporting statistics Download PDF

Info

Publication number
CN107315623A
CN107315623A CN201710476218.8A CN201710476218A CN107315623A CN 107315623 A CN107315623 A CN 107315623A CN 201710476218 A CN201710476218 A CN 201710476218A CN 107315623 A CN107315623 A CN 107315623A
Authority
CN
China
Prior art keywords
fields
field
operating statistic
statistic data
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.)
Granted
Application number
CN201710476218.8A
Other languages
Chinese (zh)
Other versions
CN107315623B (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.)
Guangzhou Cubesili Information Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network Technology 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 Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201710476218.8A priority Critical patent/CN107315623B/en
Publication of CN107315623A publication Critical patent/CN107315623A/en
Application granted granted Critical
Publication of CN107315623B publication Critical patent/CN107315623B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/443Optimisation
    • G06F8/4434Reducing the memory space required by the program code
    • 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/3452Performance evaluation by statistical analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Evolutionary Biology (AREA)
  • Computer Hardware Design (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Quality & Reliability (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Software Systems (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a kind of method and apparatus for reporting statistics, belong to field of computer technology.Methods described includes:In the running of destination application, obtain operating statistic data, wherein, the operating statistic data include the one or more in the quality class data of the behavior class data, the performance class data of the destination application and the destination application of the user of the destination application;According to Type Length numerical value TLV coded system, the operating statistic data are encoded;The operating statistic data after coding are sent to server.Using the present invention, storage resource can be saved.

Description

A kind of method and apparatus for reporting statistics
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method and apparatus for reporting statistics.
Background technology
With the development of computer technology and network technology, the species of application program is more and more, in order that user makes With the experience during application program more preferably, technical staff can set data statistics process in the application, to count use Family is using the operating statistic data during application program, behavior class data, the performance class data of such as user, then data Statistics process sends operating statistic data to server, and technical staff can use operating statistic data, to application program Function is improved.
In the prior art, operating statistic data are being sent to before server, it is necessary to be compiled to operating statistic data Code, generally for different types of operating statistic data, has different coded systems, corresponding server is for different types of Operating statistic data, it is also desirable to which different decoding processes are decoded.So, server and terminal need to store a variety of coding staffs Formula, takes more storage resources.
The content of the invention
In order to solve problem of the prior art, the embodiments of the invention provide a kind of method and dress for reporting statistics Put.The technical scheme is as follows:
First aspect includes there is provided a kind of method for reporting statistics, methods described:
In the running of destination application, operating statistic data are obtained, wherein, the operating statistic data include Behavior class data, the performance class data of the destination application and the intended application of the user of the destination application One or more in the quality class data of program;
According to Type Length numerical value TLV coded system, the operating statistic data are encoded;
The operating statistic data after coding are sent to server.
Optionally, the field of the operating statistic data after the coding is uid fields, cType fields, dwBufferCode Field, cVerLen fields, strVerison fields, cMachineCodeLen fields, strMachineCode fields and The continuation field of stData fields composition, wherein, uid fields are the logon account of the destination application, and cType fields are Type of service, dwBufferCode fields are reserved field, and cVerLen fields are the word of the version number of the destination application Joint number, strVerison fields are the version number, and cMachineCodeLen fields are whole for the login of the destination application The byte number of the machine code at end, strMachineCode fields are the machine code, and stData fields are custom protocol body portion Point, for carrying the operating statistic data.
Optionally, stData fields are wFieldNum fields, wLen fields and stField1+stField2+stField3 + ... the continuation field of stFieldN fields composition, wherein, wFieldNum fields are stField number, and wLen fields are The total bytes of stField1+stField2+stField3+ ... stFieldN fields, stField1+stField2+ StField3+ ... stFieldN fields are used to carry operating statistic data.
So, it is possible to reduce terminal and the interaction times of server.
Optionally, each stField fields are dwRID (T) field, wLen (L) fields and stVal (V) field composition Continuation field, dwRID (T) field is the traffic item in type of service, and wLen (L) field is the byte number of stVal (V) field, StVal (V) field is used to carry operating statistic data.
So, it is possible to reduce terminal and the interaction times of server.
Optionally, stVal (V) field is cSubType (t) fields, cLen (l) fields and wCount (v) fields composition Continuation field, cSubType (t) fields are the subservice in traffic item, and cLen (l) fields are the byte of wCount (v) fields Number, wCount (v) fields are used to carry operating statistic data.
So, the autgmentability for uploading statistics can be improved.
Optionally, dwRID (T) fields are represented using 4 byte DWORD, and wCount (v) fields use byte byte tables Show.
Second aspect includes there is provided a kind of device for reporting statistics, described device:
Acquisition module, in the running of destination application, obtaining operating statistic data, wherein, the fortune Row statistics includes behavior class data, the performance class data of the destination application of the user of the destination application With the one or more in the quality class data of the destination application;
The operating statistic data, for the coded system according to Type Length numerical value TLV, are compiled by coding module Code;
Sending module, for sending the operating statistic data after coding to server.
Optionally, the field of the operating statistic data after the coding is uid fields, cType fields, dwBufferCode Field, cVerLen fields, strVerison fields, cMachineCodeLen fields, strMachineCode fields and The continuation field of stData fields composition, wherein, uid fields are the logon account of the destination application, and cType fields are Type of service, dwBufferCode fields are reserved field, and cVerLen fields are the word of the version number of the destination application Joint number, strVerison fields are the version number, and cMachineCodeLen fields are whole for the login of the destination application The byte number of the machine code at end, strMachineCode fields are the machine code, and stData fields are custom protocol body portion Point, for carrying the operating statistic data.
Optionally, stData fields are wFieldNum fields, wLen fields and stField1+stField2+stField3 + ... the continuation field of stFieldN fields composition, wherein, wFieldNum fields are stField number, and wLen fields are The total bytes of stField1+stField2+stField3+ ... stFieldN fields, stField1+stField2+ StField3+ ... stFieldN fields are used to carry operating statistic data.
Optionally, each stField fields are dwRID (T) field, wLen (L) fields and stVal (V) field composition Continuation field, dwRID (T) field is the traffic item in type of service, and wLen (L) field is the byte number of stVal (V) field, StVal (V) field is used to carry operating statistic data.
Optionally, stVal (V) field is cSubType (t) fields, cLen (l) fields and wCount (v) fields composition Continuation field, cSubType (t) fields are the subservice in traffic item, and cLen (l) fields are the byte of wCount (v) fields Number, wCount (v) fields are used to carry operating statistic data.
Optionally, dwRID (T) fields are represented using 4 byte DWORD, and wCount (v) fields use byte byte tables Show.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
In the embodiment of the present invention, in the running of destination application, operating statistic data are obtained, it is long according to type Operating statistic data are encoded by number of degrees value TLV coded system, and the operating statistic data after coding are sent to server. So, for operating statistic data encoded according to TLV coded system, terminal can only store a kind of coding staff Formula, corresponding server can also only store a kind of coded system, so as to save storage resource.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of flow chart of method for reporting statistics provided in an embodiment of the present invention;
Fig. 2 is a kind of system diagram for reporting statistics provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of device for reporting statistics provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of terminal provided in an embodiment of the present invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
The embodiments of the invention provide a kind of method for reporting statistics, the executive agent of this method can be terminal. Wherein, terminal can be mobile phone, tablet personal computer etc., and destination application is provided with terminal, and destination application is answered to be all With any application program in program, processor, memory and transceiver etc. can be provided with the terminal, processor can be used In the processing for reporting statistics process, memory can be used for reporting the data needed during statistics and generation Data, transceiver can be used for receiving and send message etc..The input-output equipment such as screen are also provided with terminal, are shielded Curtain is displayed for interface of destination application etc..In the present embodiment so that terminal is mobile phone as an example, the detailed of scheme is carried out Description, other situations are similar therewith, and the present embodiment is not repeated.
As shown in figure 1, the handling process of this method can include the steps:
Step 101, in the running of destination application, operating statistic data are obtained.
Wherein, technical staff can be classified according to the type of service of operating statistic data, such as can be by operating statistic Data are divided into the behavior class data, performance class data and quality class data of user, and the behavior class data of user can be click on should With the data of the option of program, use duration of application program etc., performance class data can be power consumption of application program etc., matter It can be packet loss of VoP etc. to measure class data, and the operating statistic data mentioned in the embodiment of the present invention should including target In quality class data with the behavior class data, the performance class data of destination application and destination application of the user of program One or more.Destination application is any application program in all application programs, such as live application program.
In force, technical staff can set data statistics process in destination application, work as destination application During unlatching, destination application can use the mode turn-on data of interface interchange to count process, as shown in Fig. 2 should in target With in the running of program, user often clicks on an option in destination application, and data statistics process can record one The secondary click event for clicking on the option, data statistics process can record the power consumption of every 10 minutes destination applications, may be used also Packet loss to record each user's transmission data etc..
It should be noted that for the operating statistic data of different service types, technical staff can set difference respectively Data statistics process, a data statistics process can also be only set.
Step 102, according to Type Length numerical value TLV coded system, operating statistic data are encoded.
In force, terminal is after the data statistics process in using destination application gets operating statistic data, As shown in Fig. 2 TLV (type, length, value, Type Length numerical value) coded system can be used to be encoded, obtain Operating statistic data after coding.
Optionally, the field of the operating statistic data after coding is uid fields, cType fields, dwBufferCode words Section, cVerLen fields, strVerison fields, cMachineCodeLen fields, strMachineCode fields and stData The continuation field of field composition, wherein, uid fields are the logon account of destination application, and cType fields are type of service, DwBufferCode fields are reserved field, and cVerLen fields are the byte number of the version number of destination application, StrVerison fields are version number, and cMachineCodeLen fields are the machine code of the registration terminal of destination application Byte number, strMachineCode fields are machine code, and stData fields are custom protocol body portion, for carrying operation system Count.
In force, technical staff has prestored TLV coded system, the inclusion form of the coded system in the terminal For uid field+cType field+dwBufferCode field+cVerLen field+strVerison fields+ CMachineCodeLen field+strMachineCode field+stData fields, the content that each field terminal can be filled is not Equally.
Uid fields are the logon account of destination application, and the logon account does not refer to User logs in destination application User name, but the unique mark of the user name of server correspondence User logs in destination application.
CType fields are type of service, can be behavior class, performance class and quality class of user etc..
DwBufferCode fields are reserved field, in situation about being changed in view of subsequent protocol or type of service extends, Present default value can be 0, follow-up if it is intended to extension, and destination application can hold consultation other values with server.
CVerLen fields are the length of the version number of destination application, i.e. byte number.
StrVerison fields are the version number of destination application, so, can be counted for same application The running situation information of the application program of different editions number.
CMachineCodeLen fields are the length of the machine code of the registration terminal of destination application, i.e. byte number.
StrMachineCode fields are the machine code of the registration terminal of destination application, and machine code can be logged on end The unique mark at end, can be MAC (Media Access Control, media access control) address.So, it can count Running situation information of the different types of terminals for same application.
It should be noted that the present embodiments relate to machine code be MAC Address, it is every can be used for identify terminal Uniqueness mark, can serve as machine code, the embodiment of the present invention is not limited.
StData fields are custom protocol body portion, can be used for carrying operating statistic data.
Optionally, stData fields are wFieldNum fields, wLen fields and stField1+stField2+stField3 + ... the continuation field of stFieldN fields composition, wherein, wFieldNum fields are stField number, and wLen fields are The total bytes of stField1+stField2+stField3+ ... stFieldN fields, stField1+stField2+ StField3+ ... stFieldN fields are used to carry operating statistic data.
In force, stData fields can be wFieldNum fields, wLen fields and stField1+stField2+ The continuation field of stField3+ ... stFieldN fields composition, i.e. stData=wFieldNum+wLen+stField1+ stField2+...+stFieldN.WFieldNum represents stField number, herein due to there is stFieldN, so WFieldNum is N, indicates N number of stField.WLen is stField1+stField2+...+stFieldN total bytes, can To be represented using following formula:WLen=Len (stField1+stField2+...+stFieldN).stField1+ StField2+...+stFieldN fields can be used for carrying operating statistic data.
It should be noted that the number of stField fields can be determined based on the data volume of operating statistic data, data Amount than it is larger when, N is just than larger, and data volume is smaller, and N is just smaller.
It should also be noted that, an a kind of type of service of cType fields correspondence, under a kind of type of service, stData The traffic item for multiple stField fields that field includes can be the same or different, the embodiment of the present invention Do not limit.
By above-mentioned processing, because the traffic item of multiple stField fields can be with different, so for same service class The operating statistic data of type different business can be once sent to server, without repeatedly transmission, so as to reduce The interaction times of terminal and server, improve the performance of terminal.
Optionally, each stField fields are dwRID (T) field, wLen (L) fields and stVal (V) field composition Continuation field, dwRID (T) field is the traffic item in type of service, and wLen (L) field is the byte number of stVal (V) field, StVal (V) field is used to carry operating statistic data.
In force, N number of stField is disclosed, N can be determined based on the data volume of operating statistic data, often Individual stField fields are the continuation field of dwRID (T) field, wLen (L) fields and stVal (V) field composition, i.e. stField =dwRID (T)+wLen (L)+stVal (V).
DwRID (T) field is the traffic item in type of service, for example, type of service is the behavior class of user, traffic item can Think click item (number of times for such as clicking on some option), when advantage (such as use duration), logging status item (it is such as stealthy, Line etc.) etc..Type of service is performance class, and traffic item is power consumption, interim card number of times etc., and type of service is quality class, and traffic item is Packet loss (ratio of every 100 data-bag losts) etc..
WLen (L) is stVal (V) length, i.e. byte number.
StVal (V) is used for the operating statistic data for carrying the traffic item of dwRID (T) expressions.For example, type of service is use The behavior class at family, traffic item is clicks on item, and operating statistic data are then number of clicks.
Optionally, because sometimes, in order to obtain more detailed operating statistic data, each traffic item can also include son Traffic item, corresponding stVal (V) field is the company of cSubType (t) fields, cLen (l) fields and wCount (v) fields composition Continuous field, cSubType (t) fields are the subservice in traffic item, and cLen (l) fields are the byte of wCount (v) fields Number, wCount (v) fields are used to carry operating statistic data.
In force, stVal (V) field is cSubType (t) fields, cLen (l) fields and wCount (v) fields composition Continuation field, i.e. stVal (V)=cSubType (t)+cLen (l)+wCount (v).
CSubType (t) fields are the subservice in traffic item, for example, destination application is live application program, Type of service be user behavior class, traffic item can for click on item (number of times for such as clicking on some option), when advantage (such as make With duration etc.) etc., for traffic item to click on item, subservice can be number of clicks, the direct broadcasting room for entering direct broadcasting room option Give a present number of clicks of thing option etc., advantage when being for traffic item, subservice can be when direct broadcasting room viewing is live Length, between the use duration of destination application, the page redirect duration etc..
CLen (l) fields are the length of wCount (v) fields, i.e. byte number, and so, server can determine operating statistic The byte number of data.
WCount (v) fields are used for the subservice operating statistic data for carrying cSubType (t) expressions, for example, target Application program is live application program, and type of service is the behavior class of user, and traffic item can be click item, subservice Xiang Weizhi Given a present between broadcasting the number of clicks of thing option, operating statistic data are number of clicks.
It should be noted that stVal (V) number can also be one or multiple in a stField, this Inventive embodiments are not limited.
Optionally, dwRID (T) fields are represented using 4 byte DWORD, and wCount (v) fields use byte byte tables Show.
In force, because traffic item typically compares many, so dwRID (T) field is represented using DWORD (4 bytes), DWORD is 4 bytes, and a byte is 8, so equivalent to there is 32, every use 0 or 1 is represented, that is, traffic item There can be 2 32 powers, i.e., can at most represent 2 32 power traffic items, calculating almost has 4,000,000,000, substantially The number of the traffic item of an application journey needs statistics can be met.
Meanwhile, in order to obtain more detailed operating statistic data, each traffic item can also include subservice, subservice Item can use byte to represent, a byte is 8, and every use 0 or 1 is represented, equivalent to 8 times that business subitem can have 2 The sub- traffic item in side, i.e., each business is most multiple including the sub- traffic item of 28 powers.
Step 103, the operating statistic data after coding are sent to server.
In force, as shown in Fig. 2 terminal encoded after operating statistic data, can to server send encode Operating statistic data afterwards, server is received after the operating statistic data of terminal transmission, can be decoded, because terminal makes With unified coded system, equally, server can also use unified decoding process to be decoded, so, can also save The storage resource of server.
In addition, server can also send operating statistic data the terminal used to technical staff, technical staff can be with By checking the operating statistic data of destination application, the function to destination application is improved, and can so make mesh The use for marking application program is more smooth.
In the embodiment of the present invention, in the running of destination application, operating statistic data are obtained, it is long according to type Operating statistic data are encoded by number of degrees value TLV coded system, and the operating statistic data after coding are sent to server. So, for operating statistic data encoded according to TLV coded system, terminal can only store a kind of coding staff Formula, corresponding server can also only store a kind of coded system, so as to save storage resource.
Based on identical technical concept, the embodiment of the present invention additionally provides a kind of device for reporting statistics, such as Fig. 3 institutes Show, the device includes:
Acquisition module 310, in the running of destination application, obtaining operating statistic data, wherein, it is described Operating statistic data include the behavior class data of the user of the destination application, the performance class number of the destination application According to the one or more in the quality class data with the destination application;
The operating statistic data, for the coded system according to Type Length numerical value TLV, are carried out by coding module 320 Coding;
Sending module 330, for sending the operating statistic data after coding to server.
Optionally, the field of the operating statistic data after the coding is uid fields, cType fields, dwBufferCode Field, cVerLen fields, strVerison fields, cMachineCodeLen fields, strMachineCode fields and The continuation field of stData fields composition, wherein, uid fields are the logon account of the destination application, and cType fields are Type of service, dwBufferCode fields are reserved field, and cVerLen fields are the word of the version number of the destination application Joint number, strVerison fields are the version number, and cMachineCodeLen fields are whole for the login of the destination application The byte number of the machine code at end, strMachineCode fields are the machine code, and stData fields are custom protocol body portion Point, for carrying the operating statistic data.
Optionally, stData fields are wFieldNum fields, wLen fields and stField1+stField2+stField3 + ... the continuation field of stFieldN fields composition, wherein, wFieldNum fields are stField number, and wLen fields are The total bytes of stField1+stField2+stField3+ ... stFieldN fields, stField1+stField2+ StField3+ ... stFieldN fields are used to carry operating statistic data.
Optionally, each stField fields are dwRID (T) field, wLen (L) fields and stVal (V) field composition Continuation field, dwRID (T) field is the traffic item in type of service, and wLen (L) field is the byte number of stVal (V) field, StVal (V) field is used to carry operating statistic data.
Optionally, stVal (V) field is cSubType (t) fields, cLen (l) fields and wCount (v) fields composition Continuation field, cSubType (t) fields are the subservice in traffic item, and cLen (l) fields are the byte of wCount (v) fields Number, wCount (v) fields are used to carry operating statistic data.
Optionally, dwRID (T) fields are represented using 4 byte DWORD, and wCount (v) fields use byte byte tables Show.
In the embodiment of the present invention, in the running of destination application, operating statistic data are obtained, it is long according to type Operating statistic data are encoded by number of degrees value TLV coded system, and the operating statistic data after coding are sent to server. So, for operating statistic data encoded according to TLV coded system, terminal can only store a kind of coding staff Formula, corresponding server can also only store a kind of coded system, so as to save storage resource.
It should be noted that:What above-described embodiment was provided reports the device of statistics when recommending song, only with above-mentioned The division progress of each functional module is for example, in practical application, as needed can distribute above-mentioned functions by different Functional module complete, i.e., the internal structure of device is divided into different functional modules, with complete it is described above whole or Partial function.In addition, reporting of providing of above-described embodiment and reports the embodiment of the method for statistics to belong at the device of statistics In same design, it implements process and refers to embodiment of the method, repeats no more here.
Fig. 4 is refer to, it illustrates the structural representation of the terminal involved by the embodiment of the present invention, the terminal can be used for The method for reporting statistics provided in above-described embodiment is provided.Specifically:
Terminal 400 can include RF (Radio Frequency, radio frequency) circuit 110, include one or more meters The memory 120 of calculation machine readable storage medium storing program for executing, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (wireless fidelity, Wireless Fidelity) module 170, include one or the processing of more than one processing core The part such as device 180 and power supply 190.It will be understood by those skilled in the art that the terminal structure shown in Fig. 4 is not constituted pair The restriction of terminal, can include than illustrating more or less parts, either combine some parts or different part cloth Put.Wherein:
RF circuits 110 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information is received, transfer to one or more than one processor 180 is handled;In addition, being sent to up data are related to Base station.Generally, RF circuits 110 include but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, use Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex Device etc..In addition, RF circuits 110 can also be communicated by radio communication with network and other equipment.The radio communication can make With any communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc..
Memory 120 can be used for storage software program and module, and processor 180 is stored in memory 120 by operation Software program and module, so as to perform various function application and data processing.Memory 120 can mainly include storage journey Sequence area and storage data field, wherein, the application program (ratio that storing program area can be needed for storage program area, at least one function Such as sound-playing function, image player function) etc.;Storage data field can be stored uses created number according to terminal 400 According to (such as voice data, phone directory etc.) etc..In addition, memory 120 can include high-speed random access memory, it can also wrap Include nonvolatile memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts. Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input block 130 to memory 120 access.
Input block 130 can be used for the numeral or character information for receiving input, and generation to be set with user and function The relevant keyboard of control, mouse, action bars, optics or the input of trace ball signal.Specifically, input block 130 may include to touch Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, collect and use (such as user is using any suitable objects such as finger, stylus or annex in touch-sensitive table for touch operation of the family on or near it Operation on face 131 or near touch sensitive surface 131), and corresponding attachment means are driven according to formula set in advance.It is optional , touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection means, and is converted into contact coordinate, then gives processor 180, and can reception processing device 180 The order sent simultaneously is performed.Furthermore, it is possible to using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch sensitive surface 131.Except touch sensitive surface 131, input block 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One or more in trace ball, mouse, action bars etc..
Display unit 140 can be used for the information that is inputted by user of display or the information for being supplied to user and terminal 400 Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination. Display unit 140 may include display panel 141, optionally, can use LCD (Liquid Crystal Display, liquid crystal Show device), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel 141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detects touching on or near it Touch after operation, send processor 180 to determine the type of touch event, with type of the preprocessor 180 according to touch event Corresponding visual output is provided on display panel 141.Although in Fig. 4, touch sensitive surface 131 and display panel 141 are conducts Two independent parts are inputted and input function to realize, but in some embodiments it is possible to by touch sensitive surface 131 with showing Panel 141 is integrated and realizes input and output function.
Terminal 400 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 141, and proximity transducer can close display when terminal 400 is moved in one's ear Panel 141 and/or backlight.As one kind of motion sensor, gravity accelerometer can detect in all directions (generally Three axles) acceleration size, size and the direction of gravity are can detect that when static, available for identification mobile phone posture application (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely The other sensors such as the gyroscope, barometer, hygrometer, thermometer, the infrared ray sensor that can also configure in terminal 400, herein Repeat no more.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the COBBAIF between user and terminal 400.Audio Electric signal after the voice data received conversion can be transferred to loudspeaker 161, sound is converted to by loudspeaker 161 by circuit 160 Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after voicefrequency circuit 160 is received Voice data is converted to, then after voice data output processor 180 is handled, through RF circuits 110 to be sent to such as another end End, or voice data is exported to memory 120 so as to further processing.Voicefrequency circuit 160 is also possible that earphone jack, To provide the communication of peripheral hardware earphone and terminal 400.
WiFi belongs to short range wireless transmission technology, and terminal 400 can help user's transceiver electronicses by WiFi module 170 Mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 4 is shown WiFi module 170, but it is understood that, it is simultaneously not belonging to must be configured into for terminal 400, can exist as needed completely Do not change in the essential scope of invention and omit.
Processor 180 is the control centre of terminal 400, utilizes various interfaces and each portion of connection whole mobile phone Point, by operation or perform and be stored in software program and/or module in memory 120, and call and be stored in memory 120 Interior data, perform the various functions and processing data of terminal 400, so as to carry out integral monitoring to mobile phone.Optionally, processor 180 may include one or more processing cores;It is preferred that, processor 180 can integrated application processor and modem processor, Wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor mainly handles nothing Line communicates.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Terminal 400 also includes the power supply 190 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 180 are logically contiguous, so as to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 190 can also include one or more direct current or AC power, recharging system, power supply event The random component such as barrier detection circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, terminal 400 can also include camera, bluetooth module etc., will not be repeated here.Specifically in this reality Apply in example, the display unit of terminal 400 is touch-screen display, and terminal 400 also includes memory, and one or one More than program, one of them or more than one program storage in memory, and be configured to by one or one with Upper computing device states one or more than one program bag contains the instruction for being used for being operated below:
In the running of destination application, operating statistic data are obtained, wherein, the operating statistic data include Behavior class data, the performance class data of the destination application and the intended application of the user of the destination application One or more in the quality class data of program;
According to Type Length numerical value TLV coded system, the operating statistic data are encoded;
The operating statistic data after coding are sent to server.
Optionally, the field of the operating statistic data after the coding is uid fields, cType fields, dwBufferCode Field, cVerLen fields, strVerison fields, cMachineCodeLen fields, strMachineCode fields and The continuation field of stData fields composition, wherein, uid fields are the logon account of the destination application, and cType fields are Type of service, dwBufferCode fields are reserved field, and cVerLen fields are the word of the version number of the destination application Joint number, strVerison fields are the version number, and cMachineCodeLen fields are whole for the login of the destination application The byte number of the machine code at end, strMachineCode fields are the machine code, and stData fields are custom protocol body portion Point, for carrying the operating statistic data.
Optionally, stData fields are wFieldNum fields, wLen fields and stField1+stField2+stField3 + ... the continuation field of stFieldN fields composition, wherein, wFieldNum fields are stField number, and wLen fields are The total bytes of stField1+stField2+stField3+ ... stFieldN fields, stField1+stField2+ StField3+ ... stFieldN fields are used to carry operating statistic data.
Optionally, each stField fields are dwRID (T) field, wLen (L) fields and stVal (V) field composition Continuation field, dwRID (T) field is the traffic item in type of service, and wLen (L) field is the byte number of stVal (V) field, StVal (V) field is used to carry operating statistic data.
Optionally, stVal (V) field is cSubType (t) fields, cLen (l) fields and wCount (v) fields composition Continuation field, cSubType (t) fields are the subservice in traffic item, and cLen (l) fields are the byte of wCount (v) fields Number, wCount (v) fields are used to carry operating statistic data.
Optionally, dwRID (T) fields are represented using 4 byte DWORD, and wCount (v) fields use byte byte tables Show.
In the embodiment of the present invention, in the running of destination application, operating statistic data are obtained, it is long according to type Operating statistic data are encoded by number of degrees value TLV coded system, and the operating statistic data after coding are sent to server. So, for operating statistic data encoded according to TLV coded system, terminal can only store a kind of coding staff Formula, corresponding server can also only store a kind of coded system, so as to save storage resource.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware To complete, the hardware of correlation can also be instructed to complete by program, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.

Claims (10)

1. a kind of method for reporting statistics, it is characterised in that methods described includes:
In the running of destination application, operating statistic data are obtained, wherein, the operating statistic data include described Behavior class data, the performance class data of the destination application and the destination application of the user of destination application Quality class data in one or more;
According to Type Length numerical value TLV coded system, the operating statistic data are encoded;
The operating statistic data after coding are sent to server.
2. according to the method described in claim 1, it is characterised in that the field of the operating statistic data after the coding is uid Field, cType fields, dwBufferCode fields, cVerLen fields, strVerison fields, cMachineCodeLen words The continuation field of section, strMachineCode fields and stData fields composition, wherein, uid fields are the intended application journey The logon account of sequence, cType fields are type of service, and dwBufferCode fields are reserved field, and cVerLen fields are described The byte number of the version number of destination application, strVerison fields are the version number, and cMachineCodeLen fields are The byte number of the machine code of the registration terminal of the destination application, strMachineCode fields are the machine code, StData fields are custom protocol body portion, for carrying the operating statistic data.
3. method according to claim 2, it is characterised in that stData fields be wFieldNum fields, wLen fields and The continuation field of stField1+stField2+stField3+ ... stFieldN fields composition, wherein, wFieldNum fields For stField number, wLen fields are the total byte of stField1+stField2+stField3+ ... stFieldN fields Number, stField1+stField2+stField3+ ... stFieldN fields are used to carry operating statistic data.
4. method according to claim 3, it is characterised in that each stField fields are dwRID (T) field, wLen (L) continuation field of field and stVal (V) field composition, dwRID (T) field is the traffic item in type of service, wLen (L) Field is the byte number of stVal (V) field, and stVal (V) field is used to carry operating statistic data.
5. method according to claim 4, it is characterised in that stVal (V) field is cSubType (t) fields, cLen (l) continuation field of field and wCount (v) fields composition, cSubType (t) fields are the subservice in traffic item, cLen (l) field is the byte number of wCount (v) fields, and wCount (v) fields are used to carry operating statistic data.
6. a kind of device for reporting statistics, it is characterised in that described device includes:
Acquisition module, in the running of destination application, obtaining operating statistic data, wherein, the operation system Count the behavior class data, the performance class data of the destination application and institute of the user including the destination application State the one or more in the quality class data of destination application;
The operating statistic data, for the coded system according to Type Length numerical value TLV, are encoded by coding module;
Sending module, for sending the operating statistic data after coding to server.
7. device according to claim 6, it is characterised in that the field of the operating statistic data after the coding is uid Field, cType fields, dwBufferCode fields, cVerLen fields, strVerison fields, cMachineCodeLen words The continuation field of section, strMachineCode fields and stData fields composition, wherein, uid fields are the intended application journey The logon account of sequence, cType fields are type of service, and dwBufferCode fields are reserved field, and cVerLen fields are described The byte number of the version number of destination application, strVerison fields are the version number, and cMachineCodeLen fields are The byte number of the machine code of the registration terminal of the destination application, strMachineCode fields are the machine code, StData fields are custom protocol body portion, for carrying the operating statistic data.
8. device according to claim 7, it is characterised in that stData fields be wFieldNum fields, wLen fields and The continuation field of stField1+stField2+stField3+ ... stFieldN fields composition, wherein, wFieldNum fields For stField number, wLen fields are the total byte of stField1+stField2+stField3+ ... stFieldN fields Number, stField1+stField2+stField3+ ... stFieldN fields are used to carry operating statistic data.
9. device according to claim 8, it is characterised in that each stField fields are dwRID (T) field, wLen (L) continuation field of field and stVal (V) field composition, dwRID (T) field is the traffic item in type of service, wLen (L) Field is the byte number of stVal (V) field, and stVal (V) field is used to carry operating statistic data.
10. device according to claim 9, it is characterised in that stVal (V) field is cSubType (t) fields, cLen (l) continuation field of field and wCount (v) fields composition, cSubType (t) fields are the subservice in traffic item, cLen (l) field is the byte number of wCount (v) fields, and wCount (v) fields are used to carry operating statistic data.
CN201710476218.8A 2017-06-21 2017-06-21 Method and device for reporting statistical data Active CN107315623B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710476218.8A CN107315623B (en) 2017-06-21 2017-06-21 Method and device for reporting statistical data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710476218.8A CN107315623B (en) 2017-06-21 2017-06-21 Method and device for reporting statistical data

Publications (2)

Publication Number Publication Date
CN107315623A true CN107315623A (en) 2017-11-03
CN107315623B CN107315623B (en) 2020-08-11

Family

ID=60184138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710476218.8A Active CN107315623B (en) 2017-06-21 2017-06-21 Method and device for reporting statistical data

Country Status (1)

Country Link
CN (1) CN107315623B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109992331A (en) * 2017-12-28 2019-07-09 重庆南华中天信息技术有限公司 The common function portal assembly dynamic adjusting method and system of Behavior-based control analysis

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1933479A (en) * 2005-09-16 2007-03-21 华为技术有限公司 Method for transmitting data in communication system and system thereof
CN101227348A (en) * 2008-02-02 2008-07-23 杭州华三通信技术有限公司 Server and method for collecting performance statistics data of network equipment
CN102377602A (en) * 2011-10-26 2012-03-14 国家广播电影电视总局广播科学研究院 Data stream processing method and system
CN105320572A (en) * 2014-06-27 2016-02-10 腾讯科技(深圳)有限公司 Browser abnormity processing method, device and system
CN106407092A (en) * 2016-09-30 2017-02-15 广州华多网络科技有限公司 Data reporting method, data reporting device, data statistics method and data statistics device for interface operations

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1933479A (en) * 2005-09-16 2007-03-21 华为技术有限公司 Method for transmitting data in communication system and system thereof
CN101227348A (en) * 2008-02-02 2008-07-23 杭州华三通信技术有限公司 Server and method for collecting performance statistics data of network equipment
CN102377602A (en) * 2011-10-26 2012-03-14 国家广播电影电视总局广播科学研究院 Data stream processing method and system
CN105320572A (en) * 2014-06-27 2016-02-10 腾讯科技(深圳)有限公司 Browser abnormity processing method, device and system
CN106407092A (en) * 2016-09-30 2017-02-15 广州华多网络科技有限公司 Data reporting method, data reporting device, data statistics method and data statistics device for interface operations

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109992331A (en) * 2017-12-28 2019-07-09 重庆南华中天信息技术有限公司 The common function portal assembly dynamic adjusting method and system of Behavior-based control analysis

Also Published As

Publication number Publication date
CN107315623B (en) 2020-08-11

Similar Documents

Publication Publication Date Title
CN104618222B (en) A kind of method and device for matching facial expression image
CN104519485B (en) Communication means, device and system between a kind of terminal
CN104683456B (en) Method for processing business, server and terminal
CN104618217B (en) Share method, terminal, server and the system of resource
CN103702297B (en) Short message enhancement, apparatus and system
CN104902531B (en) Connect method, application authorization server, terminal and the router of network
CN103390034B (en) Method, device, terminal and the server of picture presentation
CN104618223B (en) A kind of management method of information recommendation, device and system
CN104571979B (en) A kind of method and apparatus for realizing split view
CN106502906A (en) A kind of method and apparatus of test application program
CN105389259B (en) A kind of method, apparatus and system for carrying out Application testing
CN107204964A (en) A kind of methods, devices and systems of rights management
CN104065693A (en) Method, device and system for accessing network data in webpage applications
CN104699501B (en) A kind of method and device for running application program
CN106775262A (en) A kind of method and system of mark display management of not interpreting blueprints
CN106034114A (en) Multimedia information sharing method and device
CN106254910A (en) A kind of method and apparatus recording image
CN106303605B (en) A kind of methods, devices and systems to send a notification message
CN107590397A (en) A kind of method and apparatus for showing embedded webpage
CN107465802A (en) A kind of methods, devices and systems for showing communication message
CN104660769B (en) A kind of methods, devices and systems for adding associated person information
CN107491923A (en) Part system and method is pulled in express delivery based on intelligent terminal
CN107104763A (en) A kind of method and apparatus that Retransmission timeout duration is set
CN104731782B (en) A kind of method and mobile terminal of information processing
CN107577795A (en) A kind of methods, devices and systems for recommending song

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
TR01 Transfer of patent right

Effective date of registration: 20210111

Address after: 511442 3108, 79 Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Patentee after: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 511449 28th floor, block B1, Wanda Plaza, Wanbo business district, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20171103

Assignee: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

Assignor: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Contract record no.: X2021440000053

Denomination of invention: A method and device for reporting statistical data

Granted publication date: 20200811

License type: Common License

Record date: 20210208

EE01 Entry into force of recordation of patent licensing contract