diff options
author | shennetsind <ind@henn.et> | 2013-05-17 21:47:10 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-05-17 21:47:10 -0300 |
commit | 104bb6c05dc8effef9db715f0b708d4548e10010 (patch) | |
tree | da8cfebada8a4345cee998713679db54eafffd84 /src/common/db.h | |
parent | 4ef9258f0f618857ed5d9e2f9e07f33dc6d13559 (diff) | |
download | hercules-104bb6c05dc8effef9db715f0b708d4548e10010.tar.gz hercules-104bb6c05dc8effef9db715f0b708d4548e10010.tar.bz2 hercules-104bb6c05dc8effef9db715f0b708d4548e10010.tar.xz hercules-104bb6c05dc8effef9db715f0b708d4548e10010.zip |
ERS Report Redesign
greatly enhances the ability to detect memory throughput
More on it: http://hercules.ws/board/blog/1/entry-30-ers-report-update/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/common/db.h')
-rw-r--r-- | src/common/db.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/db.h b/src/common/db.h index 4fe6a93d6..45babed78 100644 --- a/src/common/db.h +++ b/src/common/db.h @@ -653,10 +653,10 @@ struct DBMap { #define strdb_ensure(db,k,f) ( db_data2ptr((db)->ensure((db),db_str2key(k),(f))) ) // Database creation and destruction macros -#define idb_alloc(opt) db_alloc(__FILE__,__LINE__,DB_INT,(opt),sizeof(int)) -#define uidb_alloc(opt) db_alloc(__FILE__,__LINE__,DB_UINT,(opt),sizeof(unsigned int)) -#define strdb_alloc(opt,maxlen) db_alloc(__FILE__,__LINE__,DB_STRING,(opt),(maxlen)) -#define stridb_alloc(opt,maxlen) db_alloc(__FILE__,__LINE__,DB_ISTRING,(opt),(maxlen)) +#define idb_alloc(opt) db_alloc(__FILE__,__func__,__LINE__,DB_INT,(opt),sizeof(int)) +#define uidb_alloc(opt) db_alloc(__FILE__,__func__,__LINE__,DB_UINT,(opt),sizeof(unsigned int)) +#define strdb_alloc(opt,maxlen) db_alloc(__FILE__,__func__,__LINE__,DB_STRING,(opt),(maxlen)) +#define stridb_alloc(opt,maxlen) db_alloc(__FILE__,__func__,__LINE__,DB_ISTRING,(opt),(maxlen)) #define db_destroy(db) ( (db)->destroy((db),NULL) ) // Other macros #define db_clear(db) ( (db)->clear(db,NULL) ) @@ -775,7 +775,7 @@ DBReleaser db_custom_release(DBRelease which); * @see #db_default_release(DBType,DBOptions) * @see #db_fix_options(DBType,DBOptions) */ -DBMap* db_alloc(const char *file, int line, DBType type, DBOptions options, unsigned short maxlen); +DBMap* db_alloc(const char *file, const char *func, int line, DBType type, DBOptions options, unsigned short maxlen); /** * Manual cast from 'int' to the union DBKey. |