X-Git-Url: https://git.llucax.com/software/dgc/cdgc.git/blobdiff_plain/a62e962184cb5304bd18a4bd49edb217f9897fbd..39229a694674a24ad2d3b9203f591198b7c60ca7:/rt/gc/cdgc/opts.d diff --git a/rt/gc/cdgc/opts.d b/rt/gc/cdgc/opts.d index ccfe9b6..6e93622 100644 --- a/rt/gc/cdgc/opts.d +++ b/rt/gc/cdgc/opts.d @@ -47,6 +47,8 @@ struct Options { uint verbose = 0; char[MAX_OPT_LEN] log_file = ""; + char[MAX_OPT_LEN] malloc_stats_file = ""; + char[MAX_OPT_LEN] collect_stats_file = ""; bool sentinel = false; bool mem_stomp = false; } @@ -64,6 +66,14 @@ void process_option(char* opt_name, char* opt_value) { cstring.strcpy(options.log_file.ptr, opt_value); } + else if (cstring.strcmp(opt_name, "malloc_stats_file") == 0) + { + cstring.strcpy(options.malloc_stats_file.ptr, opt_value); + } + else if (cstring.strcmp(opt_name, "collect_stats_file") == 0) + { + cstring.strcpy(options.collect_stats_file.ptr, opt_value); + } else if (cstring.strcmp(opt_name, "sentinel") == 0) { if (opt_value[0] == '\0')