Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pmusecontext(3) [centos man page]

PMUSECONTEXT(3) 					     Library Functions Manual						   PMUSECONTEXT(3)

NAME
pmUseContext - change current PMAPI context C SYNOPSIS
#include <pcp/pmapi.h> int pmUseContext(int handle); cc ... -lpcp DESCRIPTION
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 an archive log of performance metrics as created by pmlog- ger(1). Calling pmUseContext causes the current PMAPI context to be set to the context identified by handle. The value of handle must be one returned from an earlier call to pmNewContext(3) or pmDupContext(3). Below the PMAPI, all contexts used by an application are saved in their most recently modified state, so pmUseContext restores the context to the state it was in the last time the context was used, not the state of the context when it was established. SEE ALSO
PMAPI(3), pmDestroyContext(3), pmDupContext(3), pmNewContext(3) and pmWhichContext(3). DIAGNOSTICS
PM_ERR_NOCONTEXT handle does not identify a valid PMAPI context Performance Co-Pilot PCP PMUSECONTEXT(3)

Check Out this Related Man Page

PMDUPCONTEXT(3) 					     Library Functions Manual						   PMDUPCONTEXT(3)

NAME
pmDupContext - duplicate a PMAPI context C SYNOPSIS
#include <pcp/pmapi.h> int pmDupContext(void); cc ... -lpcp DESCRIPTION
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 an archive log of performance metrics as created by pmlog- ger(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. SEE ALSO
PMAPI(3), pmNewContext(3) and pmUseContext(3). Performance Co-Pilot PCP PMDUPCONTEXT(3)
Man Page

7 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Help! Slow Performance

Is the performance now very, very slow (pages take a very long time to load)? Or is it just me? Neo (6 Replies)
Discussion started by: Neo
6 Replies

2. UNIX for Dummies Questions & Answers

Performance related to ls

can you please let me know will there be any performance improvement if i change my command in unix from ls rtlog* | grep "rtlog_*4_" to ls rtlog_4_* rtlog_0004_* assuming that i have patterns only as 4 or 0004 and not other pattern type. (2 Replies)
Discussion started by: sridhar1978
2 Replies

3. AIX

Performance testing on AIX

I'm doing performance testing for one application which works on AIX. But I don't know which performance parameters of memory need to be collected. Now, I just know very few: 1. page in 2. page out 3. fre They are all collected by "vmstat" command. I want to know, except for above... (2 Replies)
Discussion started by: adasong
2 Replies

4. Shell Programming and Scripting

Performance Metrics using wget

I am looking for a way to measure performance metrics of streaming audio/video from a contecnt server, e.g. YouTube for example. Im keen to see if I can look at duration it took for contecnt to download. I know from the output of wget's log file you can see duration a url is downloaded in.... (5 Replies)
Discussion started by: rob171171
5 Replies

5. IP Networking

Diameter protocol performance on RH 6.4

Hi, I recently upgraded from RH 6.2 to RH 6.4 on our diameter application server. After the upgrade, we saw the performance throughput of out diameter application went down about 40%. From 459K transaction per second to 234K TPS on RH 6.4. Nothing has changed in the network. I am using HP... (3 Replies)
Discussion started by: ketanb81
3 Replies

6. AIX

Help Analyzing AIX System Metrics

Hi Guys, I need some help analyzing the attached metrics. System context is 2 LPAR's in a P795 running WebSphere App Server across 4 nodes (2 on each LPAR). Over the weekend both LPAR's lost power and upon re-start the application server response times have degraded by 25-30% for no obvious... (1 Reply)
Discussion started by: mgburns
1 Replies

7. Red Hat

Performance Monitoring - RHEL 7.4

Have a question about doing some performance monitoring - how to approach it. This is on RHEL 7.4 We are moving a rather large application to new hardware in the future. I would like to find a way to compared performance on the new hardware at different stages and at different times. I'm... (4 Replies)
Discussion started by: Overcast451
4 Replies