diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mintdb/perf_taler_mintdb.c | 5 | ||||
-rw-r--r-- | src/mintdb/perf_taler_mintdb_interpreter.h | 8 | ||||
-rw-r--r-- | src/mintdb/test_perf_taler_mintdb.c | 1 |
3 files changed, 13 insertions, 1 deletions
diff --git a/src/mintdb/perf_taler_mintdb.c b/src/mintdb/perf_taler_mintdb.c index 64114ca9a..6150bb0ce 100644 --- a/src/mintdb/perf_taler_mintdb.c +++ b/src/mintdb/perf_taler_mintdb.c @@ -121,6 +121,7 @@ main (int argc, char ** argv) PERF_TALER_MINTDB_INIT_CMD_GAUGER ("", "05 - start", "05 - stop", + "MINTDB", "Number of reserve inserted per second", "item/sec", NB_RESERVE_SAVE), @@ -140,6 +141,7 @@ main (int argc, char ** argv) PERF_TALER_MINTDB_INIT_CMD_GAUGER ("", "06 - start", "06 - stop", + "MINTDB", "Number of reserve loaded per second", "item/sec", NB_RESERVE_SAVE), @@ -159,6 +161,7 @@ main (int argc, char ** argv) PERF_TALER_MINTDB_INIT_CMD_GAUGER ("", "07 - start", "07 - stop", + "MINTDB", "Number of reserve history loaded per second", "item/sec", NB_RESERVE_SAVE), @@ -183,6 +186,7 @@ main (int argc, char ** argv) PERF_TALER_MINTDB_INIT_CMD_GAUGER ("", "08 - start", "08 - stop", + "MINTDB", "Number of withdraw insert per second", "item/sec", NB_WITHDRAW_SAVE), @@ -206,6 +210,7 @@ main (int argc, char ** argv) PERF_TALER_MINTDB_INIT_CMD_GAUGER ("", "09 - start", "09 - stop", + "MINTDB", "Number of withdraw loaded per second", "item/sec", NB_RESERVE_SAVE), diff --git a/src/mintdb/perf_taler_mintdb_interpreter.h b/src/mintdb/perf_taler_mintdb_interpreter.h index 5913ee47c..f530f3081 100644 --- a/src/mintdb/perf_taler_mintdb_interpreter.h +++ b/src/mintdb/perf_taler_mintdb_interpreter.h @@ -126,7 +126,7 @@ * @param _unit the unit of the data measured, typicly something/sec * @param _divide number of measurments in the interval */ -#define PERF_TALER_MINTDB_INIT_CMD_GAUGER(_label, _label_start, _label_stop, _description, _unit, _divide) \ +#define PERF_TALER_MINTDB_INIT_CMD_GAUGER(_label, _label_start, _label_stop, _category, _description, _unit, _divide) \ { \ .command = PERF_TALER_MINTDB_CMD_GAUGER, \ .label = _label, \ @@ -134,6 +134,7 @@ .details.gauger = { \ .label_start = _label_start, \ .label_stop = _label_stop, \ + .category = _category, \ .description = _description, \ .unit = _unit, \ .divide = _divide, \ @@ -647,6 +648,11 @@ union PERF_TALER_MINTDB_CMD_Details const char *label_stop; /** + * The category of the measurment + */ + const char *category; + + /** * Description of the metric, used in Gauger */ const char *description; diff --git a/src/mintdb/test_perf_taler_mintdb.c b/src/mintdb/test_perf_taler_mintdb.c index 2ea574db3..26f142a21 100644 --- a/src/mintdb/test_perf_taler_mintdb.c +++ b/src/mintdb/test_perf_taler_mintdb.c @@ -119,6 +119,7 @@ main (int argc, char ** argv) PERF_TALER_MINTDB_INIT_CMD_GAUGER ("04 - gauger", "04 - time start", "04 - time stop", + "TEST", "time to insert a deposit", "deposit/sec", NB_DEPOSIT_SAVE), |