added category flag to gauger
This commit is contained in:
parent
7bd896ec09
commit
00fb066842
@ -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),
|
||||
|
@ -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, \
|
||||
@ -646,6 +647,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
|
||||
*/
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user