diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-09-18 13:53:37 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-09-18 13:53:37 +0000 |
commit | 4119281014d1002eb3f6477669455e242cf6fb88 (patch) | |
tree | 8d7cf9ae15cb16be2d08299efea1c63ed013cfe7 /src/ats-tests/perf_ats.c | |
parent | 2e8e994359799054407e74c4669a87535d19da83 (diff) | |
download | gnunet-4119281014d1002eb3f6477669455e242cf6fb88.tar.gz gnunet-4119281014d1002eb3f6477669455e242cf6fb88.zip |
basic log file writing functionality
Diffstat (limited to 'src/ats-tests/perf_ats.c')
-rw-r--r-- | src/ats-tests/perf_ats.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ats-tests/perf_ats.c b/src/ats-tests/perf_ats.c index bdd306ec4..bad7076ca 100644 --- a/src/ats-tests/perf_ats.c +++ b/src/ats-tests/perf_ats.c | |||
@@ -119,6 +119,11 @@ static char *solver; | |||
119 | /** | 119 | /** |
120 | * Preference string | 120 | * Preference string |
121 | */ | 121 | */ |
122 | static char *testname; | ||
123 | |||
124 | /** | ||
125 | * Preference string | ||
126 | */ | ||
122 | static char *pref_str; | 127 | static char *pref_str; |
123 | 128 | ||
124 | /** | 129 | /** |
@@ -451,7 +456,7 @@ do_benchmark () | |||
451 | mps[c_m].ats_task = GNUNET_SCHEDULER_add_now (&ats_pref_task, &mps[c_m]); | 456 | mps[c_m].ats_task = GNUNET_SCHEDULER_add_now (&ats_pref_task, &mps[c_m]); |
452 | } | 457 | } |
453 | if (GNUNET_YES == logging) | 458 | if (GNUNET_YES == logging) |
454 | perf_logging_start (mps, num_masters); | 459 | perf_logging_start (testname, mps, num_masters); |
455 | } | 460 | } |
456 | 461 | ||
457 | static void | 462 | static void |
@@ -1207,6 +1212,7 @@ main (int argc, char *argv[]) | |||
1207 | logging = GNUNET_YES; | 1212 | logging = GNUNET_YES; |
1208 | } | 1213 | } |
1209 | 1214 | ||
1215 | GNUNET_asprintf (&testname, "%s_%s_%s",solver, comm_name, pref_str); | ||
1210 | 1216 | ||
1211 | if (num_slaves < num_masters) | 1217 | if (num_slaves < num_masters) |
1212 | { | 1218 | { |
@@ -1240,6 +1246,7 @@ main (int argc, char *argv[]) | |||
1240 | GNUNET_free(pref_str); | 1246 | GNUNET_free(pref_str); |
1241 | GNUNET_free(conf_name); | 1247 | GNUNET_free(conf_name); |
1242 | GNUNET_free(test_name); | 1248 | GNUNET_free(test_name); |
1249 | GNUNET_free(testname); | ||
1243 | GNUNET_free (comm_name); | 1250 | GNUNET_free (comm_name); |
1244 | GNUNET_free(mps); | 1251 | GNUNET_free(mps); |
1245 | GNUNET_free(sps); | 1252 | GNUNET_free(sps); |