MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / init_arg

Function init_arg

libCacheSim/bin/mrcProfiler/cli_parser.cpp:407–423  ·  view source on GitHub ↗

* @brief initialize the arguments * * @param args */

Source from the content-addressed store, hash-verified

405 * @param args
406 */
407static void init_arg(struct arguments *args) {
408 // Initialize all fields directly instead of using memset
409 args->trace_path = NULL;
410 args->trace_type_params = NULL;
411 memset(args->ofilepath, 0, OFILEPATH_LEN);
412 args->n_req = -1;
413 args->verbose = false;
414
415 /* profiler params */
416 args->ignore_obj_size = false;
417 args->cache_algorithm_str = "LRU";
418 args->mrc_size_str = "0.01,1,100";
419 args->mrc_profiler_str = "SHARDS";
420 args->mrc_profiler_params_str = "FIX_RATE,0.01,42";
421
422 args->reader = NULL;
423}
424
425/**
426 * @brief parse the command line arguments

Callers 1

parse_cmdFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected