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

Function print_args

libCacheSim/bin/mrcProfiler/main.cpp:12–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11
12void print_args(struct arguments *args) {
13
14 printf("args: \n");
15 for (int i = 0; i < N_ARGS; i++) {
16 printf("%s\n", args->args[i]);
17 }
18 printf("trace_path: %s\n", args->trace_path);
19 printf("trace_type: %d\n", args->trace_type);
20 printf("trace_type_params: %s\n", args->trace_type_params);
21 printf("ofilepath: %s\n", args->ofilepath);
22 printf("n_req: %ld\n", args->n_req);
23 printf("verbose: %d\n", args->verbose);
24 printf("cache_algorithm_str: %s\n", args->cache_algorithm_str);
25 printf("mrc_size_str: %s\n", args->mrc_size_str);
26 printf("profiler_str: %s\n", args->mrc_profiler_str);
27 printf("mrc_profiler_params_str: %s\n", args->mrc_profiler_params_str);
28
29 for(size_t i = 0; i < args->mrc_profiler_params.profile_size.size(); i++){
30 printf("profile_size: %ld\n", args->mrc_profiler_params.profile_size[i]);
31 }
32 printf("====\n");
33 for(size_t i = 0; i < args->mrc_profiler_params.profile_wss_ratio.size(); i++){
34 printf("profile_wss_ratio: %f\n", args->mrc_profiler_params.profile_wss_ratio[i]);
35 }
36
37 args->mrc_profiler_params.shards_params.print();
38 args->mrc_profiler_params.minisim_params.print();
39}
40
41int main(int argc, char *argv[]) {
42 struct arguments args;

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected