summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6dcb864)
The convention for the op_metrics array in the context is that callers
do not index it directly, but instead call ctx_get_op_metrics (which
will grow tha array if needed first).
context_t *ctx = ¤t_context;
metrics_info_t *info = &ctx->metrics_info;
context_t *ctx = ¤t_context;
metrics_info_t *info = &ctx->metrics_info;
+ op_metrics_t *metrics = ctx_get_op_metrics (ctx, op);
unsigned char *p = (unsigned char *) result;
while (p < ((unsigned char *) result) + size)
unsigned char *p = (unsigned char *) result;
while (p < ((unsigned char *) result) + size)
- ctx->op_metrics[op].counters[group_index][counter_index] += value;
+ metrics->counters[group_index][counter_index] += value;