command(s) to get performance statistics on other commands More...
Go to the source code of this file.
Functions | |
static void | stat_run (void *cls, struct GNUNET_TESTING_Interpreter *is) |
Run a "stat" CMD. More... | |
static void | stat_cmd (struct GNUNET_TESTING_Timer *timings, const struct GNUNET_TESTING_Command *cmd) |
Add the time cmd took to the respective duration in timings. More... | |
static void | do_stat (void *cls, const struct GNUNET_TESTING_Command *cmd) |
Obtain statistics for timings of cmd. More... | |
struct GNUNET_TESTING_Command | GNUNET_TESTING_cmd_stat (const char *label, struct GNUNET_TESTING_Timer *timers) |
Obtain performance data from the interpreter. More... | |
command(s) to get performance statistics on other commands
Definition in file testing_api_cmd_stat.c.
|
static |
Run a "stat" CMD.
cls | closure. |
is | the interpreter state. |
cls | closure. |
cmd | the command being run. |
is | the interpreter state. |
Definition at line 137 of file testing_api_cmd_stat.c.
References do_stat(), GNUNET_TESTING_interpreter_commands_iterate(), and is.
Referenced by GNUNET_TESTING_cmd_stat(), and stat_cmd().
|
static |
Add the time cmd took to the respective duration in timings.
timings | where to add up times |
cmd | command to evaluate |
Definition at line 46 of file testing_api_cmd_stat.c.
References duration, GNUNET_TESTING_Command::finish_time, GNUNET_break, GNUNET_ERROR_TYPE_ERROR, GNUNET_log, GNUNET_TIME_absolute_cmp, GNUNET_TIME_absolute_get_difference(), GNUNET_TIME_relative_add(), GNUNET_TESTING_Command::label, GNUNET_TESTING_Command::last_req_time, GNUNET_TESTING_Timer::num_commands, GNUNET_TESTING_Timer::num_retries, GNUNET_TESTING_Command::num_tries, prefix, GNUNET_TESTING_Timer::prefix, GNUNET_TESTING_Command::run, GNUNET_TESTING_Command::start_time, stat_run(), GNUNET_TESTING_Timer::success_latency, GNUNET_TESTING_Timer::total_duration, and GNUNET_TESTING_CommandLabel::value.
Referenced by do_stat().
|
static |
Obtain statistics for timings of cmd.
[in,out] | cls | what timings to get |
cmd | command to process |
Definition at line 101 of file testing_api_cmd_stat.c.
References do_stat(), GNUNET_break, GNUNET_OK, GNUNET_TESTING_cmd_is_batch_(), GNUNET_TESTING_get_trait_batch_cmds(), and stat_cmd().
Referenced by do_stat(), and stat_run().
struct GNUNET_TESTING_Command GNUNET_TESTING_cmd_stat | ( | const char * | label, |
struct GNUNET_TESTING_Timer * | timers | ||
) |
Obtain performance data from the interpreter.
label | command label. | |
[in,out] | timers | NULL-prefix terminated array that specifies what commands (by label) to obtain runtimes for |
Definition at line 150 of file testing_api_cmd_stat.c.
References GNUNET_TESTING_command_new, and stat_run().