From: John R Pierce <pierce@hogranch.com>
To: Dave Cramer <pg@fastcrypt.com>
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: instrumenting the driver
Date: Fri, 17 Jun 2005 06:59:31 -0700
Message-ID: <42B2D743.6080604@hogranch.com> (raw)
In-Reply-To: <204ABB29-6127-4730-88C4-D1FAB604AD0C@fastcrypt.com>
References: <204ABB29-6127-4730-88C4-D1FAB604AD0C@fastcrypt.com>
Dave Cramer wrote:
> There has been a request to instrument the driver for measuring timing.
>
> One mechanism that comes to mind is to allow one listener in execute,
> etc. Or to simply measure it ourselves.
I rather like the `dtrace` approach in Solaris 10.. It provides instrument
hooks for all kinds of stuff but the hooks do nothing if nothing has hooked
them (presumably implemented with an inline macro of some kind). The dtrace
utility has a wide range of timing, counting, classification, etc statistics
gathering capabilities. Solaris 10 has hooks on virtually every system
routine entry and exit, as well as many other things.
Now, obviously, thats a lot more sophisticated than we'd want to bite off in a
jdbc driver, but the idea of a generalized hook on entry and exit of each major
method is a good one, the user routine that hooks these could classify the
statement being executed if it wanted to (at its own expense, naturally)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: pierce@hogranch.com, pg@fastcrypt.com
Subject: Re: instrumenting the driver
In-Reply-To: <42B2D743.6080604@hogranch.com>
References: <204ABB29-6127-4730-88C4-D1FAB604AD0C@fastcrypt.com> <42B2D743.6080604@hogranch.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox