pcp
[Top] [All Lists]

Re: PMAPI for something other than C?

To: nscott@xxxxxxxxxx
Subject: Re: PMAPI for something other than C?
From: Martin Hicks <mort@xxxxxxxx>
Date: Wed, 28 May 2008 09:31:17 -0400
Cc: pcp@xxxxxxxxxxx
In-reply-to: <51287.192.168.3.1.1211926294.squirrel@xxxxxxxxxxxxxxx>
References: <20080527180057.GC25468@xxxxxxxxxxxxxxxx> <51287.192.168.3.1.1211926294.squirrel@xxxxxxxxxxxxxxx>
Sender: pcp-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.17+20080114 (2008-01-14)
On Wed, May 28, 2008 at 08:11:34AM +1000, nscott@xxxxxxxxxx wrote:
> 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.

Thanks.  That's the approach I will take.  What I'm looking to do
would be too much work to do in C.

mh

-- 
Martin Hicks || mort@xxxxxxxx || PGP/GnuPG: 0x4C7F2BEE

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