Add CPU stats for Battery Dump
[platform/core/system/batterymonitor.git] / include / bd_private.h
index 0481866..09f5873 100644 (file)
@@ -97,6 +97,13 @@ typedef struct _gbl_bst_stat_s {
        long int high_time;
 } bd_gl_bst_stat_s;
 
+typedef struct _gbl_cpu_stat_s {
+       long int time_s;
+       long int usr_time;
+       long int sys_time;
+} bd_gl_cpu_stat_s;
+
+/*
 typedef struct _unt_ntw_stat_s {
        long int time_s;
        char *appid;
@@ -108,6 +115,7 @@ typedef struct _unt_ntw_stat_s {
        long int bt_tx_byt;
        long int app_rt;
 } bd_ul_ntw_stat_s;
+*/
 
 /* Battery Dump db enumerations */
 typedef enum {
@@ -170,6 +178,13 @@ typedef enum {
 } BD_GBSTSTAT_DB_IDX;
 
 typedef enum {
+       BD_GCPUSTAT_NONE = -1,
+       BD_GCPUSTAT_USR,
+       BD_GCPUSTAT_SYS,
+} BD_GCPUSTAT_DB_IDX;
+
+/*
+typedef enum {
        BD_UNTWSTAT_NONE = -1,
        BD_UNTWSTAT_APP,
        BD_UNTWSTAT_DN_RXB,
@@ -178,6 +193,7 @@ typedef enum {
        BD_UNTWSTAT_WIFI_TXB,
        BD_UNTWSTAT_RT,
 } BD_UNTWSTAT_DB_IDX;
+*/
 
 /* Battery Specific Enumeration */
 typedef enum {