/*
* @file rua.c
- * @author Noha Park (noha.park@samsung.com)
* @version 0.1
*/
#include "rua.h"
#include "db-schema.h"
+#include "perf-measure.h"
#define RUA_DB_PATH "/opt/dbspace"
#define RUA_DB_NAME ".rua.db"
char query[QUERY_MAXLEN];
sqlite3_stmt *stmt;
+ unsigned int timestamp;
+ timestamp = PERF_MEASURE_START("RUA");
+
if (_db == NULL)
return -1;
return -1;
}
+ PERF_MEASURE_END("RUA", timestamp);
+
return r;
}
int rua_init(void)
{
+ unsigned int timestamp;
+ timestamp = PERF_MEASURE_START("RUA");
+
if (_db) {
return 0;
}
if (_db == NULL)
return -1;
+ PERF_MEASURE_END("RUA", timestamp);
+
return 0;
}
int rua_fini(void)
{
+ unsigned int timestamp;
+ timestamp = PERF_MEASURE_START("RUA");
+
if (_db) {
db_util_close(_db);
_db = NULL;
}
+ PERF_MEASURE_END("RUA", timestamp);
return 0;
}