00001 /* 00002 * File: 00003 * mod_stats.h 00004 * Author(s): 00005 * Pascal Felber <pascal.felber@unine.ch> 00006 * Description: 00007 * Module for gathering statistics about transactions. 00008 * 00009 * Copyright (c) 2007-2009. 00010 * 00011 * This program is free software; you can redistribute it and/or 00012 * modify it under the terms of the GNU General Public License 00013 * as published by the Free Software Foundation, version 2 00014 * of the License. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU General Public License for more details. 00020 */ 00021 00036 #ifndef _MOD_STATS_H_ 00037 # define _MOD_STATS_H_ 00038 00039 # include "stm.h" 00040 00041 # ifdef __cplusplus 00042 extern "C" { 00043 # endif 00044 00057 int stm_get_global_stats(const char *name, void *val); 00058 00071 int stm_get_local_stats(TXPARAMS const char *name, void *val); 00072 00078 void mod_stats_init(); 00079 00080 # ifdef __cplusplus 00081 } 00082 # endif 00083 00084 #endif /* _MOD_STATS_H_ */