aboutsummaryrefslogtreecommitdiff
path: root/src/dht/gnunet_dht_profiler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dht/gnunet_dht_profiler.c')
-rw-r--r--src/dht/gnunet_dht_profiler.c73
1 files changed, 48 insertions, 25 deletions
diff --git a/src/dht/gnunet_dht_profiler.c b/src/dht/gnunet_dht_profiler.c
index 460eaa572..f65141640 100644
--- a/src/dht/gnunet_dht_profiler.c
+++ b/src/dht/gnunet_dht_profiler.c
@@ -1181,31 +1181,54 @@ main (int argc, char *const *argv)
1181{ 1181{
1182 int rc; 1182 int rc;
1183 1183
1184 static struct GNUNET_GETOPT_CommandLineOption options[] = { 1184 struct GNUNET_GETOPT_CommandLineOption options[] = {
1185 {'n', "peers", "COUNT", 1185 GNUNET_GETOPT_OPTION_SET_UINT ('n',
1186 gettext_noop ("number of peers to start"), 1186 "peers",
1187 1, &GNUNET_GETOPT_set_uint, &num_peers}, 1187 "COUNT",
1188 {'s', "searches", "COUNT", 1188 gettext_noop ("number of peers to start"),
1189 gettext_noop ("maximum number of times we try to search for successor circle formation (0 for R5N)"), 1189 &num_peers),
1190 1, &GNUNET_GETOPT_set_uint, &max_searches}, 1190
1191 {'H', "hosts", "FILENAME", 1191 GNUNET_GETOPT_OPTION_SET_UINT ('s',
1192 gettext_noop ("name of the file with the login information for the testbed"), 1192 "searches",
1193 1, &GNUNET_GETOPT_set_string, &hosts_file}, 1193 "COUNT",
1194 {'D', "delay", "DELAY", 1194 gettext_noop ("maximum number of times we try to search for successor circle formation (0 for R5N)"),
1195 gettext_noop ("delay between rounds for collecting statistics (default: 30 sec)"), 1195 &max_searches),
1196 1, &GNUNET_GETOPT_set_relative_time, &delay_stats}, 1196
1197 {'P', "PUT-delay", "DELAY", 1197 GNUNET_GETOPT_OPTION_STRING ('H',
1198 gettext_noop ("delay to start doing PUTs (default: 1 sec)"), 1198 "hosts",
1199 1, &GNUNET_GETOPT_set_relative_time, &delay_put}, 1199 "FILENAME",
1200 {'G', "GET-delay", "DELAY", 1200 gettext_noop ("name of the file with the login information for the testbed"),
1201 gettext_noop ("delay to start doing GETs (default: 5 min)"), 1201 &hosts_file),
1202 1, &GNUNET_GETOPT_set_relative_time, &delay_get}, 1202
1203 {'r', "replication", "DEGREE", 1203 GNUNET_GETOPT_OPTION_SET_RELATIVE_TIME ('D',
1204 gettext_noop ("replication degree for DHT PUTs"), 1204 "delay",
1205 1, &GNUNET_GETOPT_set_uint, &replication}, 1205 "DELAY",
1206 {'t', "timeout", "TIMEOUT", 1206 gettext_noop ("delay between rounds for collecting statistics (default: 30 sec)"),
1207 gettext_noop ("timeout for DHT PUT and GET requests (default: 1 min)"), 1207 &delay_stats),
1208 1, &GNUNET_GETOPT_set_relative_time, &timeout}, 1208
1209 GNUNET_GETOPT_OPTION_SET_RELATIVE_TIME ('P',
1210 "PUT-delay",
1211 "DELAY",
1212 gettext_noop ("delay to start doing PUTs (default: 1 sec)"),
1213 &delay_put),
1214
1215 GNUNET_GETOPT_OPTION_SET_RELATIVE_TIME ('G',
1216 "GET-delay",
1217 "DELAY",
1218 gettext_noop ("delay to start doing GETs (default: 5 min)"),
1219 &delay_get),
1220 GNUNET_GETOPT_OPTION_SET_UINT ('r',
1221 "replication",
1222 "DEGREE",
1223 gettext_noop ("replication degree for DHT PUTs"),
1224 &replication),
1225
1226
1227 GNUNET_GETOPT_OPTION_SET_RELATIVE_TIME ('t',
1228 "timeout",
1229 "TIMEOUT",
1230 gettext_noop ("timeout for DHT PUT and GET requests (default: 1 min)"),
1231 &timeout),
1209 GNUNET_GETOPT_OPTION_END 1232 GNUNET_GETOPT_OPTION_END
1210 }; 1233 };
1211 1234