Add CPU stats for Battery Dump
[platform/core/system/batterymonitor.git] / include / bm_server_db.h
index a538b20..c6004a8 100644 (file)
@@ -63,10 +63,7 @@ BM_RESOURCE_ID_MAX,
 "rId_device_network INT, "\
 "rId_gps INT, "\
 "rId_hrm INT, "\
-"rId_battery INT, "\
-"rId_newone INT, "\
-"rId_newtwo INT, "\
-"rId_newthree INT "\
+"rId_battery INT "\
 ");"
 
 /* Battery Monitor RESOURCE ID Vs TIME */
@@ -155,6 +152,13 @@ BM_RESOURCE_ID_MAX,
 "high_time INT "\
 ");"
 
+#define GBL_CPU_STAT_SCHEMA "create table gcpu_stat \n"\
+       "(\n"\
+"time_s LONG INT, "\
+"usr_time INT, "\
+"sys_time INT "\
+");"
+
 #define OWNER_ROOT 0
 
 /* Macros of Time Duration */
@@ -173,9 +177,10 @@ BM_RESOURCE_ID_MAX,
 #define BATTERY_MONITOR_GBL_SGT_STAT_TABLE             "gsgt_stat"
 #define BATTERY_MONITOR_GBL_WST_STAT_TABLE             "gwst_stat"
 #define BATTERY_MONITOR_GBL_BST_STAT_TABLE             "gbst_stat"
+#define BATTERY_MONITOR_GBL_CPU_STAT_TABLE             "gcpu_stat"
 #define BATTERY_MONITOR_SQLITE_SEQ                     "sqlite_sequence"
 #define BATTERY_MONITOR_SQL_LEN_MAX                    1024
-#define BATTERY_MONITOR_TABLE_COUNT                    10
+#define BATTERY_MONITOR_TABLE_COUNT                    11
 
 typedef sqlite3_stmt *bm_stmt;