void print_mem_stats(void) { printf("Duperemove memory usage statistics:\n"); show_allocs_file_block(); show_allocs_dupe_blocks_list(); show_allocs_dupe_extents(); show_allocs_extent(); show_allocs_filerec(); show_allocs_filerec_token(); }
void print_mem_stats(void) { uint64_t sqlite3_highwater, sqlite3_memused; printf("Duperemove memory usage statistics:\n"); show_allocs_file_block(); show_allocs_dupe_blocks_list(); show_allocs_dupe_extents(); show_allocs_extent(); show_allocs_filerec(); show_allocs_filerec_token(); show_allocs_file_hash_head(); show_allocs_find_dupes_cmp(); sqlite3_highwater = sqlite3_memory_highwater(0); sqlite3_memused = sqlite3_memory_used(); printf("Sqlite3 used: %"PRIu64" highwater: %"PRIu64"\n", sqlite3_memused, sqlite3_highwater); }