Skip to content

Commit

Permalink
core/debug: add memstate debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
nil0x42 committed Sep 29, 2020
1 parent abfe712 commit 3d1d4a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,18 @@ void config(void)

init_memstate(&memstate);


config_threads();
config_hmap_size(g_file, &memstate);
config_chunk_size(g_file);

DLOG1("");
DLOG1("--------- memstate -----------");
DLOG1("memstate.page_size: %d", memstate.page_size);
DLOG1("memstate.mem_available: %s (%lld)",
sizerepr(memstate.mem_available), memstate.mem_available);
DLOG1("------------------------------");

DLOG1("");
DLOG1("---------- g_conf ------------");
DLOG1("g_conf.infile_name: %s", g_conf.infile_name);
Expand Down
1 change: 0 additions & 1 deletion src/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ void init_file(const char *infile_name, const char *outfile_name)
DLOG1("g_file->info.st_size: %s (%ld)",
sizerepr(g_file->info.st_size), g_file->info.st_size);
DLOG1("------------------------------");
DLOG1("");
}


Expand Down

0 comments on commit 3d1d4a0

Please sign in to comment.