MYDDAS: New internal organization and new MYDDAS statistics
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1645 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
@@ -20,8 +20,11 @@ myddas_util_initialize_myddas(void){
|
||||
#endif
|
||||
#ifdef MYDDAS_STATS
|
||||
global->myddas_statistics = (MYDDAS_GLOBAL_STATS) malloc (sizeof(struct myddas_global_stats));
|
||||
MYDDAS_STATS_INITIALIZE_TIME_STRUCT(global->myddas_statistics->total_db_row,time_final);
|
||||
MYDDAS_STATS_INITIALIZE_TIME_STRUCT(global->myddas_statistics->total_translate,time_final);
|
||||
global->myddas_statistics->stats = NULL;
|
||||
MYDDAS_STATS_INITIALIZE_GLOBAL_STATS(global->myddas_statistics->stats);
|
||||
//MYDDAS_STATS_INITIALIZE_TIME_STRUCT(global->myddas_statistics->total_db_row,time_final);
|
||||
//MYDDAS_STATS_INITIALIZE_TIME_STRUCT(global->myddas_statistics->total_translate,time_final);
|
||||
|
||||
#endif
|
||||
return global;
|
||||
}
|
||||
@@ -56,17 +59,10 @@ myddas_util_initialize_connection(void *conn,void *enviromment,
|
||||
next->previous=new;
|
||||
|
||||
#ifdef MYDDAS_STATS
|
||||
new->totalNumberOfRows=0;
|
||||
|
||||
MYDDAS_STATS_INITIALIZE_TIME_STRUCT(new->totalTimeofDBServer,time_final);
|
||||
MYDDAS_STATS_INITIALIZE_TIME_STRUCT(new->lastTimeofDBServer,time_final);
|
||||
MYDDAS_STATS_INITIALIZE_TIME_STRUCT(new->totalFromDBServer,time_final);
|
||||
MYDDAS_STATS_INITIALIZE_TIME_STRUCT(new->lastFromDBServer,time_final);
|
||||
|
||||
new->lastBytesTransfered=0;
|
||||
new->totalBytesTransfered=0;
|
||||
new->total_querys_made=0;
|
||||
new->stats = NULL;
|
||||
MYDDAS_STATS_INITIALIZE_CONNECTION_STATS(new->stats);
|
||||
#endif
|
||||
|
||||
return new;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user