pmDupContext(3)

pmDupContext3

Duplicate a pmapi context

C synopsis

#include <pcp/pmapi.h>

int pmDupContext(void);

cc ... -lpcp

Overview

An application using the Performance Metrics Application Programming Interface (PMAPI) may manipulate several concurrent contexts, each associated with a source of performance metrics, e.g. pmcd(1) on some host, or a set of archives of performance metrics as created by pmlogger(1).

Calling pmDupContext will replicate the current PMAPI context, returning a handle for the new context that may be used with subsequent calls to pmUseContext(3).

Once created, the duplicated context and the original context have independent existence, and so their instance profiles and collection time (relevant only for archive contexts) may be independently varied.

The newly replicated context becomes the current context.

Releases

8 releases since Debian 5.0 (Lenny); the text changed 6 times.

  1. 5.0
  2. 6.0
  3. 8
  4. 10
  5. 11–12
  6. 13
  7. Arch

From pcp 7.2.2-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.