Commit 20e87b4b authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Added dump_alloc_counts().

parent 7921b8b1
......@@ -383,3 +383,26 @@ copy_member_list(Member_list ml)
}
EXPORT void
dump_alloc_counts(FILE *fp)
{
fprintf(fp,
"text_list: %d\n"
"mark_list: %d\n"
"membership_list: %d\n"
"membership: %d\n"
"person: %d\n"
"member_list: %d\n"
"conference: %d\n"
"text_stat: %d\n\n",
text_list_cnt,
mark_list_cnt,
membership_list_cnt,
membership_cnt,
person_cnt,
member_list_cnt,
conference_cnt,
text_stat_cnt);
}
......@@ -80,3 +80,10 @@ copy_membership_list(Membership_list ml);
extern Member_list
copy_member_list(Member_list ml);
#ifdef FILE
extern void
dump_alloc_counts(FILE *stat_file);
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment