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
|