Use LAM_ENABLE_MEM_PROFILING correctly. Now we can handle the configure options --disable-mem-profile and --disable-meme-debug.
This commit was SVN r1106.
Этот коммит содержится в:
родитель
152ac14685
Коммит
a8047b9229
@ -63,7 +63,7 @@ void lam_free_lists_construct(lam_free_lists_t *flist)
|
||||
flist->fl_nevents = NULL;
|
||||
flist->fl_chunks_req = NULL;
|
||||
flist->fl_chunks_returned = NULL;
|
||||
#endif
|
||||
#endif /* LAM_ENABLE_MEM_PROFILE */
|
||||
}
|
||||
|
||||
|
||||
@ -96,7 +96,7 @@ void lam_free_lists_destruct(lam_free_lists_t *flist)
|
||||
|
||||
if ( flist->fl_chunks_returned )
|
||||
free(flist->fl_chunks_returned);
|
||||
#endif
|
||||
#endif /* LAM_ENABLE_MEM_PROFILE */
|
||||
}
|
||||
|
||||
|
||||
|
@ -36,15 +36,15 @@ struct lam_free_lists_t
|
||||
lam_class_t *fl_elt_cls; /* this will be used to create new free list elements. */
|
||||
lam_mutex_t fl_lock;
|
||||
|
||||
#if LAM_ENABLE_MEM_PROFILE
|
||||
/* for mem profiling */
|
||||
int *fl_elt_out;
|
||||
int *fl_elt_max;
|
||||
int *fl_elt_sum;
|
||||
int *fl_nevents;
|
||||
#if LAM_ENABLE_DEBUG
|
||||
int *fl_chunks_req;
|
||||
int *fl_chunks_returned;
|
||||
#endif
|
||||
#endif /* LAM_ENABLE_MEM_PROFILE */
|
||||
};
|
||||
typedef struct lam_free_lists_t lam_free_lists_t;
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user