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.
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.