mmv_inc_value(3)
| MMV_INC_VALUE(3) | Library Functions Manual | MMV_INC_VALUE(3) |
NAME
mmv_inc_value - update a value in a Memory Mapped Value file
C SYNOPSIS
#include <pcopilot/pmapi.h>
#include <pcopilot/mmv_stats.h>
void mmv_inc_value(void *addr, pmAtomValue *val, double inc);
cc ... -lpcopilot_mmv -lpcopilot
DESCRIPTION
mmv_inc_value provides a convenient way of updating a value returned by the mmv_lookup_value_desc. addr is the address returned from mmv_stats_init().
The value of the inc is internally cast to match the type of the metric and then added to the previous value of the metric.
SEE ALSO
| Performance Co-Pilot |
