CN106201818B - A kind of statistical method and device of application program runing time - Google Patents

A kind of statistical method and device of application program runing time Download PDF

Info

Publication number
CN106201818B
CN106201818B CN201610481325.5A CN201610481325A CN106201818B CN 106201818 B CN106201818 B CN 106201818B CN 201610481325 A CN201610481325 A CN 201610481325A CN 106201818 B CN106201818 B CN 106201818B
Authority
CN
China
Prior art keywords
runing time
state information
running state
application program
time
Prior art date
Application number
CN201610481325.5A
Other languages
Chinese (zh)
Other versions
CN106201818A (en
Inventor
马国庆
Original Assignee
青岛海信移动通信技术股份有限公司
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 青岛海信移动通信技术股份有限公司 filed Critical 青岛海信移动通信技术股份有限公司
Priority to CN201610481325.5A priority Critical patent/CN106201818B/en
Publication of CN106201818A publication Critical patent/CN106201818A/en
Application granted granted Critical
Publication of CN106201818B publication Critical patent/CN106201818B/en

Links

Abstract

The embodiment of the present application provides the statistical method and device of a kind of application program runing time, which comprises terminal obtains the running state information of application program, and the running state information includes the packet mark of application program;From with it is identical packet mark running state information in extract when operation starts between and the end of run time;Encapsulation it is described when operation starts between and the end of run time, obtain runing time data packet;The runing time data packet is sent to server, when solving that application program starts or exits every time in prior art, the problem of reporting a runing time to server is required to, reduces data transfer throughput, alleviates the pressure of servers' data processing.

Description

A kind of statistical method and device of application program runing time

Technical field

This application involves information technology fields, more particularly to the statistical method and one kind of a kind of application program runing time The statistic device of application program runing time.

Background technique

As the function of the mobile terminals such as Android Android intelligent is more and more abundant, user be can according to need A variety of different application programs are installed on mobile terminal.But which application program is that user's frequency of use is higher, which is What user was rarely employed, it is typically necessary through the length of the runing time of each application program in statistics terminal and analyzes user's Use habit, and then improve user experience.

Currently, being directed to the statistics of application program runing time in Android Android class mobile terminal, usually application program Every switching is primary between terminal foreground and backstage, and system just records and reports a data to server.The above method can The timeliness for guaranteeing run time statistics and reporting, but multiple reporting also will increase data transfer throughput, increase server end The pressure of data is handled, further, since there are many server end data to be processed, data source diversification, but also server end It is easy to appear mistake when merging to scattered data, so that not high to the statistics accuracy rate of application program runtime.

Summary of the invention

In view of the above problems, it proposes the embodiment of the present application and overcomes the above problem or at least partly in order to provide one kind A kind of statistical method of the application program runing time to solve the above problems and a kind of corresponding system of application program runing time Counter device.

To solve the above-mentioned problems, the embodiment of the present application discloses a kind of statistical method of application program runing time, packet It includes:

Terminal obtains the running state information of application program, and the running state information includes the packet mark of application program;

From with it is identical packet mark running state information in extract when operation starts between and the end of run time;

Encapsulation it is described when operation starts between and the end of run time, obtain runing time data packet;

The runing time data packet is sent to server.

Optionally, described to be tied between being extracted when operation starts in the running state information with identical packet mark with operation Beam includes: the step of the time

The running state information is traversed, the running state information includes the action type information of application program, described Action type information is front stage operation or running background;

From the running state information of the front stage operation, the minimum value of runing time is extracted, and, from the backstage In the running state information of operation, the maximum value of runing time is extracted;

Using the minimum value of the runing time as between when operation starts, using the maximum value of the runing time as operation End time.

Optionally, described from the running state information of the front stage operation, extract the step of the minimum value of runing time Suddenly include:

The runing time in the running state information of front stage operation is obtained respectively;

The size of the runing time one by one obtains the minimum value of the runing time;

It is described from the running state information of the running background, the step of extracting the maximum value of runing time includes:

The runing time in the running state information of running background is obtained respectively;

The size of the runing time one by one obtains the maximum value of the runing time.

Optionally, described in the encapsulation when operation starts between and the end of run time, obtain runing time data packet step Suddenly include:

The packet of the application program is identified, and, it is described when operation starts between and the end of run time be packaged into operation Time data packet.

To solve the above-mentioned problems, the embodiment of the present application also discloses a kind of statistical method of application program runing time, Include:

Receive the runing time data packet that terminal is sent;

Parse the runing time data packet, obtain application program packet mark, and, when operation starts between and operation knot The beam time;

According to the packet of the application program identify, and, when operation starts between and the end of run time, statistics application program Runing time.

To solve the above-mentioned problems, the embodiment of the present application also discloses a kind of statistic device of application program runing time, Include:

Module is obtained, the running state information of application program is obtained for terminal, the running state information includes application The packet of program identifies;

Extraction module, for from it is identical packet mark running state information in extract when operation starts between and run End time;

Package module, for encapsulate it is described when operation starts between and the end of run time, obtain runing time data packet;

Sending module, for the runing time data packet to be sent to server.

Optionally, the extraction module includes:

Submodule is traversed, for traversing the running state information, the running state information includes the behaviour of application program Make type information, the action type information is front stage operation or running background;

Extracting sub-module, for extracting the minimum value of runing time from the running state information of the front stage operation, And from the running state information of the running background, the maximum value of runing time is extracted, most by the runing time Between small value is used as when operation starts, using the maximum value of the runing time as the end of run time.

Optionally, the extracting sub-module includes:

First extraction unit, the runing time in running state information for obtaining front stage operation respectively;

First comparing unit obtains the minimum value of the runing time for the size of the runing time one by one;

The extracting sub-module further include:

Second extraction unit, the runing time in running state information for obtaining running background respectively;

Second comparing unit obtains the maximum value of the runing time for the size of the runing time one by one.

Optionally, the package module includes:

Encapsulate submodule, for the packet of the application program to be identified, and, it is described when operation starts between and end of run Time is packaged into runing time data packet.

To solve the above-mentioned problems, the embodiment of the present application also discloses a kind of statistic device of application program runing time, Include:

Receiving module, for receiving the runing time data packet of mobile terminal transmission;

Parsing module, for parsing the runing time data packet, the packet for obtaining application program is identified, and, operation is opened Begin time and end of run time;

Statistical module, for being identified according to the packet of the application program, and, when operation starts between and when end of run Between, the runing time of statistics application program.

Compared with the background art, the embodiment of the present application includes the following advantages:

Then the embodiment of the present application is believed according to the operation state by obtaining running state information from system file Application package mark in breath, extract application program when operation starts between and the end of run time, and then by the fortune Row time started and end of run time are packaged into data packet, and are sent to server, solve application program in prior art When starting or exit every time, it is required to the problem of reporting a runing time to server, reduces data transfer throughput, mitigated The pressure of servers' data processing.

Detailed description of the invention

Fig. 1 is a kind of step flow chart of the statistical method embodiment one of application program runing time of the application;

Fig. 2 is a kind of step flow chart of the statistical method embodiment two of application program runing time of the application;

Fig. 3 is a kind of step flow chart of the statistical method embodiment three of application program runing time of the application;

Fig. 4 is a kind of structural block diagram of the statistic device embodiment one of application program runing time of the application;

Fig. 5 is a kind of structural block diagram of the statistic device embodiment two of application program runing time of the application.

Specific embodiment

In order to make the above objects, features, and advantages of the present application more apparent, with reference to the accompanying drawing and it is specific real Applying mode, the present application will be further described in detail.

Referring to Fig.1, the step of showing a kind of statistical method embodiment one of application program runing time of the application stream Cheng Tu can specifically include following steps:

Step 101, terminal obtains the running state information of application program, and the running state information includes application program Packet mark;

In the embodiment of the present application, the application program refers to the computer program being installed in mobile terminal, the shifting Dynamic terminal can be the terminals such as smart phone, tablet computer, and the application is not construed as limiting the concrete type of mobile terminal.

In general, in the mobile terminal of Android android system application can be obtained from system file UsageStats The running state information of program, UsageStats are a monitoring programs of Android Android operation system, can count and respectively answer With all data of program in operation.File in UsageStats in the operation data of records application program, be with Activity is unit, and format is as follows:

<time=" time1 " package=" name1 " class=" Activity1 " type=" foreground ">

<time=" time2 " package=" name1 " class=" Activity1 " type=" background ">

<time=" time3 " package=" name1 " class=" Activity2 " type=" foreground ">

<time=" time4 " package=" name1 " class=" Activity2 " type=" background ">

<time=" time5 " package=" name2 " class=" Activity3 " type=" foreground ">

<time=" time6 " package=" name2 " class=" Activity3 " type=" background ">

<time=" time7 " package=" name2 " class=" Activity4 " type=" foreground ">

<time=" time8 " package=" name2 " class=" Activity4 " type=" background ">

Wherein, what time was recorded is the time of current operation, and package is the packet mark of current application program, using journey The packet mark of sequence can be used for uniquely indicating an application program;Class record is the current interface Activity, is being pacified In tall and erect operating system, Activity is an application component, can provide a screen, user can by the screen come Realize the interaction with terminal;And type then has recorded the action type information of current application program, for example, front stage operation or after Platform operation.

Step 102, from it is identical packet mark running state information in extract when operation starts between and end of run Time;

Since the packet mark of application program can be used for uniquely indicating an application program, there is identical packet mark Know a plurality of running state information may be considered the same application program in operation caused by, so as to from phase With packet mark a plurality of running state information in extract the application program when operation starts between and the end of run time.Example Such as, first running state information for being obtained from UsageStats

<time=" time1 " package=" name1 " class=" Activity1 " type=" foreground ">, Its action type be front stage operation, it is believed that time1 be application program name1 when operation starts between.

It is described to be extracted from the running state information with identical packet mark in a preferred embodiment of the present application It can specifically include following sub-step with the step of end of run time between when operation starts:

Sub-step 1021, traverses the running state information, and the running state information includes the operation class of application program Type information, the action type information are front stage operation or running background;

Sub-step 1022 extracts the minimum value of runing time from the running state information of the front stage operation, with And from the running state information of the running background, the maximum value of runing time is extracted;

Sub-step 1023, using the minimum value of the runing time as between when operation starts, most by the runing time Big value is used as the end of run time.

In the concrete realization, after obtaining a plurality of running state information in UsageStats, can be successively read it is described Running state information extracts the running state information of packet mark having the same, by judging each operating status The action type of information is front stage operation or running background, thus in one or more that action type information is front stage operation In running state information, the minimum value of runing time is extracted, using the minimum value of the runing time as between when operation starts, Then, in one or more running state information that action type information is running background, the maximum of runing time is extracted Value, using the maximum value of the runing time as the end of run time.For example, being identified as name1's for packet in above-mentioned example Application program, it is respectively time1 and time3 that action type, which is the time of front stage operation, and action type is running background Time is respectively time2 and time4, can be by comparing the size of time1 and time3, and compares time2's and time4 Size, thus by the time lesser in time1 and time3 be determined as application program when operation starts between, by time2 and The biggish time is determined as the end time of application program in time4.

Step 103, between encapsulation is described when operation starts and the end of run time, runing time data packet is obtained;

In the embodiment of the present application, when obtain respectively application program when operation starts between and after the end of run time, can With by it is described when operation starts between and end of run time and the application program packet mark together, be packaged into data packet, lattice Formula can be with are as follows:

<startTime end of run time endTime between packet identifies packageName when operation starts>.

Step 104, the runing time data packet is sent to server.

In the concrete realization, the runing time data packet can be regularly sent, such as each hour or every two small When, those skilled in the art can send the time interval of data packet determine according to actual needs, and the application is not construed as limiting this.

In the embodiment of the present application, by obtaining one or more running state information from system file, then basis Application package mark in the running state information, extract application program when operation starts between and when end of run Between, so by it is described when operation starts between and the end of run time be packaged into data packet, and be sent to server, solve existing When application program starts or exits every time in technology, it is required to the problem of reporting a runing time to server, reduces number According to transmission flow, the pressure of servers' data processing is alleviated.

Referring to Fig. 2, the step of showing a kind of statistical method embodiment two of application program runing time of the application stream Cheng Tu can specifically include following steps:

Step 201, the running state information of application program is obtained, the running state information includes the packet mark of application program Know;

In the embodiment of the present application, the application program refers to the computer program being installed in mobile terminal, the shifting Dynamic terminal can be the terminals such as smart phone, tablet computer, and the application is not construed as limiting the concrete type of mobile terminal.

In the concrete realization, the running state information of application program, institute can be obtained from system file UsageStats Stating running state information may include the time of current operation, the packet mark of application program, the interface Activity, and operation class Type information etc..

Step 202, the running state information is traversed, the running state information includes the action type letter of application program Breath, the action type information are front stage operation or running background;

Step 203, from the running state information of the front stage operation, the minimum value of runing time is extracted, it will be described Between the minimum value of runing time is used as when operation starts;

In general, the packet mark of application program can uniquely indicate an application program.Therefore, in the embodiment of the present application In, after obtaining a plurality of running state information in UsageStats, it can be successively read the running state information, will be had The running state information of identical packet mark extracts, by determining that the action type recorded in running state information is foreground Operation or running background, obtain application program when operation starts between and the end of run time.

It is described from the running state information of the front stage operation in a preferred embodiment of the present application, it extracts The step of minimum value of runing time, can specifically include following sub-step:

Sub-step 2031 obtains the runing time in the running state information of front stage operation respectively;

Sub-step 2032, the size of the runing time, obtains the minimum value of the runing time one by one.

In the concrete realization, it can be extracted from one or more running state information that action type is front stage operation The corresponding operation time out, by the size of the operating time one by one, so that the minimum value of the runing time is obtained, It can be using the minimum value of the runing time as between when operation starts.

Step 204, from the running state information of the running background, the maximum value of runing time is extracted, it will be described The maximum value of runing time is as the end of run time;

It is described from the running state information of the running background in a preferred embodiment of the present application, it extracts The step of maximum value of runing time, can specifically include following sub-step:

Sub-step 2041 obtains the runing time in the running state information of running background respectively;

Sub-step 2042, the size of the runing time, obtains the maximum value of the runing time one by one.

In the concrete realization, it can be extracted from one or more running state information that action type is running background The corresponding operation time out, by the size of the operating time one by one, so that the maximum value of the runing time is obtained, It can be using the maximum value of the runing time as the end of run time.

Step 205, the packet of the application program is identified, and, it is described when operation starts between and end of run time envelope Dress up runing time data packet;

In the embodiment of the present application, when obtain respectively application program when operation starts between and after the end of run time, can With by it is described when operation starts between and end of run time and the application program packet mark together, be packaged into data packet, lattice Formula can be with are as follows:

<startTime end of run time endTime between packet identifies packageName when operation starts>.

Step 206, the runing time data packet is sent to server.

In the concrete realization, the runing time data packet, such as each hour can be regularly sent, or every two hours It sends once, the application is not construed as limiting this.

Referring to Fig. 3, the step of showing a kind of statistical method embodiment three of application program runing time of the application stream Cheng Tu can specifically include following steps:

Step 301, the runing time data packet that terminal is sent is received;

Step 302, parse the runing time data packet, obtain application program packet mark, and, when operation starts between With the end of run time;

In the embodiment of the present application, server, can be by after the runing time data packet for receiving mobile terminal transmission The runing time data packet is parsed according to preset format, obtain application program packet mark, and, when operation starts between With the end of run time.

Step 303, according to the packet of the application program identify, and, when operation starts between and the end of run time, statistics The runing time of application program.

In the concrete realization, it can be identified according to the packet of the application program and uniquely determine out the runing time data Which application program packet belongs to, and then according to the difference between when operation starts between the end of run time, answers described in acquisition With the runing time of program.

In the embodiment of the present application, after the runing time data packet for receiving mobile terminal transmission, parsing can be passed through The data packet obtains the packet mark of application program, and, when operation starts between and the information such as end of run time, to count Obtain the runing time of application program.Since mobile terminal is not necessarily to all send out to server when application program starts or exits every time A runing time information is sent, the pressure of server data processing can be effectively reduced using this method;Meanwhile server is no longer Scattered data are received, the probability that mistake occurs when to data processing in server is also reduced, it is corresponding to improve server With the accuracy rate of the statistics of program runtime.

It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, the embodiment of the present application is not limited by the described action sequence, because according to According to the embodiment of the present application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and related movement not necessarily the application is implemented Necessary to example.

Referring to Fig. 4, a kind of structural frames of the statistic device embodiment one of application program runing time of the application are shown Figure, can specifically include following module:

Module 401 is obtained, the running state information of application program is obtained for terminal, the running state information can wrap Include the packet mark of application program;

Extraction module 402, for from it is identical packet mark running state information in extract when operation starts between and The end of run time;

Package module 403, for encapsulate it is described when operation starts between and the end of run time, obtain runing time data Packet;

Sending module 404, for the runing time data packet to be sent to server.

In the embodiment of the present application, the extraction module 402 can specifically include following submodule:

Submodule is traversed, for traversing the running state information, the running state information may include application program Action type information, the action type information can be front stage operation or running background;

Extracting sub-module, for extracting the minimum value of runing time from the running state information of the front stage operation, And from the running state information of the running background, the maximum value of runing time is extracted, most by the runing time Between small value is used as when operation starts, using the maximum value of the runing time as the end of run time.

In the embodiment of the present application, the extracting sub-module be can specifically include such as lower unit:

First extraction unit, the runing time in running state information for obtaining front stage operation respectively;

First comparing unit obtains the minimum value of the runing time for the size of the runing time one by one;

In the embodiment of the present application, the extracting sub-module can also include such as lower unit:

Second extraction unit, the runing time in running state information for obtaining running background respectively;

Second comparing unit obtains the maximum value of the runing time for the size of the runing time one by one.

In the embodiment of the present application, the package module 403 can specifically include following submodule:

Encapsulate submodule, for the packet of the application program to be identified, and, it is described when operation starts between and end of run Time is packaged into runing time data packet.

Referring to Fig. 5, a kind of structural frames of the statistic device embodiment two of application program runing time of the application are shown Figure, can specifically include following module:

Receiving module 501, for receiving the runing time data packet of terminal transmission;

Parsing module 502, for parsing the runing time data packet, the packet for obtaining application program is identified, and, operation Time started and end of run time;

Statistical module 503, for according to the packet of the application program identify, and, when operation starts between and end of run Time, the runing time of statistics application program.

For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.

All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.

It should be understood by those skilled in the art that, the embodiments of the present application may be provided as method, apparatus or calculating Machine program product.Therefore, the embodiment of the present application can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present application can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.

The embodiment of the present application is referring to according to the method for the embodiment of the present application, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.

These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.

These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.

Although preferred embodiments of the embodiments of the present application have been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and all change and modification within the scope of the embodiments of the present application.

Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.

Statistical method to a kind of application program runing time provided herein and a kind of operation of application program above The statistic device of time, is described in detail, specific case used herein to the principle and embodiment of the application into Elaboration is gone, the description of the example is only used to help understand the method for the present application and its core ideas;Meanwhile for this The those skilled in the art in field, according to the thought of the application, there will be changes in the specific implementation manner and application range, In conclusion the contents of this specification should not be construed as limiting the present application.

Claims (8)

1. a kind of run time statistics method of application program characterized by comprising
Terminal obtains the running state information of application program, and the running state information includes the packet mark of application program;
From with it is identical packet mark running state information in extract when operation starts between and the end of run time;
Encapsulation it is described when operation starts between and the end of run time, obtain runing time data packet;
The runing time data packet is sent to server;
Wherein, it is described from it is identical packet mark running state information in extract when operation starts between and the end of run time The step of include:
The running state information is traversed, the running state information includes the action type information of application program, the operation Type information is front stage operation or running background;
From the running state information of the front stage operation, the minimum value of runing time is extracted, and, from the running background Running state information in, extract the maximum value of runing time;
Using the minimum value of the runing time as between when operation starts, using the maximum value of the runing time as end of run Time.
2. the method according to claim 1, wherein described from the running state information of the front stage operation, The step of extracting the minimum value of runing time include:
The runing time in the running state information of front stage operation is obtained respectively;
The size of the runing time one by one obtains the minimum value of the runing time;
It is described from the running state information of the running background, the step of extracting the maximum value of runing time includes:
The runing time in the running state information of running background is obtained respectively;
The size of the runing time one by one obtains the maximum value of the runing time.
3. method according to claim 1 or 2, which is characterized in that described in the encapsulation when operation starts between and operation knot The beam time, obtain runing time data packet the step of include:
The packet of the application program is identified, and, it is described when operation starts between and the end of run time be packaged into runing time Data packet.
4. a kind of statistical method of application program runing time characterized by comprising
Receive the runing time data packet that terminal is sent;
Parse the runing time data packet, obtain the packet mark of application program, and, when operation starts between and when end of run Between;
According to the packet of the application program identify, and, when operation starts between and the end of run time, the fortune of statistics application program The row time;
Wherein, it is described when operation starts between and the end of run time by the terminal from it is identical packet identify operating status Server is extracted and is sent in information, and the terminal is in the following way from the running state information with identical packet mark Between extracting when operation starts and the end of run time:
The running state information is traversed, the running state information includes the action type information of application program, the operation Type information is front stage operation or running background;
From the running state information of the front stage operation, the minimum value of runing time is extracted, and, from the running background Running state information in, extract the maximum value of runing time;
Using the minimum value of the runing time as between when operation starts, using the maximum value of the runing time as end of run Time.
5. a kind of statistic device of application program runing time characterized by comprising
Module is obtained, the running state information of application program is obtained for terminal, the running state information includes application program Packet mark;
Extraction module, for from it is identical packet mark running state information in extract when operation starts between and end of run Time;
Package module, for encapsulate it is described when operation starts between and the end of run time, obtain runing time data packet;
Sending module, for the runing time data packet to be sent to server;
Wherein, the extraction module includes:
Submodule is traversed, for traversing the running state information, the running state information includes the operation class of application program Type information, the action type information are front stage operation or running background;
Extracting sub-module, for extracting the minimum value of runing time from the running state information of the front stage operation, with And from the running state information of the running background, the maximum value of runing time is extracted, by the minimum of the runing time Between value is used as when operation starts, using the maximum value of the runing time as the end of run time.
6. device according to claim 5, which is characterized in that the extracting sub-module includes:
First extraction unit, the runing time in running state information for obtaining front stage operation respectively;
First comparing unit obtains the minimum value of the runing time for the size of the runing time one by one;
The extracting sub-module further include:
Second extraction unit, the runing time in running state information for obtaining running background respectively;
Second comparing unit obtains the maximum value of the runing time for the size of the runing time one by one.
7. device according to claim 5 or 6, which is characterized in that the package module includes:
Encapsulate submodule, for the packet of the application program to be identified, and, it is described when operation starts between and the end of run time It is packaged into runing time data packet.
8. a kind of statistic device of application program runing time characterized by comprising
Receiving module, for receiving the runing time data packet of mobile terminal transmission;
Parsing module, for parsing the runing time data packet, the packet for obtaining application program is identified, and, when operation starts Between and the end of run time;
Statistical module, for according to the packet of the application program identify, and, when operation starts between and the end of run time, system Count the runing time of application program;
Wherein, it is described when operation starts between and the end of run time by the terminal from it is identical packet identify operating status Server is extracted and is sent in information, and the terminal is in the following way from the running state information with identical packet mark Between extracting when operation starts and the end of run time:
The running state information is traversed, the running state information includes the action type information of application program, the operation Type information is front stage operation or running background;
From the running state information of the front stage operation, the minimum value of runing time is extracted, and, from the running background Running state information in, extract the maximum value of runing time;
Using the minimum value of the runing time as between when operation starts, using the maximum value of the runing time as end of run Time.
CN201610481325.5A 2016-06-24 2016-06-24 A kind of statistical method and device of application program runing time CN106201818B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610481325.5A CN106201818B (en) 2016-06-24 2016-06-24 A kind of statistical method and device of application program runing time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610481325.5A CN106201818B (en) 2016-06-24 2016-06-24 A kind of statistical method and device of application program runing time

Publications (2)

Publication Number Publication Date
CN106201818A CN106201818A (en) 2016-12-07
CN106201818B true CN106201818B (en) 2019-01-01

Family

ID=57462214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610481325.5A CN106201818B (en) 2016-06-24 2016-06-24 A kind of statistical method and device of application program runing time

Country Status (1)

Country Link
CN (1) CN106201818B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9053340B2 (en) * 2012-10-12 2015-06-09 Citrix Systems, Inc. Enterprise application store for an orchestration framework for connected devices
US9213706B2 (en) * 2013-06-13 2015-12-15 DataGravity, Inc. Live restore for a data intelligent storage system
CN103475644B (en) * 2013-08-22 2016-08-24 北京奇虎科技有限公司 The method for pushing of a kind of network application and device
CN104615525B (en) * 2013-11-01 2018-09-04 腾讯科技(深圳)有限公司 The method and device of the operation duration of application program in a kind of detection mobile terminal
CN103729281B (en) * 2014-01-17 2016-05-25 中国联合网络通信集团有限公司 Application program is used information collecting method and mobile terminal
CN104869529A (en) * 2015-04-22 2015-08-26 惠州Tcl移动通信有限公司 Mobile terminal, server, and information management methods thereof

Also Published As

Publication number Publication date
CN106201818A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
US20130191052A1 (en) Real-time simulation of power grid disruption
US9832280B2 (en) User profile configuring method and device
CN104484171B (en) Terminal interface design system, method and relevant device
CN104468938A (en) Information acquisition and processing methods and related devices as well as mobile terminal and server
CN102831894B (en) Command processing method, command processing device and command processing system
CN102685717B (en) Network quality of service parameters recognition method and apparatus
CN103200046A (en) Method and system for monitoring network cell device performance
CN103106130A (en) Data monitoring method and data monitoring system for software behavior of mobile terminal
WO2015196693A1 (en) Data collection method and apparatus
CN102355482A (en) Data transmission method and equipment thereof
CN104349340B (en) The surfing flow monitoring method and device of mobile terminal
WO2016037441A1 (en) Video advertisement filtering method, device and equipment
CN104104971B (en) A kind of video file processing method and system
US8358842B2 (en) Electronic device with function of separating panels of digital comic strip and method thereof
US9843625B2 (en) System and method for aggregating and providing data from enterprise systems to mobile devices
DE112014002585T5 (en) Method and device for logging data records
CN104185141B (en) The detecting system and method for user area residence time based on Bluetooth beacon equipment
WO2012106861A1 (en) Terminal distribution information acquisition method, data acquisition device and communication system
CN104092755A (en) Capturing method and device for cloud service origin data
CN102739446B (en) The method and apparatus for selecting Network Time Protocol server
US10331156B2 (en) System and method for big data geographic information system discovery
CN104580523B (en) Self-aided terminal supervising data storage method and self-aided terminal monitoring server
US9690842B2 (en) Analyzing frequently occurring data items
WO2015101143A1 (en) Method and system for converting error message into error prompt
US20160335252A1 (en) System and method of sentiment accuracy indexing for customer service

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01