pcp
[Top] [All Lists]

Re: PMAPI for something other than C?

To: "Martin Hicks" <mort@xxxxxxxx>
Subject: Re: PMAPI for something other than C?
From: nscott@xxxxxxxxxx
Date: Wed, 28 May 2008 08:11:34 +1000 (EST)
Cc: pcp@xxxxxxxxxxx
Importance: Normal
In-reply-to: <20080527180057.GC25468@xxxxxxxxxxxxxxxx>
References: <20080527180057.GC25468@xxxxxxxxxxxxxxxx>
Sender: pcp-bounce@xxxxxxxxxxx
User-agent: SquirrelMail/1.4.8-4.el4.centos
Hi Martin,

> Are there PMAPI bindings for languages other than C?  I see the PMDA API
> for perl in src/cpan, but it doesn't look like the PMAPI is in there.

There are no other bindings.  The pmResult structure is relatively complex
(compact) and doesn't lend itself to translation to other languages (at
least,
it was well beyond my C -> Perl translation abilities).  Whenever I think of
tackling this, I always reach the point of thinking the PMAPI is the wrong
place to add a binding - a higher level API would be better.  Maybe PMC
based, or maybe a tool like pmie should be refactored to provide an API.

But, I always just end up using tools like pmdumptext, pmie, pmprobe,
pminfo, etc from within scripts.

cheers.

--
Nathan


<Prev in Thread] Current Thread [Next in Thread>