Monitoring application wise background data usage. 14/133614/1
authorNishant Chaprana <n.chaprana@samsung.com>
Fri, 9 Jun 2017 08:11:44 +0000 (13:41 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Tue, 13 Jun 2017 02:33:34 +0000 (08:03 +0530)
commitc47c751815c1171b8f653adf3bac6b2dfcc6fc97
tree3b63fcf31d9b220a189ceb208fa4fa7958918427
parent75e80e452edc23a1ea570de8377a1a3c74337cf4
Monitoring application wise background data usage.

Description: This patch updates logic to monitor application wise
background data usage.
When background data usage is notified, app_id will be appended with "_BACKGROUND".

Below is the test result performed using stc_test application.
=================================================================
 Main >> STC >> [Statistics] >> [Stats]
-----------------------------------------------------------------
 [  1] [Set] stats rule                                        >
 [  2] [Get] stats
 [  3] [Get] all stats
 [  4] [Get] total stats
 ---------------------------------------------------------------
 [ p ] Previous Menu
 [ m ] Show Menu
 [ q ] Quit
=================================================================
( 1354) >> 3
Success to set time interval
Success to request stats all info
( 1354) >> -----------------------------------------------------------------
App_id:   [org.tizen.browser]
Ifname:   []
Imsi:     [noneimsi]
Iftype:   [Undefined]
Received: [2182136]
Sent:     [102681]
Roaming:  [Unknown]
Protocol: [Unknown]
Process:  [Unknown]
From:     [0]
To:       [0]
-----------------------------------------------------------------
-----------------------------------------------------------------
App_id:   [org.tizen.browser_BACKGROUND]
Ifname:   []
Imsi:     [noneimsi]
Iftype:   [Undefined]
Received: [1872]
Sent:     [1872]
Roaming:  [Unknown]
Protocol: [Unknown]
Process:  [Unknown]
From:     [0]
To:       [0]
-----------------------------------------------------------------

Change-Id: Id8175494e559790e2959e5a6e7164de24e00a548
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
include/stc-manager.h
src/configure/include/counter.h
src/database/tables/table-statistics.c
src/helper/helper-cgroup.c
src/helper/helper-cgroup.h
src/helper/helper-net-cls.c
src/monitor/include/stc-monitor.h
src/monitor/stc-application-lifecycle.c
src/monitor/stc-monitor.c
src/utils/net-cls-release.c