Rechercher une page de manuel
pmTypeStr
Langue: en
Version: SGI (debian - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
pmTypeStr - convert a performance metric type into a stringC SYNOPSIS
#include <pcp/pmapi.h>const char *pmTypeStr(int type)
cc ... -lpcp
DESCRIPTION
Given a performance metric type, produce a terse ASCII equivalent, appropriate for use in error and diagnostic messagesThe value for type is typically extracted from a pmDesc structure, following a call to pmLookupDesc(3) for a particular performance metric.
Examples are 32 (for type equals PM_TYPE_32), U64 (for type equals PM_TYPE_U64), AGGREGATE (for type equals PM_TYPE_AGGREGATE), etc.
The string value is held in a single static buffer, so the returned value is only valid until the next call to pmTypeStr.
SEE ALSO
PMAPI(3), pmAtomStr(3), pmConvScale(3), pmExtractValue(3), pmLookupDesc(3), pmPrintValue(3) and pmUnitsStr(3).Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre