Poster of Linux kernelThe best gift for a Linux geek
PMTYPESTR

PMTYPESTR

Section: C Library Functions (3) Updated: SGI
Local index Up
 

NAME

pmTypeStr - convert a performance metric type into a string  

C 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 messages

The 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).


 

Index

NAME
C SYNOPSIS
DESCRIPTION
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 21:52:40 GMT, April 16, 2011